Parse Portable Game Notation into a game object: header tags plus the sequence of moves and resulting positions.
Usage
gm_read_pgn(file, text = FALSE, call = rlang::caller_env())Value
A gm_game object.
Details
Comments ({...} and ; to end of line), numeric annotation glyphs
($1), move numbers and recursive variations ((...)) are stripped, and
the remaining mainline tokens are replayed through gm_move(), so an
illegal or ambiguous move is reported where it occurs. A FEN tag is
honoured as the starting position.
See also
Other io:
gm_read_fen(),
gm_write_fen(),
gm_write_pgn()