Dkf - Diskonnect and Konane for Fuego Martin Müller and Ryan Hayward May 9, 2014 Dkf is an implementation of the games Diskonnect and Konane, which uses the Fuego framework. It includes a computer player based on Monte Carlo Tree Search. How to build dkf: 1. download a copy of Fuego revision 1917 into a directory of your choice Example: cd ~/Projects svn checkout -r1917 https://svn.code.sf.net/p/fuego/code/trunk dkf 2. copy the file dkf0.02.patch into the same directory Example: cd ~/Projects/dkf wget http://webdocs.cs.ualberta.ca/~mmueller/dkf/dkf0.02.patch 3. apply the patch Example: patch -p0 < dkf0.02.patch 4. setup the build for Fuego Example (this creates separate directories for debug and optimized builds): ./setup-build.sh 4b. Check for errors in the setup. If something fails, then most likely you either do not have the boost libraries, or you have not compiled the parts of boost that require compilation. 5. Compile debug version of dkf: cd build/dbg make 6. run dkf: cd fuegomain ./fuego 7. All set to play or analyze! See list of commands below. List of commands: s, showboard show the current board p, play play a move, Example: p e2-e4 u, undo take back the most recent (human or computer) move c, clearboard back to the initial position g, genmove generate a computer move boardsize set the size of the rectangular board Examples: boardsize 5 5, boardsize 6 4 Default 8 8, maximum 19 19 timelimit set the time limit in seconds per move. Default 10. Example: timelimit 200 konane <0|1> change the game from diskonnect to konane. Default 0 Examples: konane 1 (play konane), konane 0 (play diskonnect) komi set a komi. Use a non-integer komi to prevent draws Examples: komi 0.5, komi 2, komi -1.5 reg_genmove generate a computer move but do not play it rg play a complete game using random moves quit quit the program Known bugs: sometimes segfaults after the quit command Limitations, future work: set memory, number of threads to use save and load game records and setup positions