Skip to content

lunaria-bee/tetris

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 

Repository files navigation

tetris

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/.

Controls

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.

Building

  1. Ensure ncurses developer libraries are installed.
  2. Clone repository.
  3. Run make in cloned directory.
  4. A standalone tetris binary will be output in that same directory.

Usage

$ tetris [OPTS]...

Options

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.

Upcoming improvements

  • Piece holding.
  • Soft and hard drops incorporated into scoring.
  • T-spins incorporated into scoring.
  • Refined game-over detection.

Acknowledgements

Visual style inspired by samtay/tetris.

About

Terminal tetris using ncurses

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published