Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Unofficial Haskell starter package for the Planet Wars AI contest
Haskell Java
Branch: master

updated comments

latest commit 83a3e9150a
BSRK Aditya authored



Unofficial Haskell starter package for the google ai contest.


The PlanetWars module contains a small library to build your bot on. The MyBot module contains a simple example bot, based on the example in the C++ starter package.

You should change the MyBot module to your liking. If you make any improvements to the PlanetWars module, I would appreciate if you have me pull your changes, so everyone can benefit from your improvements -- after all, we're trying to get the Haskell bots as high as possible in the ranking, right?


You should be able to build your bot using:

ghc --make -O2 MyBot.hs

The server uses the -O2 flag as well. Now, you should have an executable called MyBot.


Let's watch it fight against one of the java bots.

java -jar tools/PlayGame.jar maps/map7.txt 1000 1000 log.txt \
    "./MyBot" "java -jar example_bots/RandomBot.jar" | \
    java -jar tools/ShowGame.jar

More information can be found here.

Something went wrong with that request. Please try again.