tetris
My ascii/cli rendition of tetris. From Wikipedia:
The objective of [tetris] is to manipulate tetriminos, by moving each one sideways and/or rotating by quarter-turns, so that they form a solid horizontal line without gaps
Installation
Git:
If on linux, install libncurses-dev as dependency.
git clone 'https://github.com/k-vernooy/tetris' && cd tetris
make # if on linux, run 'make ubuntucompile' instead for proper characters
sudo make install
Homebrew:
brew tap k-vernooy/tap
brew install tetris
Usage
Control:
Use the arrow keys to control the falling blocks:
- ↑ to rotate the falling block
- → to move right
- ← to move left
- ↓ to soft drop
- SPACE to hard drop
- CTRL+C at any time to quit the game