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)
A named list like list("Header1" = "Value1", ...)
FEN representing the starting position of the board
A game root node