A game is a tree with nodes, where each node represents the board after a move and each branch represents a variation of the game (not to be confused with a variant of chess). This tree mirrors the PGN of the game.
To explore a game, an object of this class supports print()
, plot()
,
str()
, fen()
, pgn()
and more.
game(headers = NULL, fen = NULL)
headers | A named list like |
---|---|
fen | FEN representing the starting position of the board |
A game root node