minesweeper_v4

Minesweeper V4

This is used to play MineSweeper. Should look something like this:

 + Num Safe Squares Shown: 66
 + Num Flags Planted: 7

     0  1  2  3  4  5  6  7  8
    ---------------------------
 8 | 0  0  0  1  3  #  2       | 8
 7 | 0  0  0  1  #  #  2  1  1 | 7
 6 | 0  1  2  3  3  2  1  0  0 | 6
 5 | 0  1  #  #  1  0  0  0  0 | 5
 4 | 0  1  2  2  1  0  0  1  1 | 4
 3 | 1  1  1  1  1  1  0  1    | 3
 2 | 1  #  1  1  #  1  0  1    | 2
 1 | 1  1  1  1  1  2  1  1    | 1
 0 | 0  0  0  0  0  1          | 0
    ---------------------------
     0  1  2  3  4  5  6  7  8

Enter x coordinate - (0 .. 8)
0 .. 8: 7
Enter y coordinate - (0 .. 8)
0 .. 8: 8
Enter 'C' to click | 'F' to plant flag | 'U' to unplant a flag.
C or F or U: c

GitHub

View Github