Example game, part 1
Below, using a mini-grid of 5 cells by 5, is a complete game of Minestein with explanations. Positions on the grid are given as column,row pairs numbering from 1,1 at the bottom left; eg 3,2 means column 3, row 2.
1. Ready to start. The mine counter shows 5 mines; the time 0:0. The 3BV score is also 0 because it cannot be calculated until the program has decided where to put the mines. This happens as soon as the user clicks on any cell in the grid.
2. The user has clicked in the cell 2,5 and the program has decided a mine pattern and worked out the 3BV score. It has revealed a few cells around 2,5. What should the user do? Two cells must be mines: the 2 at 3,5 is not touching any flagged mines and is only touching two hidden cells. These two cells, 3,5 and 3,4 must be mines.
3. The user has right clicked to place flags on the two mined cells. What now? Well, the 2 at 3,4 is now touching two mines and so cannot be touching any others. So, the user can left click on all the hidden cells touching 3,4.
4. The three revealed cells all contain 1s and this allows several more cells to be worked out. First, the 1 at 4,3 is already touching a flagged cell and hence cannot be touching any other mined cells. So its surrounding cells can be revealed by left clicks.
5. The user has revealed two of these cells leaving a hidden cell in the top right corner. Is it mined?
6. It cannot be mined because the 2 at 5,4 is already touching two mines.