Test Cases (0/4)

      fighter1.takeDamage(45)

    • [fighter1.level, fighter1.hp, fighter1.mp, fighter1.strength, fighter1.armor] to return [1, 100, 20, 20, 60]

    • fighter1.level_up()

    • 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]

    Output
    Michael
      (0/300)