diff --git a/lib/goban.py b/lib/goban.py index 81d62f2..31095ed 100644 --- a/lib/goban.py +++ b/lib/goban.py @@ -10,6 +10,9 @@ from ctypes import * class board_state(Structure): + BOARDSIZE = 19 + MAX_MOVE_HISTORY = 361 + _fields_ = [ ('board_size', c_int), ('board', c_char * BOARDSIZE), @@ -43,8 +46,8 @@ class Goban: libboard = None def __init__(self): - if not Goban.libsgf: - Goban.libboard = CDLL('libboard.so') + if not Goban.libboard: + Goban.libboard = CDLL('lib/libboard.so.0.0.0') self.board = board_state() diff --git a/readme.markdown b/readme.markdown index b903a16..b0d3849 100644 --- a/readme.markdown +++ b/readme.markdown @@ -2,7 +2,12 @@ ### Dependencies -You will need: +You will need these things to build libboard.so (which pygo needs): -pygame -SDL_ttf +* gcc + + +You will need the following to run pygo: + +* pygame +* SDL_ttf