General cleanup
This commit is contained in:
parent
8b772255a1
commit
6a75dd01fe
|
@ -10,6 +10,9 @@ from ctypes import *
|
||||||
|
|
||||||
|
|
||||||
class board_state(Structure):
|
class board_state(Structure):
|
||||||
|
BOARDSIZE = 19
|
||||||
|
MAX_MOVE_HISTORY = 361
|
||||||
|
|
||||||
_fields_ = [
|
_fields_ = [
|
||||||
('board_size', c_int),
|
('board_size', c_int),
|
||||||
('board', c_char * BOARDSIZE),
|
('board', c_char * BOARDSIZE),
|
||||||
|
@ -43,8 +46,8 @@ class Goban:
|
||||||
libboard = None
|
libboard = None
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
if not Goban.libsgf:
|
if not Goban.libboard:
|
||||||
Goban.libboard = CDLL('libboard.so')
|
Goban.libboard = CDLL('lib/libboard.so.0.0.0')
|
||||||
|
|
||||||
self.board = board_state()
|
self.board = board_state()
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,12 @@
|
||||||
|
|
||||||
### Dependencies
|
### Dependencies
|
||||||
|
|
||||||
You will need:
|
You will need these things to build libboard.so (which pygo needs):
|
||||||
|
|
||||||
pygame
|
* gcc
|
||||||
SDL_ttf
|
|
||||||
|
|
||||||
|
You will need the following to run pygo:
|
||||||
|
|
||||||
|
* pygame
|
||||||
|
* SDL_ttf
|
||||||
|
|
Loading…
Reference in New Issue
Block a user