A Tetris game written in Python.
Project description
Tetris Game
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
Release history Release notifications | RSS feed
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.10.tar.gz
(21.5 kB
view details)
Built Distribution
File details
Details for the file tetris_py-0.0.10.tar.gz
.
File metadata
- Download URL: tetris_py-0.0.10.tar.gz
- Upload date:
- Size: 21.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42c852940b2ffc8db736d2f716b3db3420fd800c6cdcfe3c87e9e03a15e5f112 |
|
MD5 | 8c753fc6dbea697fea3dee2ad15600b8 |
|
BLAKE2b-256 | ade5f4b2038cdcd3911801f658f1a5dae83739011c115c81735c4ac340dbbf43 |
File details
Details for the file tetris_py-0.0.10-py3-none-any.whl
.
File metadata
- Download URL: tetris_py-0.0.10-py3-none-any.whl
- Upload date:
- Size: 25.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | be604a7a7cdf0739911632c1789a142ffedd8d368a84fe07074a2b27602e6855 |
|
MD5 | 51f87a7f62f8c9cdad840ab228f2e295 |
|
BLAKE2b-256 | ab43434ccbc389343ba088a72374ebc968b6035ece0a0184103af6140a335330 |