/robot-fruit-hunt

Haskell sandbox for writing bots

Primary LanguageJavaScript

Welcome!

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.

Testing a Haskell Bot

cd haskell.

Requirements

  • ghc, the Haskell compiler (duh)
  • ruby
  • eventmachine
  • em-websocket
  • a browser that supports websockets (latest versions of Firefox or Chrome will work)

Testing

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!

Writing a Bot

Read the tutorial.

Then Check out the Haskell API.