Skip to content

lq910304/tetris_gmae

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tetris Game

It is a python implementatino of Tetris Game, and a simple AI to play game automatically.

Need python3 and PyQt5 to be installed.

  • tetris_game.py is the main application.
  • tetris_model.py is the data model for this game.
  • tetris_ai.py is the AI part.

Play manually

If you want play by yourself, you should uncomment this line in tetris_game.py:

# TETRIS_AI = None

Play rules

Just like classical Tetris Game. You use up key to rotate a shape, left key to move left and right key to move right. Also you can use space key to drop down current shape immediately. If you want a pause, just press P key. The right panel shows the next shape.

~ HAVE FUN ~

Screenshot

About

A Tetris Game with AI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%