An open API service indexing awesome lists of open source software.

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

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)_