Exemple #1
0
    def check_count(self):
        current_round = self.game.latestRound
        if current_round is None or \
                        self.last_id == current_round.id:
            return
        self.last_id = current_round.id

        if 0 <= current_round.value <= 9:
            self.count += 1
            Logger.info("游戏: {0},期号:{1} 值:{2},小边计数++:{3}".format(
                RuleBase.get_color_red(self.game.get_game_name()), RuleBase.get_color_red(current_round.id),
                RuleBase.get_color_red(current_round.value), RuleBase.get_color_green(self.count)))
        else:
            self.count = 0
Exemple #2
0
 def __init__(self, game):
     RuleBase.__init__(self, game)
     pass