Skip to content

This is a small project to showcase object-oriented programming in Python. No image assets are used for this project; everything is being rendered using a Tkinter wrapper library.

License

Notifications You must be signed in to change notification settings

erik-dali/Tetris-Game-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Tetris Game: Object Oriented Programmin in Python

This is a small project to showcase object-oriented programming in Python. No image assets are used for this project; everything is being rendered using a Tkinter wrapper library.

Using the Tkinter wrapper in graphics.py I define a class Block which is used as a building block for each of the Tetris shapes. Each tetris shape gets its own class which is inheretid from the Shape class to draw our shape. The Shape class contains the relative position of the blocks for each particular shape, along with the shape position on the board. Additionally each shape has a color assigned to it randomly at the time of instantiation. You get the idea!

TetrisTetris 2

About

This is a small project to showcase object-oriented programming in Python. No image assets are used for this project; everything is being rendered using a Tkinter wrapper library.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages