In this blog post we will work on the classic game of Minesweeper. Minesweeper is a single-player puzzle video game. The objective of the game is to clear a rectangular board containing hidden “mines” or bombs without detonating any of them, with help from clues about the number of neighbouring mines in each field. The game originates from the 1960s, and has been written for many computing platforms in use today.
Improve this code further to:
- Calculate and display a score in real time (number of cells that have been visited).
- Allow the user to add a cross to a cell (by right clicking?) to indicate the position of a mine.
- Allow the user to choose a difficulty level or change some settings (e.g. Number of mines, size of the grid).
- Add a timer to the game.