ncurses
for the terminal interfacemake
andgcc
with c++17 support for compiling
To install dependencies on Ubuntu run sudo apt install libncurses5-dev build-essential
On Arch Linux (which I use btw) run sudo pacman -S ncurses base-devel
git clone https://github.com/czwinzscher/tetris.git
cd tetris/src
make
# start at level 0 (default)
./tetris
# start at other level, e.g. 10
./tetris 10
left
: move leftright
: move rightdown
: move down (soft drop)up
: hard dropa
: rotate lefts
: rotate rightp
: pause the game, press any key to continueq
: quit the game
- show piece statistics
- show where piece would drop
- menu for choosing the level inside the game
- replace image with gif