Top
Best
New

Posted by notamy 10/23/2024

One Square Minesweeper(onesquareminesweeper.com)
104 points | 63 comments
schiffern 10/23/2024|
Unrealistic; in minesweeper it's impossible to hit a mine on your first click. ;)

https://gaming.stackexchange.com/questions/315335/is-it-poss...

CobrastanJorji 10/23/2024||
Your link suggests: "If a mine is under the first clicked tile, it is moved to the upper-left corner, if the upper left corner is occupied, the mine moves to the right of the corner tile." If that happened here, the square would still be a mine.
lelanthran 10/23/2024|||
What a convoluted solution.

I always assumed it did things the way I did when I wrote my minesweeper game: it only generated the mines on the first click, avoiding the clicked tile.

I wonder why they did it that way?

SAI_Peregrinus 10/23/2024|||
Probably performance. It's an old game, it seems faster if the mines can get generated before the user first clicks, and then move the mine if their first click was on a mine. If you wait for them to click to generate then the entire generation step has to run before the user notices.
Shadowed_ 10/23/2024|||
I don't know for sure, but they probably didn't plant it at first and later it was simpler to move mine elsewhere than to change the way mines are generated.
raldi 10/23/2024|||
What if the upper-left corner and the one to its right are mined?
bwen 10/23/2024||
"The function checks if it is the first click, and that the square being clicked is a mine. It then tries to move the mine to the upper-left corner. If unsuccessful it tries the square to the right of it. If all of the first row is occupied by mines, the function tries to put the mine in the leftmost square of the row below, and so on."

https://web.archive.org/web/20180618103640/http://www.techus...

throwawayk7h 10/23/2024||
What does the function do if the entire board is mines?
j5155 10/23/2024|||
See https://www.youtube.com/watch?v=0-REcpPz3vw It causes some strange bugs to occur!
jraph 10/23/2024||||
An array out of bounds access.
berkes 10/23/2024||||
Found the tester :)

Jokes aside, I love it how in a group of software engineers someone can always think of an even more unlikely, but somehow realistic edge case.

For me, one of the marks of a senior engineer would be to then either go "we'll just not allow the board to be filled with entirely mines in the builder", or "well, if that ever happens: just let it crash". A practical solution to a theoretical case. Whereas the more junior engineer would spend the next few days researching and refactoring the algorithm to address this case. Obv. "it depends", letting my insuline pump "just crash" isn't cool, but minesweeper, meh.

dutzi 10/23/2024|||
It BSODs!
KHRZ 10/23/2024|||
In Minesweeper you also win when all non-mine tiles are revealed.
praptak 10/23/2024|||
It's "an irresistible force meeting an immovable object" type of situation.
encomiast 10/23/2024||
A strange game. The only winning move is not to play.
wging 10/23/2024||
In this case, you win by flagging all the mines. That isn't how winmine worked -- you just had to uncover all non-mine spaces.
animal531 10/23/2024||
It would have been funnier if when you flag it the game turns it into a number and you lose anyway.
m463 10/23/2024|||
you're confusing minesweeper with nuclear disarmament.
exolab 10/23/2024|||
For those OOTL https://www.youtube.com/watch?v=MpmGXeAtWUw
catlikesshrimp 10/23/2024|||
Gambling? :)
utopcell 10/23/2024||
(-:
joshka 10/23/2024||
I can't get the xyzzy cheat[1] to work. How am I going to tell if there is a bomb or not?

[1]: https://minesweepergame.com/history/xyzzy.php

Dylan16807 10/23/2024|
Oh cool. Also it's really funny that the blog is cutting off the corners on the main image.
fanf2 10/23/2024||
Simon Tatham’s minesweeper is the best minesweeper https://www.chiark.greenend.org.uk/~sgtatham/puzzles/js/mine...

« The first square you open is guaranteed to be safe, and (by default) you are guaranteed to be able to solve the whole grid by deduction rather than guesswork. »

UberFly 10/23/2024||
This game painfully reminds me of my dating attempts as a teenager.
eru 10/23/2024|
Just flag and you win instantly?
sulandor 10/23/2024|||
probably also depends on the kind of flag
svag 10/23/2024||
On the right bottom corner says that it's part of Useless Web Project, https://theuselessweb.com/, which has more interesting "useless" games...
rtpg 10/23/2024||
I remember a long time ago (20 years ago?) playing some Windows minesweeper variant that someone had wrote. It did the "impossible to hit a mine on your first click" thing (That I believe Windows' Minesweeper didn't do), but also had different shapes. You could have a hex map, for example.

Anyone know what I'm thinking of?

rstarast 10/23/2024|
xbomb? https://www.gedanken.org.uk/software/xbomb/
unsnap_biceps 10/23/2024||
I can't seem to flag the mine on mobile
tomxor 10/23/2024||
That's because it detected you don't have a mouse, or a 386... You are not allowed, it would just be wrong.
sundvor 10/23/2024||
Yeah, it's useless.
carver 10/23/2024||
If you are interested in variants of minesweeper, this one is awesome:

https://magnushoff.com/articles/minesweeper/

(scroll to the bottom)

mdtrooper 10/23/2024|
This web remembers to me the great game: https://en.wikipedia.org/wiki/Progress_Quest
More comments...