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 should write a function with which you can print the board at any moment with all the information that you need. And don't try to solve this kata in the browser, I think the complexity demands an IDE / Editor with debugging capabilities
This comment is hidden because it contains spoiler information about the solution
Haven't done this kata, but I assume the
open
method either returns or prints something. That's up to you.And about the whole mine field, it's passed as an argument
map
, but the updated one you should have it saved yourself to a variable.Hope I'm able to help.
Yeah, same. This is such a fun site to practice RegExp on... I had run out of RegEx challenges on most other sites! xD
This comment is hidden because it contains spoiler information about the solution
:-D
This comment is hidden because it contains spoiler information about the solution
Approved, although I just realized that test cases and example tests are mixed up.
I think this one's quite clear actually
Cheers!
Glad to see the test cases have been updated; it's a more robust kata now.
And @ASDF, any failure to match should return
-1
, that's correct.Thanks guys! I've added some more knotty tests to push your code harder. Please let me know if there are still holes in the tests though...
Yes. From what i can see, a lot of solutions should fail. E.g. i read the description as
"asdf".indexOf(".")
should be-1
? My solution also is improper and should fail (ignores the second variable for the string case oflastIndexOf
) but passes all tests.Thank you, good idea, I'll try to write one of these days.
Loading more items...