Skip to main content

gameplay
English | 中文 | Spanish

Tetris Terminal

A terminal-based Tetris game.

License: MIT Python 3.10+

Features

  • Modern Tetris design following the Tetris Design Guideline
    • Extended Placement
    • Next Piece Preview
    • Super Rotation System (SRS)
    • Piece Holding
    • Shadow Piece
    • Modern Scoring System
    • Modern Level System

Platform Support

Can basically run on any terminal emulator, even on a Linux tty.

Installation & Usage

pip install tetris-terminal
tetris

Controls

Key Action
a, ← Move left
d, → Move right
w, ↑, x Rotate clockwise
z Rotate counterclockwise
s, ↓ Soft drop
space Hard drop
c Hold piece
p Pause
q Quit game

CLI Options

Option Description
--generate-config Generate a default config file and exit
--disable-config Ignore the config file and use built-in defaults
--server HOST:PORT Connect to a multiplayer (see below) server (default: localhost:8765)
--version Show version and exit

Multiplayer (Versus Mode)

See VERSUS_MODE.md

Configuration

See CONFIG.md

License

MIT License - see LICENSE for details.

Acknowledgements

Inspired by tinytetris (a C implementation).

To be implemented (Maybe)

  1. Sound support
  2. ...

Metadata

Release files for tetris-terminal 0.4.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tetris-terminal 0.4.5
File Size Uploaded
tetris_terminal-0.4.5.tar.gz 54.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tetris-terminal 0.4.5
File Interpreter ABI Platform
tetris_terminal-0.4.5-py3-none-any.whl Python 3 none any Details

Total release size: 91.9 kB

Release files / tetris_terminal-0.4.5.tar.gz

Download URL tetris_terminal-0.4.5.tar.gz
Size 54.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a9831ec45bdd5387e8d3f5c95fdbd95706a4733c7c81784ca6d3cbed255390a2
BLAKE2b-256 checksum
How to use checksums
2f555c7bb928dde47fc39a9a5df5a9db65185b8c86fdd717f243eef39ed5c499
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / tetris_terminal-0.4.5-py3-none-any.whl

Download URL tetris_terminal-0.4.5-py3-none-any.whl
Size 37.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7348ab18ea4d9885d31419e38ec7b54b40af5b46d3e6fa946aefb06f2bd9aeae
BLAKE2b-256 checksum
How to use checksums
10c27159f3f503385d36ab8d145f784431f7bce5b45b831145e247f1af289c37
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page