:)
1 2 3 4 5 6 7 8 9
-- -- -- -- -- -- -- -- --
1 | - - - - - - - - -
2 | - - - - - - - - -
3 | - - - - - - - - -
4 | - - - - - - - - -
5 | - - - - - - - - -
6 | - - - - - - - - -
7 | - - - - - - - - -
8 | - - - - - - - - -
9 | - - - - - - - - -
Enter a command to perform, where command is one of:
'o' to open a square
'f' to mark a square with a flag (F)
'?' to mark a square with a question mark (?)
'c' to clear a square
'q' to quit the game
Enter a command ( <o,f,?,c,q> ): o
Enter row & column coordinates of square separated by a space: 2 2
:)
1 2 3 4 5 6 7 8 9
-- -- -- -- -- -- -- -- --
1 | - - - - - - - - -
2 | - 4 - - - - - - -
3 | - - - - - - - - -
4 | - - - - - - - - -
5 | - - - - - - - - -
6 | - - - - - - - - -
7 | - - - - - - - - -
8 | - - - - - - - - -
9 | - - - - - - - - -
Basic functionality:
Creation of program grid
Setting of randomly placed mines, computation of numbers in unmined squares
Drawing of user interface
Opening and displaying of grid squares specified by player
Setting of flags and question marks on grid squares specified by player