This is a multiplayer minesweeper game made by C++ and SFML.
- CMake
- SFML
sudo apt install cmake libsfml-dev
sudo dnf install cmake SFML-devel
brew install cmake sfml
We use cmake
to build this project.
cmake -B build
cmake --build build
and run it.
./build/minesweeper
Every block have 3 type with 11 status:
- covered
- uncovered(0-8)
- flagged
and 2 type:
- mine
- number
You can change the game setting in config.h
.
WIDTH
: the width of the game boardHEIGHT
: the height of the game boardMINES
: the number of minesPROTECT
: protect you from the first click
You can host a game by choosing Host
in the main menu.
If you want to join a game, you need to enter the IP address of the host and press Join
.