Skip to content

Commit

Permalink
Add building & running info to README
Browse files Browse the repository at this point in the history
  • Loading branch information
jaspervdj committed Sep 15, 2010
1 parent 4a11c6d commit 06311fa
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ planet-wars-haskell
Unofficial Haskell starter package for
[the google ai contest](http://ai-contest.com).

Usage
-----
What
----

The [PlanetWars](http://github.com/jaspervdj/planet-wars-haskell/blob/master/PlanetWars.hs)
module contains a small library to build your bot on. The
Expand All @@ -17,3 +17,24 @@ 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?

Building
--------

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`.

Running
-------

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](http://ai-contest.com/using_the_tools.php).

0 comments on commit 06311fa

Please sign in to comment.