Skip to main content

A tetris game runs in the terminal

Project description

gameplay

Pytetris 🎮

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

License: MIT Python 3.8+

Features

  • Classic Tetris gameplay with 7 standard tetrominoes
  • Real-time score
  • Next piece preview

Platform Support

Based on Python's curses module:

  • Linux/macOS: Works out of the box
  • ⚠️ Windows: Not supported yet

Installation & Usage

  • Using uv (recommended):
uv pip install -e .
pytetris
  • Using pip (alternative):
pip install -e .
pytetris

Controls

Key Action
a Move left
d Move right
w Rotate piece
s Hard drop
q Quit game

License

MIT License - see LICENSE for details.

Acknowledgements

Game logic adapted from tinytetris (a C implementation).

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.0.1a1.tar.gz (4.8 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.0.1a1-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file tetris_terminal-0.0.1a1.tar.gz.

File metadata

  • Download URL: tetris_terminal-0.0.1a1.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for tetris_terminal-0.0.1a1.tar.gz
Algorithm Hash digest
SHA256 be3efbdca22fa59a57d4ef934c89549cec3d1f1609ef82b9398dc94301c4c973
MD5 878131a625df2ee46eb015d50ed8b1e5
BLAKE2b-256 2f9e50a56fd367b93994a9e0d0068ea413adc3825bbe112555cad77220141aa0

See more details on using hashes here.

File details

Details for the file tetris_terminal-0.0.1a1-py3-none-any.whl.

File metadata

File hashes

Hashes for tetris_terminal-0.0.1a1-py3-none-any.whl
Algorithm Hash digest
SHA256 ced99676c4a6927fad2cd1aee2c6369c404669f3b1c96c00644ca6430db150ca
MD5 23b66846d4988cf4a59ee283ec988176
BLAKE2b-256 5eecc90cd965d9d36e1f423f8a109afa17dc82cb3a5e2b53b412946da4039120

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