Add statistics for daily word
Closed this issue · 0 comments
ankarhem commented
add states table
id | name |
---|---|
1 | Won |
2 | Lost |
add statistics table
id | wordId | amountOfGuesses | stateId | Timestamp |
---|---|---|---|---|
1 | 2 | 6 | 2 | 1643900498 |
UI: When state is no longer Playing
(Won / Failed) POST the amount of guesses made to /word/{id}/statistics
with body
{
amountOfGuesses: number
state: GameState.Won | GameState.Failed
}