You are viewing a single comment's thread. Return to all comments →
I made this little .html to help me visualize the problem, you can set the rows, columns and initial bombs position and watch it evolve. I hope you find it useful.
This is the JSFiddle with the same file
Bro that one was really nice
Really nice. But all that work to illustrate the wrong logic.
The whole 33 matrix blows up and not just the 4 cells at the top, bottom, left and right.
That's a typo in the question.