Exemple #1
0
    def pudding_points(self):
        max_pudding_count = 0
        max_pudding_player = Player("player")
        for player in self.players:
            if player.get_pudding() > max_pudding_count:
                max_pudding_count = player.get_pudding()
                max_pudding_player = player

        max_pudding_player.add_points(6)
Exemple #2
0
    def maki_points(self):
        max_maki_count = 0
        max_maki_player = Player("player")

        second_maki_count = 0
        second_maki_player = Player("player")

        for player in self.players:
            if player.get_maki() > max_maki_count:
                max_maki_count = player.get_maki()
                max_maki_player = player

            elif player.get_maki() > second_maki_count:
                second_maki_count = player.get_maki()
                second_maki_player = player

        max_maki_player.add_points(6)
        second_maki_player.add_points(3)