View Full Version : Land Mines

02-19-2003, 11:30 AM
I am presently re-creating minesweaper game.. (using crappy BGI in concole)..

I am struck here

In minesweaper when i click some blocks many blocks are automatically cleared.. WHat is the logic behind this clearing.. Is it just random or what..

02-19-2003, 11:39 AM
I believe they are automatically cleared for you if there are no mines nearby, i.e. the number displayed in that cell, if it were to be shown at all, would be zero.

02-19-2003, 11:40 AM
hmm.. a little more precise would help..

02-19-2003, 12:00 PM
The blocks clear when you click on a spot that is touching no mines. What happens is that it automatically clicks on all spots around this empty cell, and if THAT hits an empty cell then it repeats it for that spot. This continues until all available spots are clicked.