pychess.Utils.book
index
/home/thomas/Programmering/python/skak/svn/lib/pychess/Utils/book.py

 
Modules
       
atexit
os
pychess.System.tsqlite

 
Functions
       
fen(board)
# We can't use boardhash for dbkeys, as the boardhashes vary for each time Board.py is loaded.
getOpenings(board)
load(file)
remake()
stripBrackets(string)

 
Data
        AN = 3
ARTIFICIAL = 1
BISHOP = 3
BLACK = 1
BLACKWON = 3
BLACK_CASTLED = 32
BLACK_OO = 4
BLACK_OOO = 8
DRAW = 1
DRAW_50MOVES = 1
DRAW_ACCEPTION = 3
DRAW_AGREE = 3
DRAW_INSUFFICIENT = 4
DRAW_OFFER = 2
DRAW_REPITITION = 0
DRAW_STALEMATE = 2
FAN = 2
FLAG_CALL = 1
HINT = 0
KING = 0
KNIGHT = 4
LAN = 1
LOCAL = 0
NAME = 'PyChess'
PAWN = 5
PREFIX = '/home/thomas/Programmering/python/skak/svn'
QUEEN = 1
REMOTE = 2
RESIGNATION = 0
ROOK = 2
RUNNING = 0
SAN = 0
SPY = 1
VERSION = '0.6.0_beta'
WHITE = 0
WHITEWON = 2
WHITE_CASTLED = 16
WHITE_OO = 1
WHITE_OOO = 2
WON_CALLFLAG = 6
WON_MATE = 7
WON_RESIGN = 5
chr2Sign = {'b': 3, 'k': 0, 'n': 4, 'p': 5, 'q': 1, 'r': 2}
hashfALPHA = 0
hashfBETA = 1
hashfEXACT = 2
localePrefixes = ('/usr/share/locale', '/usr/local/share/locale')
path = '/home/thomas/Programmering/python/skak/svn/open.db'
prefixes = ('/usr/share', '/usr/local/share', '/usr/share/games', '/usr/local/share/games')
reprColor = ['White', 'Black']
reprMode = ['hint', 'spy']
reprPiece = ['King', 'Queen', 'Rook', 'Bishop', 'Knight', 'Pawn']
reprResult = ['*', '1/2-1/2', '1-0', '0-1']
reprSign = ['K', 'Q', 'R', 'B', 'N', 'P']