A classic Minesweeper game built with C++, SFML, and CMake. The objective of the game is to uncover all the squares on the grid without triggering any hidden mines. The game features a simple, user-friendly interface and is playable on most platforms.

How to Use
-
Install Git and CMake. Use your system’s package manager if available.
-
Clone GitHub repo and open the repo in your text editor of choice.
-
If you use Linux, install SFML’s dependencies using your system package manager. On Ubuntu and other Debian-based distributions you can use the following commands:
sudo apt update sudo apt install \ libxrandr-dev \ libxcursor-dev \ libxi-dev \ libudev-dev \ libfreetype-dev \ libflac-dev \ libvorbis-dev \ libgl1-mesa-dev \ libegl1-mesa-dev \ libfreetype-dev
-
Build project. Most popular IDEs support CMake projects with very little effort on your part.
Using CMake from the command line is straightforward as well. Be sure to run these commands in the root directory of the project you just created.
cmake -B build cmake --build build
-
Run Minesweeper executable.
./minesweeper
-
Enjoy!
Disclaimer
This project was originally developed without version control and was uploaded to GitHub at a later date. As a result, the commit history may not fully reflect the development process, and some earlier changes may not be captured in version control.