▲ | abetusk 5 days ago | ||||||||||||||||
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". | |||||||||||||||||
▲ | OscarCunningham 5 days ago | parent | next [-] | ||||||||||||||||
Yeah, it's NP-complete to decide whether a cell in Minesweeper must be a mine: https://logic.pku.edu.cn/ann_attachments/np.pdf. In practice I suspect a SAT solver would make quick work of the positions that actually appear in games. | |||||||||||||||||
| |||||||||||||||||
▲ | alain_gilbert 5 days ago | parent | prev | next [-] | ||||||||||||||||
I made winsweeper, which will move the mine if there is no safe tile left for you to discover. | |||||||||||||||||
▲ | mcmoor 5 days ago | parent | prev [-] | ||||||||||||||||
Yeah I've debugged another game that attempted this and this system resulted in the game lagging as hard sometimes. |