-
Notifications
You must be signed in to change notification settings - Fork 4
API Documentation for Game State
Jeffrey Leung edited this page Feb 2, 2019
·
1 revision
Returns the current state of the game.
See the possible game states.
GET
/gamestate
HTTP Status Code | Meanings |
---|---|
200 OK |
Retrieved game state successfully |
500 Internal Server Error |
The server crapped itself |
{
"state" : "INITIALIZING"
}
Retrieves the current game score.
- An eaten Pacdot is worth 10 points.
- An eaten Powerdot is worth 50 points.
- An eaten Ghost is worth 50 points.
GET
/gamestate/score
HTTP Status Code | Meanings |
---|---|
200 OK |
Retrieved game score succesfully |
500 Internal Server Error |
An error occurred which could not be resolved |
{
"score" : 60
}