Really nice one!
Took some time to get the idea, then the coding was trivial.
C# Translation added.Please review and approve~
Ruby translation now with random tests! Thanks for the suggestion @Voile
Review and approve, or suggest more edits :)
Ruby translation without random tests.... it was close to timing out with the largest numbers, so I left the random tests out.
Thanks. It's a great Kata.
Approval given. Thank you for the contribution!
Please review and approve.
This comment is hidden because it contains spoiler information about the solution
Here endeth the lesson ;)
Nothing more and nothing less to say ;-)
I know what you think ;-)
But in this case, You can't be SURE what is hidden underneath the question mark. Right?
The purpose of this Kata is: you need to infer each ? by logic, not guess, or imagine.
What you can do is to judge whether a ? is a mine. If yes, mark it. Sure not, open it.
If not sure, keep it. Continue to look for other clues.If there are no clues to use, you should return a "?", intead of guessing or imagining ;-)