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.
Before these two tests:
The warrior level is actually should be
4
, not3
as seen in the tests below.With the current total experience of
400
. So, gained exp is20 * (9-4) * (9-4) = 20 * 25
which is500
. So, the new level should be9
(because400 + 500
).The warrior is
5
level from14
and is lower in rank (the warrior isPushover
, meanwhile the enemy isNovice
).Test cases for JavaScript aren't following instructions given. Exp given for battles is ( 20 * diff * diff ) however leads to errors in testing. By the time Warrior() is level 3, fights level 9, gains 720 exp, ends up as level 11, fails test because next fight is level 14 and test says the fight is supposed to be a defeat.