General cleanup

This commit is contained in:
Anna Rose 2012-04-12 16:43:57 -04:00
parent 8b772255a1
commit 6a75dd01fe
2 changed files with 13 additions and 5 deletions

View File

@ -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()

View File

@ -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