By default, tetris is installed into your user's ~/bin directory. To install, from the project root run:
$ mkdir build
$ cd build
$ cmake ..
$ make install
$ ~/bin/tetris
For a global install, run from the project root:
$ mkdir build
$ cd build
$ cmake -DCMAKE_INSTALL_PREFIX=/usr/local ..
$ make install
$ tetris
Want to play?
$ tetris
- Move tetriminos using the ASD or arrow keys: →↓← or dsa
- Rotate tetriminos with the spacebar: ⎵
- Drop the current tetrimino by pressing the Enter key: ↵
- Pause the game by pressing 'p' key: p
- Quit the game by pressing the 'q' key: q