Minesweeper AI

The AI implemented into this minesweeper game makes decisions based on pure logic and probability; there is no learning invovled. The AI first analyzes the board for any tthat follow the very basic patterns explained here. Sometimes, these basic patterns don't appear in the grid. When the basic patterns rule fails, the AI resorts to probability to find the next safe spaces and mines. It enumerates all possible bomb configurations in the board, and the tile with the lowest proabilities are clicked on. By clicking on the "Make Move" button, the AI will attempt to find safe spaces to select. Pressing F12 will reveal the browser console. Here you can see the behind the scenes. This AI isn't perfect, when computation times are too long, it is better off to make a random move in hopes that it provides more information. In the end, Minesweeper is a game of luck.