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.17.tar.gz
(24.0 kB
view details)
Built Distribution
File details
Details for the file tetris_py-0.0.17.tar.gz
.
File metadata
- Download URL: tetris_py-0.0.17.tar.gz
- Upload date:
- Size: 24.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5913ef83111475943234b9b912a78aba3420d498d01841991cd8b97c33e2697c |
|
MD5 | 216a472b125ce657a28d7e3c017582f4 |
|
BLAKE2b-256 | 8fcccf5762b9e8e196cfd88201e5e582cdb35a501e270dd871ab7b331e9ca1f5 |
File details
Details for the file tetris_py-0.0.17-py3-none-any.whl
.
File metadata
- Download URL: tetris_py-0.0.17-py3-none-any.whl
- Upload date:
- Size: 28.0 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 | d7a31ea54987558656102b347eefb9279a80078b77ed35203c829ddafb65da1e |
|
MD5 | 06bda2f7b0ba645e4e88c0023e883c29 |
|
BLAKE2b-256 | 993e284173bd9c203b551779eea30b5020ef801f98f76e81ab8aca79928509b5 |