示例#1
0
    def getPaoqiaomobaBaCount(self):
        """
        跑恰摸八中的八:筒、条、风这三门牌里面,和牌时,有几门达到8张
        每种花色,8张加1分,9张加2分,以此类推
        """
        baCount = 0
        if self.tableConfig.get(MTDefine.PAOQIAMOBA, 0):
            colorCountArr = [0, 0, 0, 0]
            for tile in self.__player_all_tiles_arr[self.winSeatId]:
                color = MTile.getColor(tile)
                colorCountArr[color] += 1

            for colorCount in colorCountArr:
                if colorCount >= 8:
                    baCount += colorCount - 7
        ftlog.debug('MKawuxingOneResult.getPaoqiaomobaBaCount baCount: ', baCount)
        return baCount
示例#2
0
    def getPaoqiaomobaBaCount(self):
        """
        跑恰摸八中的八:筒、条、风这三门牌里面,和牌时,有几门达到8张
        每种花色,8张加1分,9张加2分,以此类推
        """
        baCount = 0
        if self.tableConfig.get(MTDefine.PAOQIAMOBA, 0):
            colorCountArr = [0, 0, 0, 0]
            for tile in self.__player_all_tiles_arr[self.winSeatId]:
                color = MTile.getColor(tile)
                colorCountArr[color] += 1

            for colorCount in colorCountArr:
                if colorCount >= 8:
                    baCount += colorCount - 7
        ftlog.debug('MKawuxingOneResult.getPaoqiaomobaBaCount baCount: ',
                    baCount)
        return baCount
示例#3
0
    def isQingyise(self):
        """
        清一色:由同一门花色(筒子或条子)组成的和牌牌型
        """
        colorArr = [0, 0, 0, 0]
        for tile in self.__player_all_tiles_arr[self.winSeatId]:
            color = MTile.getColor(tile)
            colorArr[color] = 1

        colorCount = 0
        for eachColor in colorArr:
            if eachColor:
                colorCount += 1
        if colorCount > 1:
            ftlog.debug('MKawuxingOneResult.isQingyise result: False')
            return False
        ftlog.debug('MKawuxingOneResult.isQingyise result: True')
        return True
示例#4
0
    def isQingyise(self):
        """
        清一色:由同一门花色(筒子或条子)组成的和牌牌型
        """
        colorArr = [0, 0, 0, 0]
        for tile in self.__player_all_tiles_arr[self.winSeatId]:
            color = MTile.getColor(tile)
            colorArr[color] = 1

        colorCount = 0
        for eachColor in colorArr:
            if eachColor:
                colorCount += 1
        if colorCount > 1:
            ftlog.debug('MKawuxingOneResult.isQingyise result: False')
            return False
        ftlog.debug('MKawuxingOneResult.isQingyise result: True')
        return True