Next: Match description, Up: Python scripting
board()
command(cmd)
evaluate()
evalcontext()
eq2mwc()
mwc2eq()
cubeinfo()
met()
positionid()
positionfromid()
positionkey()
positionfromkey()
positionbearoff()
positionfrombearoff()
navigate([next=N,[game=N]])
Match navigation.
Without any arguments, go to first move of first match.
With next == N, move forward N game records.
With game == N, move forward/backward N games.
Navigate never wraps around.
On success, returns None. If unable to complete the requested number of moves, returns a pair of (next-remaining,game-remaining).
match([analysis=1/0, boards=1/0, statistics=0/1, verbose=0/1])
Return the current match. For example,
> m = gnubg.match()
Takes the following optional keyword arguments:
analysis
When 0, discard analysis data. default is 1.
boards
When 1, add current board to move/double records. Default is 1.
statistics
When 1, include game and match statistics. Default is 0.
verbose
When 1, include derived analysis values. Default is 0.