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.
Description should be language-agnostic.
Ruby 3.0 should be enabled.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
The directions are kind of weird... They don't follow the orientation of the array, or a standard number line with right and up being positive...
Should make it very clear in the description.
Scala translation
Not sure if this is helpful at all because I'm not sure if this kata can still be edited (I don't understand the rules around that) but just to say that the dead-end test issue noted by GGCrew and computerguy103 below is still an issue –– the kata says your code should work for dead-ends, but it only tests for one possible kind of dead end, so faulty code (like mine, it turns out) can pass the tests. GGCrew and computerguy103 both provide example tests that could be added and would tighten up this kata considerably -- if anyone has the power to do that I think it's just a matter of copying their examples over to the final test case, but like I said I don't know if that's possible now
moving to Right is D, it's not intuitive at all.
This comment is hidden because it contains spoiler information about the solution
Using the variable name "map" in Python conflicts with the built in map function. I was stuck for ages trying to work out what was causing the error when I tried to use the map function! I'd suggest changing the name to cave_map or something.
I fully agree with daddepledge, altering a map is definitely a bad idea for this kata, it should be mentioned (and maybe even tested) explicitly!
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution