skeleton move timer

For #11.
This commit is contained in:
2024-02-03 21:11:09 -06:00
parent ae1cf18d6d
commit 566de4066b
4 changed files with 37 additions and 19 deletions

View File

@@ -23,6 +23,9 @@ type Game struct {
Shell *bool `json:"shell,omitempty"`
// Previous gives whether the previously discharged shell was live.
Previous *bool `json:"previous"`
// Deadline is the deadline on the current player's move in milliseconds
// since the Unix epoch.
Deadline int64 `json:"deadline"`
// Live is the number of live shells this round, if it is the first turn
// of the round.
Live int `json:"live,omitempty"`