@@ -0,0 +1,1627 @@
+package tetris;%0A%0A/**%0A * @author dmayans%0A */%0A%0Aimport java.awt.Color;%0A%0Apublic class Constants %7B%0A%09// Tetrominoes: %7B%7Bx-coordinates%7D,%7By-coordinates%7D,%7Bcolor%7D,%7Bcenter of rotation%7D%0A%09//%09%09%09%09%7B%7Bpoint1,2,3%7D,%7Bpoint1,2,3%7D,%7Brgb%7D,%7Bx,y%7D%7D%0A%09// Coordinates relative to centerpiece at (1,0).%0A%09// Center of rotation is in halves relative to centerpiece%0A%09public static final int%5B%5D%5B%5D I = %7B%7B0,2,3%7D,%7B0,0,0%7D,%7B0,255,255%7D,%7B1,1%7D%7D;%0A%09public static final int%5B%5D%5B%5D O = %7B%7B2,2,1%7D,%7B0,1,1%7D,%7B255,255,0%7D,%7B1,1%7D%7D;%0A%09public static final int%5B%5D%5B%5D J = %7B%7B2,0,0%7D,%7B0,0,1%7D,%7B0,0,255%7D,%7B0,0%7D%7D;%0A%09public static final int%5B%5D%5B%5D L = %7B%7B0,2,2%7D,%7B0,0,1%7D,%7B255,155,0%7D,%7B0,0%7D%7D;%0A%09public static final int%5B%5D%5B%5D Z = %7B%7B2,1,0%7D,%7B0,1,1%7D,%7B255,0,0%7D,%7B0,0%7D%7D;%0A%09public static final int%5B%5D%5B%5D S = %7B%7B0,1,2%7D,%7B0,1,1%7D,%7B0,255,0%7D,%7B0,0%7D%7D;%0A%09public static final int%5B%5D%5B%5D T = %7B%7B0,1,2%7D,%7B0,1,0%7D,%7B175,0,255%7D,%7B0,0%7D%7D;%0A%09%0A%09// Turns a random int (index) into a useful object for the tetromino to constrcut%0A%09public static final int%5B%5D%5B%5D%5B%5D TETROMINOES = %7BI,O,J,L,Z,S,T%7D;%0A%09// Used by the AI to value tetromino swaps%0A%09public static final int%5B%5D SCORES = %7B6,0,2,2,4,3,8%7D;%0A%09%0A%09%0A%09// Motion arrays. ROTATE and NROTATE must be 0 to prevent the center of rotation from moving%0A%09public static final int%5B%5D LEFT = %7B-1,0%7D;%0A%09public static final int%5B%5D RIGHT = %7B1,0%7D;%0A%09public static final int%5B%5D DOWN = %7B0,-1%7D;%0A%09public static final int%5B%5D ROTATE = %7B0,0%7D;%0A%09public static final int%5B%5D NROTATE = %7B0,0%7D;%0A%09%0A%09// Turns Integers into int%5B%5Ds for communication between the AI and tetris game.%0A%09public static final int%5B%5D%5B%5D MOTION = %7BLEFT,RIGHT,DOWN,ROTATE,NROTATE%7D;%0A%09%0A%09// Colors. Gray has been darkened somewhat%0A%09public static final Color GRAY = new Color(50,50,50);%0A%7D%0A

Create Constants.java