Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
You incorrectly handle the
"You've been defeated"
case. The description clearly explains this.You've missed something, you should read the description again. ;)
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.