CMU 15-112 Summer 2018: Fundamentals of Programming and Computer Science
Homework 8 (Due Thurs 7-Jun, at 5pm)
- This assignment is COLLABORATIVE.
- This means you may discuss anything about the assignment with other students, but all code you write must still be your own.
- You may help other students debug by looking at their code and discussing how to debug it and what the issue might be.
- Do not type on another student's computer.
- Do not send any code to other students, and do not copy any code from other students.
- Before you implement any parts of the game, erase any large chunks of code from a whiteboard/paper/shared files/etc.
- Write the Andrew IDs of anyone you collaborate with at the top of your file.
- If you have any questions about what collaboration is allowed, email me (Eddie).
- To start:
- Create a folder named 'week3'
- Create hw8.py and edit the file using Pyzo
- When you are ready, submit hw8.py to Autolab. For this hw, you may submit as many times as you like, but only your last submission counts.
- This homework is not autograded. You will receive feedback after the deadline.
- Do not use recursion, sets, or dictionaries in this assignment.
- This homework may be graded for style.
- Tetris [100 pts]
Write Tetris according to the design given in this step-by-step tutorial.
You may not use a different design, even if you think there's a better way to do it (there probably is, but you still have to do it this way). This may seem limiting, but sometimes you have to write code according to a specific algorithm, rather than writing code to solve a specific problem.
To get full credit, you'll need to complete the basic implementation according to the design spec. If you'd like to add extra features for bonus (see last page on the tutorial), then make sure to write a comment at the top of your file stating which extra features you did.