Get the date of the game.
Set the date of the game.
If undefined
, the existing value (if any) is erased.
Set the date of the game.
If the month and/or the day of month are missing, the date of the game will be partially defined (see DateValue for more details regarding partially defined dates).
Optional
month: numberOptional
day: numberGet the date of the game as a standard JavaScript Date
object.
If the day of month is undefined for the current game, the returned Date
object points at the first day of the corresponding month.
If neither the day of month nor the month are undefined for the current game, the returned Date
object points at the first day of the corresponding year.
Get the date of the game as a human-readable string (e.g. 'November 1955'
, 'September 4, 2021'
).
Optional
locales: string | string[]Locales to use to generate the result. If undefined, the default locale of the execution environment is used. See Intl documentation for more details.
Return the node or variation corresponding to the given ID (see id and id to retrieve the ID of a node or variation).
undefined
if the given ID does not correspond to an existing Node and Variation.
Get the elo of the player corresponding to the given color.
If defined, the returned value is guaranteed to be an integer >= 0.
Set the elo of the player corresponding to the given color.
If undefined
, the existing value (if any) is erased. Must be an integer >= 0.
Get the name of the player corresponding to the given color.
Set the name of the player corresponding to the given color.
If undefined
, the existing value (if any) is erased.
Get the title of the player corresponding to the given color.
Set the title of the player corresponding to the given color.
If undefined
, the existing value (if any) is erased.
Get the result of the game.
Set the result of the game.
Get the chess game variant of the game.
Generated using TypeDoc
Chess game, with the move history, the position at each step of the game, the comments and annotations (if any), the result of the game, and some meta-data such as the name of the players, the date of the game, the name of the tournament, etc...