Skip to content

Minesweeper is a puzzle game where players clear a grid of hidden squares without triggering hidden mines. Numbers on revealed squares indicate how many mines are adjacent, helping players deduce the location of mines. Use flags to mark suspected mines and powerups to gain an advantage. The goal is to reveal all non-mined squares.

License

Notifications You must be signed in to change notification settings

joebyjo/minesweeper2.0

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minesweeper 2.0

C++ SFML Visual Studio Code

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.


📦 Installation Instructions

To get the game up and running, follow these simple steps:

  1. Install SFML.
  2. Compile the program and run the game using make.
  3. After compilation, run minesweeper.out to play.

🎮 How to Play

The objective is simple: clear the grid of hidden squares without triggering any mines. Here’s how you can navigate the game:

1. Reveal Tiles:

  • 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.

2. Flag Tiles:

  • Right-click to place a flag on a tile where you suspect a mine is hidden.
  • Right-click again to remove the flag.

3. Powerups:

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!

4. Game Over Conditions:

  • 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!


📸 Images

Here’s a preview of the game in action:

Starting Screen

starting screen

Difficulty Screen

difficulty screen

In-Game Screen

game screen

Lose Screen

lose screen


🚀 Features

  • 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.

🛠️ Contributing

Feel free to open issues and submit pull requests if you want to contribute to the project! Here's how you can contribute:

  1. Fork the repository.
  2. Create a new branch for your feature or bugfix.
  3. Commit your changes and push to your fork.
  4. Create a pull request to the main repository.

💬 Feedback

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. 🕹️

About

Minesweeper is a puzzle game where players clear a grid of hidden squares without triggering hidden mines. Numbers on revealed squares indicate how many mines are adjacent, helping players deduce the location of mines. Use flags to mark suspected mines and powerups to gain an advantage. The goal is to reveal all non-mined squares.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •