예제 #1
0
 def test_get_winner_draw(self):
     combat = SimulatedCombat(([], []))
     self.assertEqual(combat.get_winner(), (-1, 0))
예제 #2
0
 def test_get_winner(self):
     loser = []
     minion = create_entity(health=1)
     winner = [minion]
     combat = SimulatedCombat((loser, winner))
     self.assertEqual(combat.get_winner(), (1, minion.tier))