Man pages for chess
Read, Write, Create and Explore Chess Games

backGo back in the game tree, reverting the last move from...
board_colorGet information about the current board given a color
board_isGet information about the current board
board_moveGet information about the current board given a move
board_to_stringConvert a board to either unicode or ASCII string
fenGet FEN representation of board
forwardAdvance in the game tree, playing next move from current...
gameCreate a new game
glyph_to_nagConvert glyph to NAG
halfmove_clockGet number of half-moves since the last capture or pawn move
install_chessInstall python-chess
lineBranch game with next move
moveMake moves and create variations
move_Make moves and create variations
move_numberGet number of move
movesGet all legal moves available
nagParse Numeric Annotation Glyph (NAG) of a move
noteGet comment for a move
parse_moveParse move in context
pgnGet PGN for node of a game
pipePipe operator
playMove a piece on the board
plot.chess.pgn.GameNodePlot rendering of the board
ply_numberGet number of ply
print.chess.BoardPrint board
print.chess.pgn.GameNodePrint game node
print.chess.pgn.VariationsPrint a list of variations
read_gameRead a game from a PGN
resultGet result of the game ("*" if it hasn't ended)
rootGet the root node of a game
turnGet whose turn it is
variationFollow variation of a move, playing its first move
variationsGet all variations for next move (the children of current...
write_gameSave a game as an PGN
write_svgSave an SVG with rendering of the board
chess documentation built on Jan. 13, 2021, 8:31 p.m.