I got tricked, nice https://gist.github.com/dorianmariefr/652c1c6c5b84cc242b6692...
Show HN: The classic Minesweeper on an irregular grid
21–30 of 143 posts
Re: Show HN: The classic Minesweeper on an irregular grid
#22What a cool idea! Nice job.
Re: Show HN: The classic Minesweeper on an irregular grid
#23Neat... 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…
Re: Show HN: The classic Minesweeper on an irregular grid
#24Earlier 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…
maybe "60s penalty" would be better wording?
Re: Show HN: The classic Minesweeper on an irregular grid
#25This is really cool. Fascinating how the intuition maps neatly onto this grid As a notorious Minesweeper speedrunner I find the animation uncover animation when middle clicking to be a little slow as I find myself waiting it for it to finish for a second or so.
ah very interesting! I've done quite a few iterations of the speed at which they get uncovered, and it's definitely tricky to nail down. I've tried to find a middle ground between something that's rewarding/satisfying (so should take 1-2 seconds, long enough to be enjoyed), but also doesn't block you (so should be instant). And that animation would need to very different if it's revealing 10 tiles or less, or 500+. I…
Re: Show HN: The classic Minesweeper on an irregular grid
#26Neat. Does this ensure there's no 50/50 guesses needed then? That seems easier when you can split a square in two.
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.
I might be overlooking something tho.
Re: Show HN: The classic Minesweeper on an irregular grid
#27Q: Would it be possible to make the grids… even more random? What’s your gridding approach? I was almost a bit "disappointed" that the grids still looked like, well, grids.
Re: Show HN: The classic Minesweeper on an irregular grid
#28Neat... 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…
Re: Show HN: The classic Minesweeper on an irregular grid
#29I'd like to have the option to show "remaining" mines. I've played https://pwmarcz.pl/kaboom/ enough in "countdown mode" (i.e. where the numbers are the number of hidden mines) that I can't adjust to this....
Although the number I show is actually a bit sneaky, as I subtract the number of flags placed to the total number of mines. So if you were to place more flags than mines, you'd see a negative number. (which I realise as I type that your version is similar, as the number can also go above the total).
Re: Show HN: The classic Minesweeper on an irregular grid
#30Earlier 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.