def test_count_rules_with_last(trumpf): deck = Deck() points = count_stich(cards=deck.cards, trumpf=trumpf, last=True) assert points == 157
def add_points(self, team_index, cards, last): points = count_stich(cards, self.trumpf, last=last) points = points * counting_factor[ self.trumpf] if self.use_counting_factor else points self.teams[team_index].points += points
def test_count_rules(trumpf): deck = Deck() points = count_stich(cards=deck.cards, trumpf=trumpf, last=False) assert points == 152