Skip to main content

A tetris game runs in the terminal

Project description

gameplay
English | 中文

Tetris Terminal🎮

A terminal-based Tetris game written in Python using the curses library.

License: MIT Python 3.8+

Features

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

Platform Support

Based on Python's curses module:

  • Linux/macOS: Works out of the box
  • ✅️ Windows: With windows-curses

Installation & Usage

pip install tetris-terminal
tetris

Controls

Key Action
a, Move left
d, Move right
w, ,x Rotate cw
z Rotate ccw
s, Soft drop
space Hard drop
c Hold
p Pause
q Quit game

License

MIT License - see LICENSE for details.

Acknowledgements

Idea from tinytetris (a C implementation).

Going to be implemented(Maybe)

  1. sound
  2. ...

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

tetris_terminal-0.1.7.tar.gz (13.4 kB view details)

Uploaded Source

Built Distribution

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

tetris_terminal-0.1.7-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

Details for the file tetris_terminal-0.1.7.tar.gz.

File metadata

  • Download URL: tetris_terminal-0.1.7.tar.gz
  • Upload date:
  • Size: 13.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for tetris_terminal-0.1.7.tar.gz
Algorithm Hash digest
SHA256 afe2f291af0781b4ec855536f08d5669502013cec9db443ecf86ad824c549ea6
MD5 37f1c2b123625ce5b4b2b2e5b5fccc24
BLAKE2b-256 f6048f6c78aaa3f84c23e605599d1729c2b5524a7e215b103594ba61cce6665d

See more details on using hashes here.

File details

Details for the file tetris_terminal-0.1.7-py3-none-any.whl.

File metadata

File hashes

Hashes for tetris_terminal-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 b42d66e402e26f0f2a9a959c561e017c8538817045886073ec1ae9612c29f364
MD5 602b70b912abfdaa3314785ab9cfe65f
BLAKE2b-256 b9994ba30976ed62c9d7c899b0f5c05f8982165d3b180fbf89bff08c554af974

See more details on using hashes here.

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