Welcome to Minesweeper! This classic puzzle game challenges your strategic thinking and logic skills.
Minesweeper is a game where players uncover squares on a grid to avoid hidden mines. The objective is to clear the board without detonating any mines. Each revealed square provides a clue as to how many mines are adjacent to it, allowing players to deduce safe squares and strategically navigate the grid.
- Classic Minesweeper gameplay
To get started with Minesweeper, follow these steps:
-
Clone the repository:
git clone https://github.com/Brianhuynh97/C-Project-1.git
-
Navigate to the project directory:
cd C-Project-1 cd code .
-
Compile the code:
g++ minesweeper_game.cpp g++ minesweeper_game.cpp -o minesweeper
-
Run the game:
./minesweeper
Once you've compiled and run the game, use the following control to play:
Enter the row and column (e.g., 2 3):
The game exits when you step on the mine.
I welcome contributions to improve Minesweeper! If you'd like to contribute, please follow these steps:
Fork the repository.
Create a new branch:
git checkout -b feature-branchMake your changes and commit them:
git commit -m "Description of changes"Push to the branch:
git push origin feature-branchCreate a pull request.
I'll review and merge your changes if they align with my project's goals.
