Skip to content

A simple web application based on the Crocodile game

Notifications You must be signed in to change notification settings

Adriandmen/krokodil

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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