Problem Solving Assignment 9

TShape.java

Overview


TShape.java is a class that encapsulates what it means to be a shape in tetris the graphical representation of the shape is a 2D array of integers where 0 values represent open space and non zero values represent a block of a certain color. This is not a class that you need to modify, but is a class that you need to understand. Especially how it interacts with the tetris board as a whole. The algorithm is to superimpose the piece onto a sequence of positions on the board and to copy the values over.

Instance Variables

Methods