3 ms·
You can’t have enclosed areas that contain mines, there’s probably a few others. The easiest thing to do is to write a solver which will iteratively mark squar
by aardvark179 8y ago
You can’t have enclosed areas that contain mines, there’s probably a few others.
The easiest thing to do is to write a solver which will iteratively mark squares it knows to contain a mine, or knows don’t contain a mine. If the solver can find all the mines the board is solvable. Only present the user with boards that your solver can solve.