This is the Haskell sandbox for Scribd's Robot Fruit Hunt. It allows you to test your Haskell bots locally before you upload them to Scribd.
If you want to write a Javascript bot, check out the JS sandbox.
cd haskell
.
- ghc, the Haskell compiler (duh)
- ruby
- eventmachine
- em-websocket
- a browser that supports websockets (latest versions of Firefox or Chrome will work)
Start the game server with ruby gameserver.rb
.
Modify MyBot.hs
to start writing your bot. Opening game.html
will allow you to generate random boards, and either watch your bot play or step through one move at a time. gl/hf!