←back to thread

Minesweeper thermodynamics

(oscarcunningham.com)
206 points robinhouston | 1 comments | | HN request time: 0.209s | source
Show context
gregfjohnson ◴[] No.45123258[source]
I hacked up a version of minesweeper that was “forgiving:” if there was no selection that was provably safe, it gave you a safe move. If you picked any square that was not provably a bomb, it would not be a bomb. Typically, as long as you don’t select a number of bombs equal to the number of squares , your first move is safe. I just extended that for the whole game. If you select N-1 bombs, you always win on the first move..
replies(8): >>45123401 #>>45124178 #>>45124382 #>>45124386 #>>45124449 #>>45124938 #>>45126205 #>>45126922 #
abetusk ◴[] No.45123401[source]
Ha! This is NP-Complete, no? In practice, it probably doesn't matter but my bet is that there are some configurations that will take exponential time to see if the player should be "forgiven".
replies(3): >>45123447 #>>45123487 #>>45123970 #
1. mcmoor ◴[] No.45123487[source]
Yeah I've debugged another game that attempted this and this system resulted in the game lagging as hard sometimes.