RE: Have you ever thought of playing MineSweeper Flags with your computer?
Out of all the squares which you have the choice to click on, each has a percentage chance of getting a mine.
For example, if it is adjacent to a 1 which has no other unclicked adjacent squares and no adjacent mines, the probability is 1, because there is nowhere else for the 1 mine to go.
Similarly, a square adjacent to a 7 which is surrounded by 6 clicked mines and one other empty square.
The probability of a square adjacent to a 2 which has 2 clicked mines adjacent to it is 0
Similarly, a shot in the middle of nowhere has a probability. It can be calculated by taking the total number of mines left and dividing it by the total number of free squares. This is usually quite a low probability but when you get further on in the game and more squares have been ruled out, one of these squares may well be more likely than one of the squares adjacent to a 1 in the middle of nowhere (each of which has a chance of 0.125). You can also train it to pick the most remote possible 'middle of nowhere' square (although it looks like you already have) because if only one square separates the random square and a previously clicked square, you introduce combined probability that might be to the user's advantage.
I hope that makes sense...
This post was edited on 01-10-2004 at 04:35 PM by fluffy_lobster.
|