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.
This comment is hidden because it contains spoiler information about the solution
In the description:
What is
maze.cell(0, 1)
? Isn'tmaze
a 2d array?JS: Node v14 should be used along with its appropiate assertion tools (Mocha + Chai).
Refer to this and this
What is "natural compare"? Random example which can mean absolutely anything is not a specification.
if it's any path, why is there is there a test checking the length of the path? (JS)
Needs random tests
The helper functions are not defined when I run tests. I'm not sure if this is a problem with the kata or a glitch in CodeWars - the "submit" tests seem to run OK...
Update:
For anyone who doesn't want to write their own
display
function, here's the one I used:Definitely not 1kyu, maybe 2 or 3. There is certainly more than one algorithm to do this.
Considering this language, which set my first attempt in the wrong direction
I assumed that it was a labyrinth rather than a "maze" based on that statement. Can you add after that a statement that says "I.e. there are no cycles in the maze." or "you can't return to a previous position in the maze without covering ground you've already been"?