API for playing chess without calculating stalemate situations. Good for experiments with random games.
Available methods:
- Start new game
URL: /chess_api/startNewGame.php
Request-Type: POST
Parameters: -
Response example: { "message": "The new game was started!" }
- Get game status
URL: /chess_api/getGameStatus.php
Request-Type: GET
Parameters: -
Response example: { "game_status": "Game in process" }
- Make move
URL: /chess_api/makeMove.php
Request-Type: POST
Content-Type: application/json
Parameters:
- from_coordinates (eg "a 1")
- to_coordinates (eg "h 8")
Response example: { "message": "The move was made successfully!" }