Deprecated: Assigning the return value of new by reference is deprecated in /home/romansland.nl/www/wp-settings.php on line 520 Deprecated: Assigning the return value of new by reference is deprecated in /home/romansland.nl/www/wp-settings.php on line 535 Deprecated: Assigning the return value of new by reference is deprecated in /home/romansland.nl/www/wp-settings.php on line 542 Deprecated: Assigning the return value of new by reference is deprecated in /home/romansland.nl/www/wp-settings.php on line 578 Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/romansland.nl/www/wp-settings.php on line 18 romansland » minigo
by Mathijs Romans

minigo

minigo is a tiny go-program that can play go on a 9×9 board.

Compile

gcc -O2 -o minigo minigo.c

and run

./minigo

The computer plays first. Enter moves like this:

e5 (enter)

and pass with

p

The program uses chinese counting. Pretty amazing for a program that is smaller than 4kB!

minigo.c
longminigo.c (longer, more readable version)