Terminal tetris using ncurses. Although rudimentary and unfinished, you can still play a full game from beginning to end. Currently rewriting in Rust. The rest of this readme file describes the C++ implementation in cpp/.
Key | Command |
---|---|
[h] | Move piece left. |
[l] | Move piece right. |
[j] | Rotate piece counter-clockwise. |
[k] | Rotate piece clockwise. |
[n] | Soft drop. |
[space] | Hard drop. |
[p] | Pause. |
[r] | Restart. |
[q] | Quit. |
- Ensure ncurses developer libraries are installed.
- Clone repository.
- Run
make
in cloned directory. - A standalone tetris binary will be output in that same directory.
$ tetris [OPTS]...
Short | Long | Arg | Description |
---|---|---|---|
-p |
--preview-size |
SIZE |
Set the number of tetrinimoes to show in the piece preview. |
--disable-gravity |
Pieces will not fall unless soft dropped or hard dropped, and must be hard dropped to lock in place. |
- Piece holding.
- Soft and hard drops incorporated into scoring.
- T-spins incorporated into scoring.
- Refined game-over detection.
Visual style inspired by samtay/tetris.