func (g *Game) viewFinalBoard() {
	checkedLabel := g.dom.QuerySelector(".player-list input:checked+label")
	playerName := checkedLabel.Get("innerHTML").String()
	b, ok := g.finalBoards[playerName]
	if !ok {
		g.log.Error("could not view final board for " + playerName)
		return
	}
	canvas := g.canvasCreator.Create(&b, ".final-boards .canvas")
	tileLength := g.canvas.TileLength()
	canvas.SetTileLength(tileLength)
	width := canvas.DesiredWidth()
	canvas.UpdateSize(width)
	canvas.Redraw()
}
// viewFinalBoard draws the board for the clicked player on the .final-boards canvas.
viewFinalBoard draws the board for the clicked player on the .final-boards canvas.
// viewFinalBoard draws the board for the clicked player on the . final - boards canvas .
func (g *Game) viewFinalBoard() {
	checkedLabel := g.dom.QuerySelector(".player-list input:checked+label")
	playerName := checkedLabel.Get("innerHTML").String()
	b, ok := g.finalBoards[playerName]
	if !ok {
		g.log.Error("could not view final board for " + playerName)
		return
	}
	canvas := g.canvasCreator.Create(&b, ".final-boards .canvas")
	tileLength := g.canvas.TileLength()
	canvas.SetTileLength(tileLength)
	width := canvas.DesiredWidth()
	canvas.UpdateSize(width)
	canvas.Redraw()
}
func ( g * Game ) viewFinalBoard ( ) { checkedLabel := g . dom . QuerySelector ( " " ) playerName := checkedLabel . Get ( " " ) . String ( ) b , ok := g . finalBoards [ playerName ] if ! ok { g . log . Error ( " " + playerName ) return } canvas := g . canvasCreator . Create ( & b , " " ) tileLength := g . canvas . TileLength ( ) canvas . SetTileLength ( tileLength ) width := canvas . DesiredWidth ( ) canvas . UpdateSize ( width ) canvas . Redraw ( ) }
viewFinalBoard draws the board for the clicked player on the .final-boards canvas.
viewFinalBoard draws the board for the clicked player on the . final - boards canvas .