Skip to content
KingLizard1020Public

About

A clone of the game tetris in the C language

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

16 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terminal Tetris

Tiny curses playground for evolving a Tetris clone. Runs with ncurses on macOS/Linux and pdcurses on Windows.

Features

  • 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

Build & Run

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

Controls

- 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

About

A clone of the game tetris in the C language

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages