Port of https://github.com/samtay/tetris to the C programming language
- C 99%
- Makefile 1%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .gitignore | ||
| LICENSE | ||
| main.c | ||
| Makefile | ||
| README.md | ||
| tetris.h | ||
| tetris_logic.c | ||
| tetris_ui.c | ||
cetris
cetris is a fork of samtay's terminal interface for Tetris that ports the code from Haskell Stack to the C programming language.
This port was designed to be very portable and rely on as little dependencies as possible, in order to make it usable on as many systems as possible with little to no modifications needed.
Differences (other than different language)
- Blocks are rendered not as box characters but as square brackets (
[])- The command argument to change this has been removed
- Tetrimino shadows are rendered as hashtags (
##)- The command argument to change this has been removed
Building
Because of its simplicity, you only really need one command:
make
If successful, you should have a tetris executable in the same directory.
Command-line arguments
-l, --level <N>: Start at levelN(1-10)-h, --help: Display help message