Question: I need help with writing a C++ minesweeper program according to the following requirements. An answer is needed within 2 days please. Please make comments
I need help with writing a C++ minesweeper program according to the following requirements. An answer is needed within 2 days please. Please make comments on what each part of the code is doing/what the variables and functions are for. Make sure you read ALL the directions and follow the example (note that the example uses a command-line argument)!! And please help with the extra credit portion!Thanks!











Minesweeper This game was made popular by the Windows operating system in the early 1990s, and it has continued to be a pre-installed game until Windows 8. You can watch a video of how to play minesweeper on YouTube or read about it on Wikipedia: https://www.youtube.com/watch?v=Z0EAys RI uJK The game is very simple. The object of the game is to open/reveal every cell on the board without detonating a mine. Every cell contains a number or a mine. The numbers tell you how many mines surround the cell in the horizontal, vertical, and diagonal directions, e.g. at most, 8 possible mines surrounding a cell. You can flag a cell, which helps you remember where you think there is a mine to not detonate. If you select to open/reveal a cell that has a mine, then you automatically lose the game! You will then randomly distribute the mines on the board and setup the numbers describing how many adjacent mines to each cell. After that, you will display a blank board, and ask the user to flag or open a cell on the board until the user selects a cell that contains a mine (losing the game) or selects all cells free of mines (winning the game). After the user wins or loses, you will ask the user if he/she wants to play again. If so, you must get the number of rows, columns, and mines for the new game and create a new board for a new game. BTW, you can display row and column numbers on board to make it easier to read/know which row and column to select
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
