Skip to content

This is a program which keeps in memory a table of 10 columns and 20 rows and that plays "Tetris" only by adding L randomly in the table. L is an element with a height of 3 blocks and width of 2 blocks. The program ends when the L surpasses in height 20 blocks, then it prints how many L blocks managed to enter.

License

Notifications You must be signed in to change notification settings

PetePrattis/Tetris-spawn-randomly-L-blocks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

A Python Program / Project

This is a simple python project from my early days as a Computer Science student

This programm was created for the first semester class Introduction to Computer Science and is one of a few such simple python programms neccessary to pass the class

Description of project

This is a program which keeps in memory a table of 10 columns and 20 rows and that plays "Tetris" only by adding L randomly in the table. L is an element with a height of 3 blocks and width of 2 blocks. The program ends when the L surpasses in height 20 blocks, then it prints how many L blocks managed to enter.

About this project

  • The comments to make the code understandable, are within the .py archive
  • This program runs for Python version 3.6+
  • This repository was created to show the variety of the work I did and experience I gained as a student

About

This is a program which keeps in memory a table of 10 columns and 20 rows and that plays "Tetris" only by adding L randomly in the table. L is an element with a height of 3 blocks and width of 2 blocks. The program ends when the L surpasses in height 20 blocks, then it prints how many L blocks managed to enter.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages