Ad
  • Custom User Avatar

    You incorrectly handle the "You've been defeated" case. The description clearly explains this.

  • Custom User Avatar

    You've missed something, you should read the description again. ;)

  • Default User Avatar

    Could you help me understand. I face the same issue as gussar.

    // my warrior has exp: 400, lvl: 4
    Test.assertDeepEquals(Goku.battle(9), "An intense fight", "...")// he win, because 9-4=5
    // my warrior has exp:900, lvl: 9
    Test.assertDeepEquals(Goku.battle(14), "You've been defeated", "...")// he defeated, because 14-9=5(???)

    Why in first case i got 'An intense fight' but on second case i got 'You've been defeated' where different between the levels the same.