Game
Create a game with the given players.
These rules apply:
- The white player must be a human or an Android or a computer.
- The black player must be a human or an Android or a computer.
- The white player cannot be the same as the black player.
- The Game will start with the initial board state.
Chess rules can be found here.
Returns the new game.
Arguments
Returns
Examples
New game
mutation newGame {
newGame(input: { whitePlayerId: "1", blackPlayerId: "2"}) {
id
startedAt
movesCount
}
}
API:
Chess Game GraphQL API