My simple terminal tetris game build using ncurses.
To install ncurses on: inspired by How To Install Ncurses Library In Linux.
$ sudo apt-get install libncurses5-dev libncursesw5-dev
$ sudo pacman -S ncurses
$ sudo yum install ncurses-devel
Download latest version
$ wget https://ftp.gnu.org/pub/gnu/ncurses/ncurses-6.1.tar.gz
Extract the file:
$ tar xzf ncurses-6.1.tar.gz
Move to the directory
$ cd ncurses-6.1
Run the config
$ ./configure --prefix=/opt/ncurses
Compile
$ make
$ sudo make install
Verify
$ ls -la /opt/ncurses
- Create a directory called build inside the folder
- Move into the build folder
- Run "cmake -S ../"
- The run "make"
- This creates a executable called Tetris.out