Skip to content

Tetris written in Python using OpenCV (just for fun)

License

Notifications You must be signed in to change notification settings

formicant/opencv-tetris

Repository files navigation

opencv-tetris

Tetris written in Python using OpenCV (just for fun)

screenshot

How to play

pip install -r requirements.txt
python3 tetris.py

Controls:

  • A or Left arrow — move the piece to the left
  • D or Right arrow — move the piece to the right
  • W or Up arrow — rotate the piece
  • S or Down arrow — drop the piece
  • Esc — exit the game

Important: The window closing button does not work! Use the Esc key.

Scoring

  • 1 line — 1 point
  • 2 lines at once — 4 points
  • 3 lines at once — 9 points
  • 4 lines at once — 16 points

TO DO

  • More accurate rotation
  • Partial drop
  • CLI arguments (speed, scale)

About

Tetris written in Python using OpenCV (just for fun)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages