Example #1
0
 def declaredMahJongg(self, concealed, withDiscard, lastTile, lastMeld):
     """player declared mah jongg. Determine last meld, show
     concealed tiles grouped to melds"""
     PlayingPlayer.declaredMahJongg(self, concealed, withDiscard, lastTile,
                                    lastMeld)
     if withDiscard:
         # withDiscard is a Tile, we need the UITile
         discardTile = Internal.scene.discardBoard.lastDiscarded
         if discardTile.tile is not withDiscard:
             self.game.debug('%s is not %s' %
                             (discardTile.tile, withDiscard))
             assert False
         self.syncHandBoard([discardTile])
     else:
         # show concealed tiles
         self.syncHandBoard()
Example #2
0
 def declaredMahJongg(self, concealed, withDiscard, lastTile, lastMeld):
     """player declared mah jongg. Determine last meld, show
     concealed tiles grouped to melds"""
     PlayingPlayer.declaredMahJongg(
         self,
         concealed,
         withDiscard,
         lastTile,
         lastMeld)
     if withDiscard:
         # withDiscard is a Tile, we need the UITile
         discardTile = Internal.scene.discardBoard.lastDiscarded
         if discardTile.tile is not withDiscard:
             self.game.debug(
                 '%s is not %s' %
                 (discardTile.tile, withDiscard))
             assert False
         self.syncHandBoard([discardTile])
     else:
         # show concealed tiles
         self.syncHandBoard()