Example #1
0
 def canTingBeforeAddTile(self, tiles, leftTiles, magicTiles=[], winSeatId=0):
     """子类必须实现
     参数:
     返回值:
     发牌后查看是否可以听牌,isHu已经判断是否定缺等胡牌条件,这里就不再判断了
     """
     return MTing.canTingBeforeAddTile(self.tilePatternChecker, self.tableTileMgr, tiles, leftTiles, self.winRuleMgr, magicTiles, winSeatId, winSeatId)
Example #2
0
 def canTingForQiangjinBeforeAddTile(self,
                                     tiles,
                                     leftTiles,
                                     magicTiles=[],
                                     curSeatId=0,
                                     winSeatId=0,
                                     actionID=0,
                                     tingForQiangjin=True):
     return MTing.canTingBeforeAddTile(tiles, leftTiles, self.winRuleMgr,
                                       magicTiles, curSeatId, winSeatId,
                                       actionID, tingForQiangjin,
                                       self.flowerRule)
Example #3
0
    def canTingBeforeAddTile(self,
                             tiles,
                             leftTiles,
                             magicTiles=[],
                             winSeatId=0):
        """子类必须实现
        参数:
        1)tiles 该玩家的手牌

        返回值:
        是否可以听牌,听牌详情
        """
        return MTing.canTingBeforeAddTile(self.tilePatternChecker,
                                          self.tableTileMgr, tiles, leftTiles,
                                          self.winRuleMgr, magicTiles,
                                          winSeatId)
Example #4
0
 def canTingForQiangjinBeforeAddTile(self, tiles, leftTiles, magicTiles = [], curSeatId = 0, winSeatId = 0, actionID = 0,tingForQiangjin = True):
     return MTing.canTingBeforeAddTile(tiles, leftTiles, self.winRuleMgr, magicTiles, curSeatId, winSeatId, actionID,tingForQiangjin,self.flowerRule)