func (g *Game) UpdateInfo(m message.Message) {
	g.updateStatus(m)
	g.updateTilesLeft(m)
	g.updatePlayers(m)
	switch {
	case m.Game.Board == nil:
		// NOOP
	case len(m.Game.Board.UsedTiles) > 0:
		g.replaceGameTiles(m)
	case len(m.Game.Board.UnusedTiles) > 0:
		g.addUnusedTiles(m)
	}
	g.canvas.Redraw()
	if m.Type == message.JoinGame {
		g.setRules(m.Game.Config.Rules())
		g.id = m.Game.ID
	}
}
// UpdateInfo updates the game for the specified message.
UpdateInfo updates the game for the specified message.
// UpdateInfo updates the game for the specified message .
func (g *Game) UpdateInfo(m message.Message) {
	g.updateStatus(m)
	g.updateTilesLeft(m)
	g.updatePlayers(m)
	switch {
	case m.Game.Board == nil:
	case len(m.Game.Board.UsedTiles) > 0:
		g.replaceGameTiles(m)
	case len(m.Game.Board.UnusedTiles) > 0:
		g.addUnusedTiles(m)
	}
	g.canvas.Redraw()
	if m.Type == message.JoinGame {
		g.setRules(m.Game.Config.Rules())
		g.id = m.Game.ID
	}
}
func ( g * Game ) UpdateInfo ( m message . Message ) { g . updateStatus ( m ) g . updateTilesLeft ( m ) g . updatePlayers ( m ) switch { case m . Game . Board == nil : case len ( m . Game . Board . UsedTiles ) > 0 : g . replaceGameTiles ( m ) case len ( m . Game . Board . UnusedTiles ) > 0 : g . addUnusedTiles ( m ) } g . canvas . Redraw ( ) if m . Type == message . JoinGame { g . setRules ( m . Game . Config . Rules ( ) ) g . id = m . Game . ID } }
UpdateInfo updates the game for the specified message.
UpdateInfo updates the game for the specified message .
// NOOP