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 showed 2 9x9 mazes
Personally, I find loops harder to read and just as error prone as regular expressions. And it's a nice opportunity to practice them regexes :)
Grids are always square. This is not one grid.
In the update for
Node 18.x
I have also improved the tests output. This won't happen after that is approved.That would certainly be more cerebral.
However, where do you draw the line? Writing you own upperCase, min, max, etc functions? If the language supports it, out of the box, then it's out there to be used.
This comment is hidden because it contains spoiler information about the solution
I'm stuck with this kata for 3 days and then this :,c
it can, if its printed by two separate tests.
even if you print only once, but your solution is called twice, then two mazes will be printed.
print some additional separator after each maze and see if this changes anything.
Are you sure its a one maze, and not two mazes printed one after another?
I now have an idea how to do this, thank you for the comment ! Are there any good resources you would recommend that treat this subject ?
No, you just hardcoded the answer
The goal of the kata is very simple and straightforward.
That is all that is required and the tests are sufficient for this purpose.
That happens when there aren't random tests (I've created an issue 3 years ago, it's still open).
Individual letters' case matters:
"a"
turns caps on"b"
becomes"B"
(lowercase + caps = uppercase)"A"
turns caps off"B"
stays"B"
(uppercase = uppercase)"a"
turns caps on"B"
becomes"b"
(uppercase + caps = lowercase)