Skip to content
forked from rayokota/chesster

A Dropwizard service for playing chess.

Notifications You must be signed in to change notification settings

panfren/chesster

 
 

Repository files navigation

Chesster

A dropwizard service for playing chess.

REST API Commands

Resource Description Example Payload
POST /games Creates a new game.
Specify a player ID of -1 for a computer opponent.
{ 
  "id": 123,
  "properties": {
    "white": "Yokota",
    "black": "Lang", 
    "whiteId": 1,
    "blackId": 2
  }
}
GET /games/{id} Retrieves an existing game.
DELETE /games/{id} Deletes an existing game.
POST /games/{id}/moves/{move} Make a move specified in algebraic notation.
If playing with a computer, the computer will also move.
POST /games/{id}/undomove Takes back a move (or 2 moves with a computer opponent).
GET /games/{id}/bestmove Retrieves a computer hint for the best move.

UI

Resource Description
GET /games/{id}/play?playerId={playerId} Displays a playable game from the perspective of the given player ID.
GET /games/{id}/pgn Displays a game for examination.

About

A Dropwizard service for playing chess.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 40.1%
  • Java 28.9%
  • PHP 17.4%
  • Perl 6.4%
  • CSS 4.9%
  • Shell 2.3%