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.9+

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
  • Can run on basically any terminal setup, even a linux tty.

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.2.3.tar.gz (15.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.2.3-py3-none-any.whl (16.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tetris_terminal-0.2.3.tar.gz
  • Upload date:
  • Size: 15.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.2.3.tar.gz
Algorithm Hash digest
SHA256 59000cf1d265f94c347fdeb4ac7eec344ac475ce8fd2ec3d0fc40db0fe3751a2
MD5 19106be56a04152555ea327b4b043742
BLAKE2b-256 cd4eb13f75e841beb6f239dae69e099cea60bb634e96067c504ef5e2065f81d0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tetris_terminal-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a85b16335f2b0b5eddf49e2da2c0b3017e49122b5f6ff9db90b86d0368f45030
MD5 420a2a1fe7ff96b5eb044c6b23fce691
BLAKE2b-256 fa8fb5a0b81f0ad72ee6d5c420cc29d00ab7f1a04f1e2a6558285b379488ba78

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