This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Game steps: | |
* When the game starts, the player gets prompted for the grid size (width x height) and the number of mines. | |
* The grid is generated according to these requirements. | |
* The games starts, the user is prompted for the coordinates (x, y) of the first cell to uncover. | |
* The game shows the resulting grid and prompts for new coordinates. | |
* And so on ... | |
The game ends when there is no more non-mined cell to uncover or the player uncovers a mine. | |
Rules: |