This is a C++ implementation of the classic Minesweeper game, designed as a project for a programming course. The game is a puzzle where players aim to clear a grid of cells without triggering any hidden mines.
- Play the classic Minesweeper game: Select cells to reveal their contents.
- Clear the board: Avoid hidden mines by using logic to deduce safe spots.
- Win or lose based on game rules.
Celda.cpp/Celda.h: Defines the cell structure of the grid.Historial.cpp/Historial.h: Handles game history and moves.JuegoBuscaminas.cpp/JuegoBuscaminas.h: Implements the logic for playing the game.Tablero.cpp/Tablero.h: Represents the game board and its operations.Jugador.h: Contains player details and score tracking.main.cpp: Entry point of the program, where the game loop runs.
- Clone the repository:
git clone https://github.com/marcosotomac/MinesweeperGame.git
- Navigate to the project directory:
cd MinesweeperGame - Compile the program:
g++ main.cpp -o MinesweeperGame
- Run the game:
./MinesweeperGame
- The game presents a grid where some cells contain hidden mines.
- Use the number clues to deduce which cells are safe to open.
- A mine is triggered if you open a cell containing it, and the game is lost.
Feel free to adjust the content based on any additional details you would like to include!