示例#1
0
def test_count_rules_with_last(trumpf):
    deck = Deck()
    points = count_stich(cards=deck.cards, trumpf=trumpf, last=True)
    assert points == 157
示例#2
0
 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
示例#3
0
def test_count_rules(trumpf):
    deck = Deck()
    points = count_stich(cards=deck.cards, trumpf=trumpf, last=False)
    assert points == 152