https://github.com/zfa3/tetris
Tetris written fully in Python3
https://github.com/zfa3/tetris
gui python tetris
Last synced: 11 months ago
JSON representation
Tetris written fully in Python3
- Host: GitHub
- URL: https://github.com/zfa3/tetris
- Owner: zFa3
- License: mit
- Created: 2024-05-14T19:20:36.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-04-26T17:07:55.000Z (about 1 year ago)
- Last Synced: 2025-05-14T16:48:59.061Z (about 1 year ago)
- Topics: gui, python, tetris
- Language: Python
- Homepage:
- Size: 172 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Tetris
https://github.com/user-attachments/assets/183d6054-fa8e-4a92-89ab-aecaa41e3d16
# About
Written fully in python, and uses the library Tkinter, pre built into the python package. Players control the falling tetrominoes (shapes made of four blocks) by rotating, moving, and dropping them into place to form complete lines. The game continues until the screen fills up, and no more pieces can be placed.
# Keybinds
c - hold
x - 180 rotate
z - ccw rotation
r - Restart game
esc - Close the program
arrow keys - movement
space - hard drop
# Prerequisites
_python 3.9+_
_tkinter (preinstalled)_