How it works

For each piece, we used a list of coordinates to keep track of the shape of each piece, then used another set of coordinates to define the location of the center of the piece. This way, we can change the shapes of the piece in a matter of seconds. When we move a piece left or right and it hits the sides of the board or another piece, we will simply move it back. When a piece moves down into the ground or another piece, it becomes part of a dictionary mapping the coordinates to a color.

Challenges we ran into

We had much trouble debugging the code since Pygame was hard to debug compared to regular programs, this made it extremely difficult to find what was wrong when we had made small mathematical errors (for example using >= instead of >).

Accomplishments that we're proud of

We worked together as a team and actually pulled it off. Most of the features we intended to add were realized, and no one person did all the work.

Built With

Share this project:

Updates