func (b *Board) RemoveTile(t tile.Tile) error {
	if !b.hasTile(t) {
		return errors.New("player does not have tile with id " + strconv.Itoa(int(t.ID)))
	}
	_, ok := b.UnusedTiles[t.ID]
	switch {
	case ok:
		b.removeUnusedTile(t)
	default:
		b.removeUsedTile(t)
	}
	return nil
}
// RemoveTile removes a single tile from the board's tiles.
// An error is returned if the board does not have the tile.
RemoveTile removes a single tile from the board's tiles.
An error is returned if the board does not have the tile.
// RemoveTile removes a single tile from the board ' s tiles . // An error is returned if the board does not have the tile .
func (b *Board) RemoveTile(t tile.Tile) error {
	if !b.hasTile(t) {
		return errors.New("player does not have tile with id " + strconv.Itoa(int(t.ID)))
	}
	_, ok := b.UnusedTiles[t.ID]
	switch {
	case ok:
		b.removeUnusedTile(t)
	default:
		b.removeUsedTile(t)
	}
	return nil
}
func ( b * Board ) RemoveTile ( t tile . Tile ) error { if ! b . hasTile ( t ) { return errors . New ( " " + strconv . Itoa ( int ( t . ID ) ) ) } _ , ok := b . UnusedTiles [ t . ID ] switch { case ok : b . removeUnusedTile ( t ) default : b . removeUsedTile ( t ) } return nil }
RemoveTile removes a single tile from the board's tiles.
RemoveTile removes a single tile from the board ' s tiles .