

In fact, on Expert mode (16x30, 99 mines) when the only revealed number is 2, then the probability on adjacent tiles is 25%, whereas on the rest of the tiles we have 97/(16*30-9)=21%, so your program advises a bad move! I'm not for covering the whole area with numbers, but I think writing the probability of the unstable tales would be good. Repeat the above till the program wins or loses. Free a random tile if the game reached a dead end.

Do some logic to place mines and clear free tiles. Do some Image Processing to convert the game board image to a 2D array. Exclude all unwanted parts from the screenshot. Wins 36.4 of expert games (test: 6,300,000 games played). The program follows these simple steps: Take a screenshot of the game. Works with Microsoft® Windows® 95,98, ME, NT, 2000, XP, 2003 and all versions of Microsoft® MineSweeper (except Vista). Then, the rest of the board has much less probability of not being mined, that these 8 tiles adjacent to this 5. Shows the probability of a mine in the field the mouse cursor is over. Let's imagine situation where you have just made the first move, and the number 5 was revealed. My idea would be also to check probabilities of not only those tiles that are adjacent to open tiles. And then I'd add an option for auto pressing Ctrl+Space as fast as possible.Īlso, after making a move, the capture engine could just check those fields that might have changed, if that would make the process faster. I'd add an option that allows the program to choose one of the fields with least probability of being mined, if nothing is obvious, so that all board can (might) be solved just by pressing Ctrl+Space.
