def without(self, remove): """self without tile. The rest will be uppercased.""" tiles = TileList() for tile in self: if tile is remove: remove = None else: tiles.append(tile.concealed) return tiles
def __possibleChows(self): """returns a unique list of lists with possible claimable chow combinations""" if self.game.lastDiscard is None: return [] exposedChows = [x for x in self._exposedMelds if x.isChow] if len(exposedChows) >= self.game.ruleset.maxChows: return [] tile = self.game.lastDiscard within = TileList(self.concealedTiles[:]) within.append(tile) return within.hasChows(tile)