app.box.com/s/6liwytg3tct2fhiyxqyk
I'm following Zetar's example in the link above. When it's game over, I insert a txt to inform the user that they lost, but I'm not able to do the same when detecting a victory. I made some comparisons, but I broke the code. If you can help me, please.
Develop games in your browser. Powerful, performant & highly capable.
You could use a variable for total number of mines and compare it to number of Cells where text = []. That means you've won I think, if there are x mines and you have x cells of text [].
Alternative minesweeper (game with source) without array:
construct.net/en/free-online-games/minisweepy-66966/play