Where is the shape variable defined?I need to access shape from currentPiece.shape
Again where is the variable shape defined?pass currentPiece.shape into the MatrixMultiplication method.
Here the code calls a rotate method in the currentPiece object.case KeyEvent.VK_DOWN: // down arrow case KeyEvent.VK_KP_DOWN: currentPiece.rotateClockwise();