Skip to content

Dymanik/robot-fruit-hunt

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Haskell sandbox for writing bots

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published