Skip to content

clemire/pygame-tetris

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pygame-tetris

A small Tetris clone written in Python using pygame.

Setup

python3 -m venv .venv
source .venv/bin/activate
python -m pip install -U pip
python -m pip install -r requirements.txt

Run Tetris

From the project root (where main.py lives), with your virtual environment activated:

python3 main.py

If python3 is not available on your system, replace it with python.

Controls

  • Left/Right: move
  • Down: soft drop
  • Up / X: rotate clockwise
  • Z: rotate counterclockwise
  • Space: hard drop
  • C / Shift: hold
  • P / Esc: pause
  • R: restart
  • Q: quit

Notes

This is an “engine-first” implementation: board/piece logic is separated from rendering, so you can tweak rules (scoring, speed curve, rotation system) without touching drawing code.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages