CTris is a command line Tetris program written in C++. Made to work in the standard 80x24 terminal of most linux systems. Also works pretty well on the Windows Linux subsystem. Implemented custom rendering, collision detection and rotation algorithms.
You can install ctris directly from the snap store!
sudo snap install ctris
Install the ncurses lib
sudo apt-get install libncurses5-dev libncursesw5-dev
ncurses is a barebones API that allows you to write text-based user interfaces in a terminal-independent manner.
From the root folder run
make install DESTDIR=<destination>