3 ms·
I'm sure there's only a few ways to do it, but this code is really similar to the one I wrote back in December: https://github.com/mikehodgson/minesweeper https
by mikehodgson 7y ago
I'm sure there's only a few ways to do it, but this code is really similar to the one I wrote back in December: https://github.com/mikehodgson/minesweeper https://github.com/mikehodgson/minesweeper
It is playable here: https://sweeper.games https://sweeper.games
No jQuery, just straight CSS/HTML/ES6
- wilhil 7y agoI just tried playing! You have a bug, there is no way to unmark a cell, so, when I did one incorrectly, I couldn't click on it :(
- mikehodgson 7y agoThanks for the feedback, just pushed a fix for it! :)
- dylan604 7y agoThis playable version seems to be missing the feature of auto-revealing the squares, usually a ctrl-click on a square to compare against placed flags. It's actually rule 5 from the linked page
- mikehodgson 7y agoThat feature is implementation specific, not a rule of the game. I've never used it, so I didn't bother implementing it.