Database()

Describe a set of chess games (see also Game).

new Database()

This constructor is not exposed in the public Kokopu API. Only internal objects and functions are allowed to instantiate Database objects.

Methods

game(index) → {Game}

Return the game corresponding to the given index.

Parameters:
Name Type Description
index number

Between 0 inclusive and Database#gameCount exclusive.

Returns:
Game

gameCount() → {number}

Number of games in the database.

Returns:
number