func (g *Game) resizeBoard(m message.Message) (*message.Message, error) {
	p := g.players[m.PlayerName]
	b := p.Board
	rr, err := b.Resize(m.Game.Board.Config)
	if err != nil {
		return nil, err
	}
	m2 := message.Message{
		Info:       rr.Info,
		Type:       m.Type,
		PlayerName: m.PlayerName,
		Game: &game.Info{
			Board:     board.New(rr.Tiles, rr.TilePositions),
			TilesLeft: len(g.unusedTiles),
			Status:    g.status,
			Players:   g.playerNames(),
			ID:        g.id,
			Config:    &g.Config.Config,
		},
		Addr: m.Addr,
	}
	if g.status == game.Finished {
		m2.Game.FinalBoards = g.playerFinalBoards()
	}
	return &m2, nil
}
// resizeBoard refreshes the board for the specified player using the config.
resizeBoard refreshes the board for the specified player using the config.
// resizeBoard refreshes the board for the specified player using the config .
func (g *Game) resizeBoard(m message.Message) (*message.Message, error) {
	p := g.players[m.PlayerName]
	b := p.Board
	rr, err := b.Resize(m.Game.Board.Config)
	if err != nil {
		return nil, err
	}
	m2 := message.Message{
		Info:       rr.Info,
		Type:       m.Type,
		PlayerName: m.PlayerName,
		Game: &game.Info{
			Board:     board.New(rr.Tiles, rr.TilePositions),
			TilesLeft: len(g.unusedTiles),
			Status:    g.status,
			Players:   g.playerNames(),
			ID:        g.id,
			Config:    &g.Config.Config,
		},
		Addr: m.Addr,
	}
	if g.status == game.Finished {
		m2.Game.FinalBoards = g.playerFinalBoards()
	}
	return &m2, nil
}
func ( g * Game ) resizeBoard ( m message . Message ) ( * message . Message , error ) { p := g . players [ m . PlayerName ] b := p . Board rr , err := b . Resize ( m . Game . Board . Config ) if err != nil { return nil , err } m2 := message . Message { Info : rr . Info , Type : m . Type , PlayerName : m . PlayerName , Game : & game . Info { Board : board . New ( rr . Tiles , rr . TilePositions ) , TilesLeft : len ( g . unusedTiles ) , Status : g . status , Players : g . playerNames ( ) , ID : g . id , Config : & g . Config . Config , } , Addr : m . Addr , } if g . status == game . Finished { m2 . Game . FinalBoards = g . playerFinalBoards ( ) } return & m2 , nil }
resizeBoard refreshes the board for the specified player using the config.
resizeBoard refreshes the board for the specified player using the config .