1/4 Test Cases Passed
You need to earn 2 or 3 stars in order to submit.
1/4 Test Cases Passed
You need atleast 2 stars to grade your answer.
Test Cases (0/4)
-
[fighter1.level, fighter1.hp, fighter1.mp, fighter1.strength, fighter1.armor] to return [1, 100, 20, 20, 60]
-
fighter1.attack() <= fighter1.strength and fighter1.attack() >= fighter1.strength/2 to return True
-
fighter1.hp to return 82.0
-
[fighter1.level, fighter1.hp, fighter1.mp, fighter1.strength, fighter1.armor] to return [2, 130, 50, 24.0, 72.0]
fighter1.takeDamage(45)
fighter1.level_up()