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)