Class DatabaseAbstract

Describe a set of chess games, each of them being represented by a Game object.

Hierarchy

  • Database

Methods

Methods

  • Return the game corresponding to the given index.

    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 data.

    Parameters

    • gameIndex: number

      Must be between 0 inclusive and gameCount exclusive.

    Returns Game

  • Number of games in the database.

    Returns number

Generated using TypeDoc