Beispiel #1
0
 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
Beispiel #2
0
 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
Beispiel #3
0
 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)
Beispiel #4
0
 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)