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

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.4
File Size Uploaded
tetris_terminal-0.4.4.tar.gz 54.0 kB Details

Built distribution (wheel)

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

Total release size: 91.5 kB

Release files / tetris_terminal-0.4.4.tar.gz

Download URL tetris_terminal-0.4.4.tar.gz
Size 54.0 kB
Tags Source
SHA-256 checksum
How to use checksums
dca92e83ad87abbb8b31f8c94497c7c9c647bf97232cd7c870c9b50a1c0c6a57
BLAKE2b-256 checksum
How to use checksums
b9b569b8cf75626d0cc16c0a457f5f77fabb50bb59e11a226eb51fb20fbca5bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.15

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

Download URL tetris_terminal-0.4.4-py3-none-any.whl
Size 37.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
83b7900ef8b080f2ae3d884a1169fbd688175a7c5946b8f0670adfdbd9d76c18
BLAKE2b-256 checksum
How to use checksums
6ba3ae29bc0b635df7381ae6cf642220d311e69d61c7e37e7bbed159d124340b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.15
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