Fico Version 0.1.0
Posted by urban
Fico is an implementation of the board game Havannah. It is completley written in Ruby.
The aim is to write a fairly strong AI for the game. At the moment the only features are that the program can play according to the rules and that a random player exists.
How to get it
There are two ways to get the program.
- Get fico-0.1.0.tar.bz2, the latest release tarball (generally new releases can be found at bettong.net/fico/)
- Get the latest development from the darcs repository:
darcs get http://www.cip.ifi.lmu.de/~hafner/darcs/fico.
How to run it
To run fico against itself on a board of size 10 run the command ./fico in the toplevel directory. Run ./fico -h to see all possible command line options.
If you want to play against the program use the -b or -w switch to select your colour. You will then be asked to enter your moves in the terminal. Be sure to enter them in the form <char><number> (e.g. a1 or c4).
Hacking
You are of course welcome to write your own AI. But don’t expect to much (yet :)) from the framework that binds your bot into the rest of the application.
How to build your own AI
Look at src/player/RandomPlayer.rb for a simple AI. The necessary steps to get your own bot running are:
- create a sublcass of
ComputerPlayer - include
TermComputerPlayer - define the method
internal_generate_move. This method should return the next move of your AI. - patch src/fico.rb so that it uses your AI instead of
RandomPlayerorSimple1Ply
Contact
You can contact me at urban@bettong.net. Watch this place for announcements of new versions.

