Haskell sandbox for writing bots
JavaScript Haskell Ruby
Pull request Compare This branch is 13 commits ahead, 15 commits behind scribd:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
assets
haskell
javascript
.gitignore
README.markdown

README.markdown

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.