Skip to content

Latest commit

 

History

History
50 lines (28 loc) · 1.17 KB

README.md

File metadata and controls

50 lines (28 loc) · 1.17 KB

Krokodil

Compile and Test stage codecov

A web application based on the Crocodile game, where players pick a tooth in turn, and the person who picks the bad tooth loses.

This is a side project, intended to be played online with friends, as a result of the COVID-19 pandemic.

Notes to self

Game state transition graph:

Game State Graph

Class Diagram

UML Class Diagram

REST API

GET /api/game

  • Required: session_id

PUT /api/player/username

  • Required: session_id
  • Required: new_username

POST /api/player/info

  • Required: user_id

POST /api/game/join

  • Required: session_id
  • Required: game_id

POST /api/game/create

  • Required: session_id
  • Returns: game_id

POST /api/game/action

  • Required: session_id
  • Required: action_name
  • Optional: params