Skip to main content

A Tetris game written in Python.

Project description

Tetris Game

Build PyPI - Version PyPI - Python Version

A Tetris game written in Python.

This has 2 possible interfaces:

  • pygame GUI (the default/main version)
  • command-line (minimal/basic version with reduced functionality)

Install

pip

The preferred way to install Tetris is via pip:

pip install tetris-py

To play, you then simply run:

tetris-py

For the CLI version, use tetris-py-cli instead.

source

An alternative way is to simply clone the repo and use the ./run script:

git clone git@github.com:tomapopov/tetris-py.git
cd tetris-py
./run

For the CLI version, use ./run_cli instead.

Dependencies

The GUI version uses the pygame package, which is listed in requirements.txt.

License

Copyright 2024 Toma Popov.

Distributed under the terms of the Apache 2.0 license.

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_py-0.0.15.tar.gz (23.0 kB view details)

Uploaded Source

Built Distribution

tetris_py-0.0.15-py3-none-any.whl (27.9 kB view details)

Uploaded Python 3

File details

Details for the file tetris_py-0.0.15.tar.gz.

File metadata

  • Download URL: tetris_py-0.0.15.tar.gz
  • Upload date:
  • Size: 23.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for tetris_py-0.0.15.tar.gz
Algorithm Hash digest
SHA256 6090c08a9b95381153c8f8ed257a90ef0d7ade5a23ee3807edae08f04296733f
MD5 8087e2779d331154bcd0d153caa7d73d
BLAKE2b-256 92f17b7d4d836ae7dd98841b1a5b285393d9f0d5598781c500e23e8fa71992ef

See more details on using hashes here.

File details

Details for the file tetris_py-0.0.15-py3-none-any.whl.

File metadata

  • Download URL: tetris_py-0.0.15-py3-none-any.whl
  • Upload date:
  • Size: 27.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for tetris_py-0.0.15-py3-none-any.whl
Algorithm Hash digest
SHA256 8edeaba87914c4a963eee9f2c549d6f34af21fdb378131b47b40e32b52909110
MD5 2633bc1da294116d21cede048988ca83
BLAKE2b-256 41c859ae63a0ac8865165784a2d73e24824499aa990634c8a05322c537f5532e

See more details on using hashes here.

Supported by

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