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.
Thanks Matt, that I'll do :)
This test is super easy in Ruby, nontheless the submit tests do not pass.
It prints
Any clue ?
Thank you very much ! I tried it before but since I am a noob I was not very confident.
So I tried again with a deeper copy (using mapito = minemap.map { |e| e.dup } in Ruby) and I worked.
Still... it is the first time it happens. I have no idea how I can avoid this in the future.
This comment is hidden because it contains spoiler information about the solution
I am pretty sure my fairly stupid algorithm works but it seems to transform the value of the minemap for the next run of the function.
So it works each first time the minemap changes in the tests, but the second it uses the changed map.
I am new to programming and this does not make any sense to me... Any help or clue ?
I am surprised this worked in the tests. Well done!