Tiny curses playground for evolving a Tetris clone. Runs with ncurses on macOS/Linux and pdcurses on Windows.
- Score tracking with persistent high score (
highscore.dat) - Next-piece preview plus hard drop for faster play
- Seven-bag randomization, lock delay, and level-based gravity
- Ghost piece, line-flash, drop-trail, and HUD pulse animations for satisfying feedback
- Automated logic tests via
make test
macOS / Linux
make
./build/terminal_tetris
make test # logic tests
Windows (MinGW + PDCurses) Windows x64 is untested currently but will be further supported soon
set CC=x86_64-w64-mingw32-gcc
mingw32-make LDFLAGS=-lpdcurses
build\terminal_tetris.exe
mingw32-make test
- Arrow keys or A/D: move piece
- Up or W: rotate
- Down or S: soft drop
- Space: hard drop
- R: restart after game over
- Q: quit