This is a console-based Minesweeper game built using C++. It uses a grid system navigated via X and Y coordinates, allowing users to uncover cells and avoid mines. The game simulates classic Minesweeper mechanics in a terminal/console environment without a graphical interface.
- Console interface using X,Y axis input
- Randomized mine placement
- Simple logic for win/loss conditions
- Designed for C++ beginners
- Easy-to-understand code in a single
.cppfile
This project was developed as the final project for the Programming Fundamentals (PF) course in our first semester of BS Computer Science.
While the structure and flow of the project were a collaborative effort, the core logic and gameplay mechanism were built by my classmate and teammate, Munawar. Huge thanks to him for being a wonderful collaborator throughout the project!
To run this project:
-
Make sure you have a C++ compiler installed (e.g.,
g++) -
Compile the code: g++ main.cpp -o minesweeper
-
Run the game:
./minesweeper
This project is open for educational and learning purposes.
