Terminal-based Minesweeper program, written in C++.
This program requires the use of the g++
compiler:
- On UNIX systems, run
g++ --version
to check forg++
's presence. - On MacOS, run
sudo apt get g++
to install the MacOS developer tools, includinggit
,make
andg++
. You can check for the presence of these commands by running<command> --version
. - On Windows systems, instructions can be found here, or here if you prefer video format.
To compile:
- On UNIX and MacOS systems, after
cd
ing into the directory, runmake
to build the executable. - On Windows, either run
setup.bat
, or from a PowerShellcd
'd into the directory, run./setup
.
Then, run ./mine h w p
, where
h
is height,w
is width, andp
is percentage of the board covered in mines.
Instructions on how to play provided in the executable.
Icon created using asset from toicon's open icon repository.