// This class defines the positions of the blocks for the I tetroid and its rotation sequence for use in the super class TetrisPiece. public class TetroidI extends TetrisPiece { private static int[] initial_position = {3,0,4,0,5,0,6,0}; // Changes in position for right rotations private static int[] rot3to0 = {-1,-2,0,-1,1,0,2,1}; private static int[] rot0to1 = {2,-1,1,0,0,1,-1,2}; private static int[] rot1to2 = {1,2,0,1,-1,0,-2,-1}; private static int[] rot2to3 = {-2,1,-1,0,0,-1,1,-2}; // Changes in position for left rotations private static int[] rot0to3 = {1,2,0,1,-1,0,-2,-1}; private static int[] rot1to0 = {-2,1,-1,0,0,-1,1,-2}; private static int[] rot2to1 = {-1,-2,0,-1,1,0,2,1}; private static int[] rot3to2 = {2,-1,1,0,0,1,-1,2}; public TetroidI () { super(1, initial_position, rot3to0, rot0to1, rot1to2, rot2to3, rot0to3, rot1to0, rot2to1, rot3to2); } }