Live data from Hacker News

Show HN: The classic Minesweeper on an irregular grid

polyreplay.com

51–60 of 143 posts

Re: Show HN: The classic Minesweeper on an irregular grid

#51
This is really cool. I have wasted far too many hours playing minesweeper and this adds a bit of challenge back to a game that's become a bit too mundane for me(I mostly play it to fall asleep now).

I will say though that it seems like the map ends up a bit empty, reducing the difficulty. Managed to get through the expert setting without encountering a single 5, for instance.

And a question: Does this generate maps where guessing is necessary, like the original? I didn't come across any, and I was curious whether that was by accident or design. I hate those situations in what is supposed to be a logic game.

Great work!

Re: Show HN: The classic Minesweeper on an irregular grid

#52
post #12
post #2

Neat... but I'm missing the left+right click, in the Windows Minesweeper, say you have a square with 4, and you've marked 4 squares around it as bombs, you can left+right click on the 4-square and uncover all the unmarked squares around it, instead of going one by one. Also "undo" is cool, but "lose 60s" seems backwards, considering one would get 60 seconds added to one's time.

Thanks a lot for trying it and the feedback. As a sibling comment said, left+right click should work (as well as middle click). Which OS/browser are you using? I like to fix this. And you're right for "lose 60s", It's not the ideal wording. I was thinking it in terms of the less time you end up with, the better your score is. But "gain 60s" wouldn't work either. I'll have a think, but curious to hear if anyone has su…

I'm using a trackpad, so I don't have middle-click or right+left-click – could you make a single-click or double-click on the number cause the clear?

Re: Show HN: The classic Minesweeper on an irregular grid

#54
post #50

Earlier quoted context omitted.

An idea (not sure if it will work well) - how about uncovering fields with a "wave" rather than one by one? So instead of linear time, make it linear-by-distance time. First reveal the original tile, then its neighbours, then their neighbours, ... It should still feel pretty fluid, but faster.

If I understand correctly what you're describing, it's more or less what's happening now. But it may not look like it if you're on the beginner grid, and may only look good/better on the larger grids (either expert size, or custom with very large size). But in short, when you uncover the first tile of this wave, at each frame I uncover only 1/60 of the total. So if you've uncovered 600 tiles, 10 should be uncovered o…

[deleted]

Re: Show HN: The classic Minesweeper on an irregular grid

#55
post #50

Earlier quoted context omitted.

An idea (not sure if it will work well) - how about uncovering fields with a "wave" rather than one by one? So instead of linear time, make it linear-by-distance time. First reveal the original tile, then its neighbours, then their neighbours, ... It should still feel pretty fluid, but faster.

If I understand correctly what you're describing, it's more or less what's happening now. But it may not look like it if you're on the beginner grid, and may only look good/better on the larger grids (either expert size, or custom with very large size). But in short, when you uncover the first tile of this wave, at each frame I uncover only 1/60 of the total. So if you've uncovered 600 tiles, 10 should be uncovered o…

Yes, I'm on a small grid, so only see a "chain" of the boxes being uncovered one by one. It does feel pretty slow, even though I'm nowhere close to speed solving : - )

Re: Show HN: The classic Minesweeper on an irregular grid

#56
post #20

Earlier quoted context omitted.

It doesn't sadly. I had tried to implement that, but couldn't find a provable way to prevent 50/50. It's especially trickier as I can't use an algo with just rows and columns, it has to work on a graph. And it would need to be fast enough as to not slow the grid generation (which already takes a few seconds on the maximum size). So I'd love to add this ultimately, but not entirely sure I'll have the resources.

Also though they are rare, there are some nasty beginnings too, like this one: https://imgur.com/a/tjHg5if I might be overlooking something tho.

You are overlooking something ;)

The 1s on the little concave bit mean you know where the nearest 2's second flag should go, even though you don't know yet where the 1 is. Then that gives you some to clear.

Re: Show HN: The classic Minesweeper on an irregular grid

#57
This is fun. I was playing classic minesweeper the other day and remarked on how I was basically playing on autopilot, I've internalized all the logic and playing is just muscle memory now.

But playing this version, my intuition is all wrong! I lost my first 2 games, and now I'm going to have to force myself to slow down and think through things more carefully, rather than trying to rely on my now-incorrect intuitions.

Re: Show HN: The classic Minesweeper on an irregular grid

#58

This is really cool. I have wasted far too many hours playing minesweeper and this adds a bit of challenge back to a game that's become a bit too mundane for me(I mostly play it to fall asleep now). I will say though that it seems like the map ends up a bit empty, reducing the difficulty. Managed to get through the expert setting without encountering a single 5, for instance. And a question: Does this generate maps w…

Thanks a lot! And yes, the ratio of mines vs clear tiles may not be optimal, and is currently completely random, so guessing may be required at times. But there's an undo button so you won't have to restart a new level if you hit a mine.

But I'd love to remove guessing ultimately. I just haven't found a reliable way to make it work yet, and would need to dedicate a fair amount of hours to it, which I've preferred allocating to the other games on my roadmap. Nevertheless, it still may happen.

Could you maybe try the custom settings? You can change the ratio of mines. I'd be curious to know what quantity of mines you find works best.

Re: Show HN: The classic Minesweeper on an irregular grid

#59
post #12

Earlier quoted context omitted.

Thanks a lot for trying it and the feedback. As a sibling comment said, left+right click should work (as well as middle click). Which OS/browser are you using? I like to fix this. And you're right for "lose 60s", It's not the ideal wording. I was thinking it in terms of the less time you end up with, the better your score is. But "gain 60s" wouldn't work either. I'll have a think, but curious to hear if anyone has su…

I'm using a trackpad, so I don't have middle-click or right+left-click – could you make a single-click or double-click on the number cause the clear?

I've just added left+Ctrl, does that work for you now?
Post reply on HN