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.
PHP, no sample test.
Your warrior's experience should be relative to his level: 300 should equal 400
Log:
Level = 9
Experience = 800
Rank = Pushover
Which value is 300?
No way it's the experience right?
Nice kata, funny to solve, well done.
Approved
python new test framework is required. updated in this fork
Your level should be 3 at that test.
Scala translation
Does not appear to be a kata issue, the warrior should be level 3 before that fight rather than level 4.
At least that's the case with both the kata reference and top rated solutions.
It says 'experinece' (mispelling) somewhere in the Python instructions.
not sure about other languages
Confitions
Return "Easy fight" if your warrior is 2 or more levels higher than your enemy's level. Return "A good fight" if your warrior is either 1 level higher or equal to your enemy's level.
I get a test (logged my level and enemy level)
Log
4 2
Your enemy isn't exactly your level. Provide the appropriate response: 'Easy fight' should equal 'A good fight'
?????????????
I'm sure the level should be 4, but yes, there is a mistake in the string.
One of the test cases is:
Test.assertDeepEquals(Goku.level(), 4, "Your warrior should now be LV 3")
Is this a mistake? Why does it expect Goku.level() to be 4 when they said that it should be 3? My program is returning 3, as I thought it should be, so that's why I'm asking.
As mentioned above, you can log at certain actions done on the class methods.
Loading more items...