by ronilan · 9y ago · 0 comments
One thing I noticed though - in oldschool minesweeper, left click would test, and right would flag. Right seems to always flag here, but left sometimes tests, and sometimes toggles. Regardless, bookmarked.
A left click on a flagged cell will unflag it. Don't remember why I implemented it this way. Maybe for touch screens which don't have the right click functionality.
Btw, source is here: http://ronilan.com/bugsweeper/js/bugsweeper.js it is with jquery. Don't ask me why.
Latest Chrome on windows 7.
Steps to reproduce:
1. Start a game.
2. Right-click to add a flag.
3. Right-click the same square again, to remove the flag just added.
4. Left-click to reveal the same square.
Expected behavior: the square turns into a bomb (you lose) or a number (you keep playing)
Actual behavior: square turns into a flag (as though right-clicking.)