A set of C++ console games for Unix systems together with a small library for accessing and modifiying the terminal screen.
List of games:
- 2048:
- MasterMind:
- Tetris
In order to build cxxg
you need cmake (version >= 3.5)
.
-
Initialize submodules
git submodule update --init --recursive
-
Install
cmake
:sudo apt install cmake # Ubuntu brew install cmake # Mac OS (brew)
-
Configure and build
cxxg
, defaultBUILD_TESTS=OFF
:cd cxxg; mkdir build && cd build; cmake ../ -DBUILD_TESTS=[ON/OFF] make