Function pgnRead

  • PGN parsing function.

    Parameters

    • pgnString: string

      String to parse.

    Returns Database

  • PGN parsing function.

    Throws

    InvalidPGN if the corresponding game cannot be parsed, or if the given game index is larger than the number of games in the underlying PGN string.

    Parameters

    • pgnString: string

      String to parse.

    • gameIndex: number

      Only the game corresponding to this index is parsed. Must be between 0 (inclusive) and the number of games in the PGN (exclusive).

    Returns Game

Generated using TypeDoc
Feb 25, 2024