Mechanical MOOC MIT OCW 6.189 Final Project: Tetris
Is anyone working on the Tetris project? It is interesting and challenging, and it would fun for some of us to consider different approaches to the algorithms, code details, and optional features to include.
In the Tetris game, shapes composed of four blocks each appear on the board, and the player can use the keyboard to control the orientation and direction of movement of the one that has been most recently added. As the game proceeds, new shapes are added to the board whenever the current shape gets to a place where it is no longer able to move. The game ends when the board is too full for a new shape to be added. But when a row becomes full, that row is removed and all rows above it move down, so theoretically the game can go on indefinitely.
Link to my original code for Tetris: http://ideone.com/DSYLDe
The code was edited on August 9, 2013, to add a scoreboard and the ability to pause and unpause the game, using the 'p' key. The working copy is located here: Although this assignment did not require a scoring system for the game, it was suggested as an optional feature. Tetris is more fun if there is a score to watch, so I've updated it here to implement that as a feature.
The updated code is here: http://ideone.com/HtX25i
The scoring rules that are used here are as follows:
> For each shape that the system successfully adds to the board, 1 point is added to the score.
> Whenever rows are completed, and subsequently removed from the board, the number of rows removed is squared and the result is added to the score.
To run either version of the code, save it locally, and download the graphics.py file to the same folder. graphics.py is available here: http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-189-a-gentle-introduction-to-programming-using-python-january-iap-2011/assignments/graphics.py
Tetris and the preceding Conway's Game of Life project include a graphical interface and animation and require lots of object oriented detail in the code. Codecademy, Unit 11 - Introduction to Classes provides an overview of that topic. A significant amount of debugging has been necessary, but in both cases, the .pdf handouts and the code templates have provided lots of help.
Before starting the project, it's probably a good idea to do the Codecademy exercises, other homework for the Mechanical MOOC, and the Hangman and Conway's Game of Life projects. The instructions for coding the Tetris project draw upon many of the concepts and techniques presented by that material. Note that MIT OCW 6.189 Homework 4 introduces graphics and animation.
For the Tetris .pdf handout, see http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-189-a-gentle-introduction-to-programming-using-python-january-iap-2011/assignments/MIT6_189IAP11_final_proj.pdf
Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga.
Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus.
Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!