How does your AI solve the 50/50 cases ? Does it actually notice the 50/50 and rands it or does it bug out trying to solve it undefinitely.
Also, did you hardcode some patterns or do you do everything through deduction regardless of the most usual patterns ?
The number printed on each square is the number of "mines" in the adjacent squares. If you click a square with no adjacent mines, it will also open all adjacent squares with no adjacent mines, which is why some clicks open huge swaths of squares. You have to math out from the visible numbers where the mines lie and open all the squares around them, but be careful - in some places, it is not completely mathematically possible to deduce and you might need to rely on luck.
Some of it is luck though - click a corner with a three, or one of the main area with a 7 or 8 then you have to guess. Easy and medium, yes, mostly super easy the larger it is it throws a lot of math plus just un/lucky guesses.
click on a square (first one is totally random). It will reveal if it is clean or mined (if it's mined, you lose right away). If it is clean, it will also reveal numbers around it. these numbers represent the number of adjacent squares that are also mined. You simply deduce which squares are mined and which aren't by cross-referencing the numbers and the unrevealed squares. when you've flagged all the mines, you win the game.
ffs.
*click*
*click*
fuck
*click*
Also, did you hardcode some patterns or do you do everything through deduction regardless of the most usual patterns ?
ffs.