TermMine is an implementation of the game of Minesweeper that you can play in your terminal.
Navigate to the releases page and download the appropriate binary for your system. There is currently support for Linux (termmine) and Windows (termmine.exe).
Make sure that you have the following installed:
- CMake
- Ninja
- ncurses (MinGW port on Windows)
Download the source code and navigate to the appropriate directory.
git clone https://github.com/ericw31415/termmine.git
cd termmineThen, generate the buildsystem and build the executable.
Linux
cmake -S . -B build -G "Ninja Multi-Config" -DCMAKE_CXX_COMPILER=/usr/bin/g++
cmake --build build --config ReleaseLinux cross-compile for Windows
cmake -S . -B build -G "Ninja Multi-Config" \
-DCMAKE_CXX_COMPILER=/usr/bin/x86_64-w64-mingw32-g++ \
-DCMAKE_SYSROOT=/usr/x86_64-w64-mingw32 -DCMAKE_SYSTEM_NAME=Windows
cmake --build build --config ReleaseWindows
cmake -S . -B build -G "Ninja Multi-Config" ^
-DCMAKE_CXX_COMPILER=C:\MinGW\bin\x86_64-w64-mingw32-g++ ^
-DCMAKE_SYSROOT=C:\MinGW -DCMAKE_SYSTEM_NAME=Windows
cmake --build build --config ReleaseThe executable file will be built to the bin/Release subdirectory.
It is not necessary to run the program from the terminal. Double-clicking the
executable should automatically open it there. Controls are as follows:
↑↓←→—Movement keys
⏎ Enter—Select menu option
1—Flag cell
2—Mark cell
Space—Open cell/chord
Ctrl+Q—Quit game