Game
Get the current game.
Returns
Game [object]
A chess game.
Attributes
id ID
The ID of the game.
startedAt Date
The date and time when the game started.
endedAt Date
The date and time when the game ended.
whitePlayer Player
The white player.
blackPlayer Player
The black player.
board ChessBoard
The current state of the chess board.
movesCount Int
The number of moves in the game.
moves String []
Get the last N moves of the game. Returns all moves if no argument is provided.
winner ChessPieceColor
The winner of the game.
prize Float
The prize of the game.
API:
Chess Game GraphQL API
API:
Chess Game GraphQL API