added simple game stats

This commit is contained in:
sm
2013-11-13 23:45:02 -08:00
parent 84ed6c9c32
commit 245c483f9e
4 changed files with 84 additions and 29 deletions
+4 -2
View File
@@ -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),
}
}