Skip to content

API for playing chess without calculating stalemate situations. Good for experiments with random games.

License

Notifications You must be signed in to change notification settings

eekstunt/Chess-Api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Chess-Api

API for playing chess without calculating stalemate situations. Good for experiments with random games.

Available methods:

  1. Start new game

URL: /chess_api/startNewGame.php

Request-Type: POST

Parameters: -

Response example: { "message": "The new game was started!" }

  1. Get game status

URL: /chess_api/getGameStatus.php

Request-Type: GET

Parameters: -

Response example: { "game_status": "Game in process" }

  1. 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!" }

About

API for playing chess without calculating stalemate situations. Good for experiments with random games.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages