https://github.com/mr-mrf-dev/mr-minesweeper
🧨 Minesweeper Game in C Programming Language.
https://github.com/mr-mrf-dev/mr-minesweeper
c cpp minesweeper terminal-game terminal-games
Last synced: 3 months ago
JSON representation
🧨 Minesweeper Game in C Programming Language.
- Host: GitHub
- URL: https://github.com/mr-mrf-dev/mr-minesweeper
- Owner: Mr-MRF-Dev
- License: mit
- Created: 2023-01-11T08:58:18.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2025-02-22T19:26:26.000Z (over 1 year ago)
- Last Synced: 2025-04-21T19:44:26.094Z (about 1 year ago)
- Topics: c, cpp, minesweeper, terminal-game, terminal-games
- Language: C
- Homepage:
- Size: 597 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🧨 Mr Minesweeper

[](https://github.com/Mr-MRF-Dev/Mr-Minesweeper/actions/workflows/cmake-multi-platform.yml)
[](/LICENSE)
Play the classic Minesweeper game in the terminal and have a great time! This is a simple terminal game developed with the C programming language.

> I recommend using [Windows Terminal](https://apps.microsoft.com/store/detail/windows-terminal/9N0DX20HK701)
> for the best experience.
## 📥 Getting Started
To get started with the game, follow these steps:
1. Clone the Repository
If You Have [Git](https://git-scm.com/) installed:
```bash
git clone https://github.com/Mr-MRF-Dev/Mr-Minesweeper.git
```
If You Have [Github CLI](https://cli.github.com/) installed:
```bash
gh repo clone Mr-MRF-Dev/Mr-Minesweeper
```
2. Navigate to the Project Directory
```bash
cd ./Mr-Minesweeper/src
```
3. Compile
Compile the game using a C compiler. For example, using GCC:
```bash
gcc .\Minesweeper.c -o Minesweeper
```
4. Run
```bash
./Minesweeper.exe
```
### Compile with CMake
after cloning the repository, you can compile the game using [CMake](https://cmake.org/download/):
1. Navigate to the Project Directory
```bash
cd ./Mr-Minesweeper
```
2. Create a build directory
```bash
mkdir build
cd build
```
3. Build the project using the following commands:
```bash
cmake ..
make
```
Or use [MinGW MakeFiles](https://cmake.org/cmake/help/latest/generator/MinGW%20Makefiles.html) by running: (Windows)
```bash
cmake .. -G "MinGW Makefiles"
mingw32-make
```
4. Run Project!
```bash
./Minesweeper.exe
```
## ✨️ Features
- Admin Panel: Gain access to the admin panel to perform administrative tasks.
- Prevent Wrong Inputs: The game prevents invalid inputs to ensure smooth game play.
- Custom Board: Customize the board size and mine count to adjust the difficulty level.
- Etc: Additional features provide an enhanced gaming experience.
## 🤝 Contributing
we welcome any contributions you may have. If you're interested in helping out, fork the repository
and create an [Issue](https://github.com/Mr-MRF-Dev/Mr-Minesweeper/issues) and
[PR](https://github.com/Mr-MRF-Dev/Mr-Minesweeper/pulls).
## 📄 License
This project is licensed under the MIT License. See the [LICENSE](/LICENSE) file for details.