ruby-warrior
ruby-warrior copied to clipboard
Online leader board
Add a leader board to http://rubywarrior.com. Provide a documented way to submit the code to the site to be run, perhaps with a post-commit hook URL one can use in github to frequently re-run the code when levels/player is updated. It can record user's current progress through the levels and their score.
One challenge is how to run the code in a protected environment. We don't want any arbitrary ruby code to run, especially code that effects the file system or executes system commands. Look into _why's sandbox gem for this?
There was a video about sandboxing at GoGaRuCo (http://pivotallabs.com/gogaruco/talks/52-playing-with-fire-running-uploaded-ruby-code-in-a-sandbox). They showed off this app: http://hangman.sandbox.flouri.sh
Users can run code in a sandboxed environment safetly and easily. Maybe you can look into it.
Thanks for the link! I'll take look.
Today I received a mail about Ruby proposals http://rubyweekly.us1.list-manage1.com/track/click?u=0618f6a79d6bb9675f313ceb2&id=202311d963&e=3366c13bce
They are funding those who are developing projects for Ruby ecosystem. Maybe we could submit a proposal for a Online version of Ruby Warrior with some nice 2D graphics. I could ask my friend artist to draw some concept pictures of the game. After all it's a fun way to learn Ruby.