예제 #1
0
 def test_player_decides_to_draw_when_there_Are_no_valid_cards(self):
     player = Player("S", [Card("RED", 1)] * 7)
     top_card = Card("BLUE", 4)
     self.assertEqual(player.decide_action(top_card), "TAKE")
예제 #2
0
 def test_player_should_play_when_there_are_valid_cards(self):
     player = Player("S", [Card("RED", 1)] * 7)
     top_card = Card("RED", 1)
     self.assertEqual(player.decide_action(top_card), "PLAY")