GnuGo -- a port of GnuGo, 3.6


Download:

gnugo-3.6.tgz -- source, 8.5MB.

Info:

This is a basic port of GnuGo release 3.6 to Plan 9. The port uses the outdated gcc toolchain, so if you want to recompile you should make sure to install gcc3.0 and the Gnu shell (gnu/gsh). The binary is for 386 only.

How I compiled it:

ran 'p9config' to create the Makefiles, then for each directory ran 'make -f Makefile'. In patterns/, where most of the files are autogenerated by mkpat, I had to copy the files from a BSD compile of GnuGo.

How you can compile it:

remove interface/gnugo and run 'mk' in the top-level directory

How to install:

run 'mk install' in the top-level directory. This will not install any documentation.

Status:

most things are untested. I'm planning to do a native pcc port but am having issues figuring out the dependencies.

Why?

I want to write a gui to GnuGo so I can play go on Plan 9. I know Aki has a Go client, but I have no idea whether it talks to GnuGo.

Sample Game:

I just played this game on a plan9 machine:

9grid% gnugo --boardsize 5
GNU Go 3.6
Copyright 1999, 2000, 2001, 2002, 2003 and 2004 by the Free Software
Foundation, Inc. See http://www.gnu.org/software/gnugo/ or contact
gnugo@gnu.org for information about GNU Go. GNU Go comes with NO WARRANTY to
the extent permitted by law. This program is free software; you can
redistribute it and/or modify it under the terms of the GNU General Public
License as published by the Free Software Foundation - version 2.  For more
information about these matters, see the files named COPYING.
here we are!

Beginning ASCII mode game.

Board Size:   5
Handicap      0
Komi:         0.0
Move Number:  0
To Move:      black
Computer player: White

    White (O) has captured 0 pieces
    Black (X) has captured 0 pieces

    A B C D E
  5 . . . . . 5
  4 . + . + . 4
  3 . . + . . 3
  2 . + . + . 2
  1 . . . . . 1
    A B C D E

c3
black(1): 
    White (O) has captured 0 pieces
    Black (X) has captured 0 pieces

    A B C D E
  5 . . . . . 5
  4 . + . + . 4
  3 . .(X). . 3
  2 . + . + . 2
  1 . . . . . 1
    A B C D E

GNU Go is thinking...
white(2): B3

    White (O) has captured 0 pieces
    Black (X) has captured 0 pieces

    A B C D E
  5 . . . . . 5
  4 . + . + . 4
  3 .(O)X . . 3
  2 . + . + . 2
  1 . . . . . 1
    A B C D E

c4
black(3): 
    White (O) has captured 0 pieces
    Black (X) has captured 0 pieces

    A B C D E
  5 . . . . . 5
  4 . +(X)+ . 4
  3 . O X . . 3
  2 . + . + . 2
  1 . . . . . 1
    A B C D E

GNU Go is thinking...
white(4): B4

    White (O) has captured 0 pieces
    Black (X) has captured 0 pieces

    A B C D E
  5 . . . . . 5
  4 .(O)X + . 4
  3 . O X . . 3
  2 . + . + . 2
  1 . . . . . 1
    A B C D E

b5
black(5): 
    White (O) has captured 0 pieces
    Black (X) has captured 0 pieces

    A B C D E
  5 .(X). . . 5
  4 . O X + . 4
  3 . O X . . 3
  2 . + . + . 2
  1 . . . . . 1
    A B C D E

GNU Go is thinking...
white(6): PASS

    White (O) has captured 0 pieces
    Black (X) has captured 0 pieces

    A B C D E
  5 . X . . . 5
  4 . O X + . 4
  3 . O X . . 3
  2 . + . + . 2
  1 . . . . . 1
    A B C D E

pass
black(7): white(8): PASS
Result: B+24.0   
If you disagree, we may count the game together.
You may optionally save the game as an SGF file.

Type "save " to save,
     "count" to recount,
     "quit" to quit
 or  "game" to play again
quit

Thanks! for playing GNU Go.

9grid% 

License:

The original source is GNU. The Plan 9 driver is IDCLMA (I Don't Care, Leave Me Alone).


Last Modified: July 26, 2007
mirtchovski at gmail