PCE-JS is a chess engine for playeChess
Gets the status of the game
- Type: int
- Description: The status id (0 -> game ongoing; 1 -> draw; 2 -> win)
- Optionnal: No
- Type: int
- Description: Only for status_id=1 (0: stalemate; 1: insufficient material; 2: 50 moves rule; 3: threefold repetition) and status_id=2 (0: white, 1: black)
- Optionnal: Yes
Gets all possible moves for a piece
- Type: array[int]
- Description: The coordiates of the piece to get moves for
- Optionnal: No
- Type: array[array[array[int]]
- Description: All the possible moves (returned as an array of [[start_x, start_y], [end_x, end_y]])
- Optionnal: No
Moves a piece from start_pos to end_pos
- Type: array[int]
- Description: The start coordinates
- Optionnal: No
- Type: array[int]
- Description: The end coordinates
- Optionnal: No
- Enums
- status_id
- detail_id (status_id=1)
- detail_id (status_id=2)