3 ms·
I wonder if it's possible to generate a minesweeper on the fly, where you are guaranteed to never have to guess. And if so, if you can make the generation effi
by tromp 6y ago
I wonder if it's possible to generate a minesweeper on the fly, where you are guaranteed to never have to guess.
And if so, if you can make the generation efficient (polynomial time).
I should have asked that in the Pure Skill Minesweeper thread [1], but only thought of it more recently.
[1] https://news.ycombinator.com/item?id=24181772 https://news.ycombinator.com/item?id=24181772
- Narishma 6y agoI'm pretty sure the minesweeper from the Portable Puzzle Collection generates guaranteed winnable boards without having to guess.
- wasyl 6y agoYou might find this interesting, not exactly generating a minesweeper without guesses but close https://pwmarcz.pl/blog/kaboom/ https://pwmarcz.pl/blog/kaboom/
- codetrotter 6y agoImpossible, because the first move in any game of minesweeper will always be a guess :^)
- offlineguy 6y agoOriginal minesweeper ensures that the first move is never a mine.
- lemagedurage 6y agoYes, guaranteed solvable minesweeper variants exist. https://www.chiark.greenend.org.uk/%7Esgtatham/puzzles/js/mines.html https://www.chiark.greenend.org.uk/%7Esgtatham/puzzles/js/mi... "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. (Deductions may require you to think about the total number of mines.)" I don't know about the runtime though.
- tromp 6y agoIt would be really cool if the algorithm is able to generate all possible instances that can be solved purely by deduction. I do wish that it allowed me to pick a higher fraction of mines. I found the pure skill minesweeper a lot more challenging (and therefore satisfying) when I increased the fraction from 20% (30 mines on 10x15) to 33.3% (50 mines).
- lemagedurage 6y agoUnder "Type..." -> "Custom" you can choose board size and amount of mines. What a timesink!