Welcome to Minesweeper 2.0! A thrilling twist on the classic Minesweeper game, now enhanced with powerups to help you flag mines, reveal safe tiles, and strategize your way to victory.
To get the game up and running, follow these simple steps:
- Install SFML.
- Compile the program and run the game using
make
. - After compilation, run
minesweeper.out
to play.
The objective is simple: clear the grid of hidden squares without triggering any mines. Here’s how you can navigate the game:
- Left-click on a tile to reveal it.
- If the tile contains a number, it indicates how many mines are adjacent.
- If the tile is empty, it will automatically reveal surrounding empty tiles until a number is encountered.
- Clicking on a mine ends the game.
- Right-click to place a flag on a tile where you suspect a mine is hidden.
- Right-click again to remove the flag.
Powerups randomly appear on the grid, and you can collect them by clicking on their tile. They provide unique abilities to assist you:
- Flag Surrounding Mines: Automatically flags all mines surrounding a revealed tile.
- Reveal All Mines Temporarily: Briefly displays the locations of all mines. Use this time wisely to plan your next moves!
- You reveal a mine (Game Over).
- You successfully uncover all non-mined tiles (Victory!).
Pro Tip: If you're new to Minesweeper, check out this article to learn the classic rules!
Here’s a preview of the game in action:
- Interactive Powerups: Add strategy to the game with randomly appearing powerups.
- Customizable Difficulty: Choose your preferred difficulty level.
- Smooth User Experience: Clean UI powered by SFML for optimal gameplay.
Feel free to open issues and submit pull requests if you want to contribute to the project! Here's how you can contribute:
- Fork the repository.
- Create a new branch for your feature or bugfix.
- Commit your changes and push to your fork.
- Create a pull request to the main repository.
Your feedback is invaluable! If you have suggestions or ideas to improve the game, please open an issue or submit a pull request.
Happy gaming! Enjoy Minesweeper 2.0. 🕹️