Esempio n. 1
0
 def test_player_with_no_cards_should_have_zero_value(self):
     cards = []
     player = Player(name="", cards=cards)
     self.assertEqual(player.get_total_value(), 0)
Esempio n. 2
0
 def test_players_total_value_is_sum_of_values_of_his_cards(self):
     cards = [Card("RED", 2), Card("BLUE", 8), Card("RED", action="SKIP"),
              Card("YELLOW", action="REVERSE"), Card(wild="WILD"),
              Card(wild="WILD_DRAW_FOUR")]
     player = Player(name="DSP", cards=cards)
     self.assertEqual(player.get_total_value(), 150)