Skip to main content

A Tetris game for your terminal, built with the Textual framework.

Project description

textual-tetris

textual-tetris is a minimalist Tetris clone written with Textual, an amazing TUI framework for Python. It focuses on compact components, colorized blocks, and a responsive keyboard feel in the terminal.

Running

The easiest way is using uvx (part of uv):

uvx textual-tetris

The mandatory screenshot

Gameplay

  • Blocks follow the classic rules: move left/right, rotate, soft drop, and hard drop.
  • Every locked piece awards a small bonus; clearing 1–4 lines follows the traditional scoring table. Levels increase automatically based on the number of cleared lines, and the drop interval accelerates per level.
  • The Next widget previews the upcoming piece so you can plan ahead, and the score widget keeps score/level/lines visible at all times.

Controls

Key Action
← / A Move left
→ / D Move right
↓ / S Soft drop
↑ / W Rotate
Space Hard drop
Ctrl+Q Quit
R Restart after a game-over

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

textual_tetris-0.1.0.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

textual_tetris-0.1.0-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file textual_tetris-0.1.0.tar.gz.

File metadata

  • Download URL: textual_tetris-0.1.0.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for textual_tetris-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0f2a5ed9fae288e3648952144f2fc401d33504965d2c678185cdeaa7e8e8d157
MD5 d5317932c0a831aebe721c6d1a46d436
BLAKE2b-256 a5c55c74ec4c008873d31295dbddc444f6d8c1f65c4b4c815bfe0159b7707dc2

See more details on using hashes here.

Provenance

The following attestation bundles were made for textual_tetris-0.1.0.tar.gz:

Publisher: cd.yml on mgaitan/textual-tetris

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file textual_tetris-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: textual_tetris-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for textual_tetris-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 57a809e7392064b9c456d311de9eca94fdc852e01c4b96ff48e8cf40816f175b
MD5 b6f9d4eb13d2d809a8f8e77b4ebd6b65
BLAKE2b-256 0475a9d64d9a4c8fde3d8698067b46a2063239ec076ad31c1a4637037a3c2c66

See more details on using hashes here.

Provenance

The following attestation bundles were made for textual_tetris-0.1.0-py3-none-any.whl:

Publisher: cd.yml on mgaitan/textual-tetris

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page