func (b *Board) AddTile(t tile.Tile) error {
	if b.hasTile(t) {
		return errors.New("player already has tile with id " + strconv.Itoa(int(t.ID)))
	}
	b.UnusedTiles[t.ID] = t
	b.UnusedTileIDs = append(b.UnusedTileIDs, t.ID)
	return nil
}
// AddTile adds a tile to the board's unused tiles.
// An error is returned and the tile is not added if the player already has it.
AddTile adds a tile to the board's unused tiles.
An error is returned and the tile is not added if the player already has it.
// AddTile adds a tile to the board ' s unused tiles . // An error is returned and the tile is not added if the player already has it .
func (b *Board) AddTile(t tile.Tile) error {
	if b.hasTile(t) {
		return errors.New("player already has tile with id " + strconv.Itoa(int(t.ID)))
	}
	b.UnusedTiles[t.ID] = t
	b.UnusedTileIDs = append(b.UnusedTileIDs, t.ID)
	return nil
}
func ( b * Board ) AddTile ( t tile . Tile ) error { if b . hasTile ( t ) { return errors . New ( " " + strconv . Itoa ( int ( t . ID ) ) ) } b . UnusedTiles [ t . ID ] = t b . UnusedTileIDs = append ( b . UnusedTileIDs , t . ID ) return nil }
AddTile adds a tile to the board's unused tiles.
AddTile adds a tile to the board ' s unused tiles .