💥💣Minesweeper Video Game💣💥
minesweeper_demo_no_audio.mp4
Simulates a game of minesweeper inside the terminal. Minesweeper.cpp can accept command line arguments specifying the width, length, and number of mines on the board. For example, after compiling minesweeper.cpp, the user can invoke "./a.exe 15 18 30" to specify that the width = 15, height = 18, and number of mines = 30. Or the user can invoke "./a.exe 15 18" to specify that the width = 15 and height = 18. The number of mines is default 20. Or for simplicity's sake, the user can invoke "./a.exe" to run a game where default settings are applied. Default settings: Width = 18, height = 14, and number of mines = 40. These command line arguments use separate class constructors.
When the player has revealed all tiles that don't contain mines, the user is notified that they one the game and the minesweeper.exe ends.
When the player choses a tile that contains a mine, the user is notified that they lost the game. The whole board is then revealed to the user.
⭐Aside: After taking my Data Structures and Algorithms course, I've realized that my implementation for this tool is highly inefficient. I should try to redo this project some other time. 😁