added simple game stats
This commit is contained in:
+4
-2
@@ -128,12 +128,14 @@ func NewBoardstate() *Boardstate {
|
||||
}
|
||||
|
||||
type GameOver struct {
|
||||
Type string `json:"type"`
|
||||
Winners []string `json:"winners"`
|
||||
Type string `json:"type"`
|
||||
}
|
||||
|
||||
func NewGameOver() *GameOver {
|
||||
return &GameOver{
|
||||
Type: "gameover",
|
||||
Type: "gameover",
|
||||
Winners: make([]string, 0),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user