Skip to content
My rendition of the classic tetris.
C++ Makefile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
include
src Fixed check methods Dec 2, 2019
.gitignore Ignore .vscode files Oct 10, 2019
LICENSE Create LICENSE Dec 2, 2019
README.md
makefile Small interface tweaks Oct 26, 2019
screen Update screen Nov 4, 2019

README.md

tetris

My ascii/cli rendition of tetris. From Wikipedia:

The objective of [tetris] is to manipulate tetriminos, by moving each one sideways and/or rotating by quarter-turns, so that they form a solid horizontal line without gaps

Installation

Git:

If on linux, install libncurses-dev as dependency.

git clone 'https://github.com/k-vernooy/tetris' && cd tetris
make  # if on linux, run 'make ubuntucompile' instead for proper characters
sudo make install

Homebrew:

brew tap k-vernooy/tap
brew install tetris

Usage

Control:

Use the arrow keys to control the falling blocks:

  • to rotate the falling block
  • to move right
  • to move left
  • to soft drop
  • SPACE to hard drop
  • CTRL+C at any time to quit the game
You can’t perform that action at this time.