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.
I don't know where you see this:
Because that's not what you should do. Not a kata issue.
The current instructions can be read as return the sum of the distances between the first and the last pillar and the width of the pillars (if there is any) in between. Moreover, if you ignore the width of the first and last pillar, it means consider them 0, left, center or right are the same position.
This comment is hidden because it contains spoiler information about the solution
do not redefine the
Fighter
class, it is preloaded for you. redefining it tampers with the tests, which should not happen. re-raised an issue about that above with a proposed fixJavaScripts tests are vulnerable to (possibly accidental) redefinition of the
fighter
class.fixed here along with:
Fighter
sThere are ways to check whats tested on Codewars: https://docs.codewars.com/training/training-example#debugging-a-kata
Passing all the sample tests, then failing one of the random 200 tests. The description and parameters aren't clear enough to figure out what's causing the failed test, and there's no way to view the failed test on Codewars (like you can on other platforms).