Adding game persistence
Signed-off-by: James Ketrenos <james_eikona@ketrenos.com>
This commit is contained in:
parent
a4c15e83d3
commit
72d3dcd157
18
README.md
18
README.md
@ -154,3 +154,21 @@ curl -k -s -X POST http://localhost:8930/ketr.ketran/api/v1/games/
|
|||||||
```bash
|
```bash
|
||||||
curl -k -s -X GET http://localhost:8930/ketr.ketran/api/v1/games/:id
|
curl -k -s -X GET http://localhost:8930/ketr.ketran/api/v1/games/:id
|
||||||
```
|
```
|
||||||
|
|
||||||
|
# States
|
||||||
|
|
||||||
|
Chat is available at all times by registered players
|
||||||
|
|
||||||
|
## Lobby
|
||||||
|
|
||||||
|
* Register session+name
|
||||||
|
* Register session with color
|
||||||
|
* Unregister player+name from color
|
||||||
|
* Roll dice for player position
|
||||||
|
* Shuffle board
|
||||||
|
* Set "Ready" for player
|
||||||
|
* All ready? state == active
|
||||||
|
|
||||||
|
## Active
|
||||||
|
|
||||||
|
*
|
2
server/.gitignore
vendored
Normal file
2
server/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
games/*
|
||||||
|
!games/.keep
|
0
server/games/.keep
Normal file
0
server/games/.keep
Normal file
Loading…
x
Reference in New Issue
Block a user