From 6a75dd01fe50d6ce07d2baa36cbea381cb02591a Mon Sep 17 00:00:00 2001 From: Anna Wiggins Date: Thu, 12 Apr 2012 16:43:57 -0400 Subject: [PATCH] General cleanup --- lib/goban.py | 7 +++++-- readme.markdown | 11 ++++++++--- 2 files changed, 13 insertions(+), 5 deletions(-) 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