send the client max points for the game
This commit is contained in:
@@ -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",
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user