General cleanup
This commit is contained in:
parent
8b772255a1
commit
6a75dd01fe
|
@ -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()
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user