send the client max points for the game

This commit is contained in:
sm
2014-01-22 22:14:22 -08:00
parent a57903d81c
commit d3070ad501
2 changed files with 16 additions and 10 deletions
+13
View File
@@ -357,3 +357,16 @@ func (g *game) sendGameOver(eg *GameOver) {
s.send <- eg
}
}
// returns a GameParam object popuplated by info from the game. This is
// used during client/server initial negociation.
func (g *game) gameParam() *GameParam {
return &GameParam{
BoardSize: BoardSize{
Width: g.width,
Height: g.height,
},
MaxPoints: g.maxPoints,
Type: "gameparam",
}
}