3 ms·
When someone says "minesweeper" I always shamelessly plug my js implementation: http://www.ronilan.com/bugsweeper/ http://www.ronilan.com/bugsweeper/ Don't ask
by ronilan 10y ago
When someone says "minesweeper" I always shamelessly plug my js implementation: http://www.ronilan.com/bugsweeper/ http://www.ronilan.com/bugsweeper/ Don't ask me why.
- LVB 10y agoThanks. Nice game.
- tempestn 10y agoBecause you know that after reading about minesweeper, a person naturally wants to play minesweeper. Thanks! 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.
- ronilan 10y agoIndeed. 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 http://ronilan.com/bugsweeper/js/bugsweeper.js it is with jquery. Don't ask me why.
- tempestn 10y agoWhat I'm referring to though is the case where left-clicking on an UNflagged square flags it. Doesn't seem like that should happen. I'm not sure exactly when it was happening - perhaps the first left click after a right-click flag? Or the first one after a chord?
- deleted 10y ago[deleted]
- Buge 10y agoIt has a bug. When I right click to add a flag, then right click to remove the flag, then left click to reveal it adds a flag instead of revealing.
- logicallee 10y agoSystem details: 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.)
- newton3 10y agoI just had to play to see what your animation is when you win!
- logicallee 10y agoyou don't have the same behavior - when you click with both mouse buttons and it doesn't have the exact number of neighbors, it should depress the neighbor squares until you let go. like this - http://i.imgur.com/843NK6H.png http://i.imgur.com/843NK6H.png
- logicallee 10y ago(I middle-clicked or clicked both buttons on the 3 I scribbled in in red.)
- kyberias 10y agoIt should have the same mouse usage. Now it's totally random: sometimes left mouse "opens" up a square, sometimes it puts a flag on it.