PDA

View Full Version : Land Mines



vasanth
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..

hk_mp5kpdw
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.

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

PJYelton
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.