Esempio n. 1
0
 def test_example_fight_1(self):
     player = {"hp": 10, "mana": 250}
     boss = {"hp": 13, "dmg": 8}
     self.assertEqual(who_wins(player, boss), "BossNoStrategy")
Esempio n. 2
0
 def test_example_fight_3(self):
     player = {"hp": 10, "mana": 250}
     boss = {"hp": 14, "dmg": 8}
     strategy = [spells["Recharge"], spells["Shield"], spells["Drain"], spells["Poison"], spells["Magic Missile"]]
     self.assertEqual(who_wins(player, boss, strategy), "Player")