package com.codecentral.twotris;

/**
 * The primary entry point to 2tris.
 *
 * @author willieechalmers@gmail.com
 * @version 0.1.0
 * @since 10/1/17
 */
public class Twotris {

    /**
     * Starts a new instance of the game.
     *
     * @param args Command line arguments, currently ignored
     */
    public static void main(String[] args) {
        // TODO: 10/1/17 Implement me
       startNewGame();
    }

    public static void startNewGame() {
    	new Twotris().startGame();
    }

    private Twotris() {
    	// TODO: Initialize variables
    }

    public void startGame() {
    	startGame(null);
    }

    public void startGame(String[] args) {
    	if (args != null) {
    		// Handle args
    	}
    }

    public static class Player {
    	private int points;
    }

    public static class Tetroid {

    	/**
    	 * A two-dimensional integer array representing color values
    	 * A value of -1 indicates there should be no display for that component.
    	 */
    	private int[][] components;

    	/**
    	 * Creates a new Tetroid with the display
    	 */
    	public Tetroid(int[][] componentDefinition) {
    		components = componentDefinition;
    	}

    	private void validateComponentDefinition(int[][] componentDefinition) {
    		if (true) {
    			// TODO: Make sure RGB values are valid and the component isn't larger than the game.
    			return;
    		}
    		throw new IllegalArgumentException("Component definition");
    	}

		public void rotate(Direction direction) {
			if (direction == Direction.CLOCKWISE) {
				// TODO: Do something with components
			} else if (direction == Direction.COUNTER_CLOCKWISE) {
				// TODO: Do something with components
			}
		}

    }

    public enum Direction {
    	CLOCKWISE, COUNTER_CLOCKWISE
    }
}

@@ -388,16 +388,17 @@
 %0A       
+ 
 startNew
@@ -456,17 +456,20 @@
 ) %7B%0A    
-%09
+    
 new Twot
@@ -522,17 +522,20 @@
 ) %7B%0A    
-%09
+    
 // TODO:
@@ -597,17 +597,20 @@
 ) %7B%0A    
-%09
+    
 startGam
@@ -672,17 +672,20 @@
 ) %7B%0A    
-%09
+    
 if (args
@@ -700,18 +700,24 @@
 ) %7B%0A    
-%09%09
+        
 // Handl
@@ -727,17 +727,20 @@
 rgs%0A    
-%09
+    
 %7D%0A    %7D%0A
@@ -773,25 +773,28 @@
 layer %7B%0A    
-%09
+    
 private int 
@@ -843,33 +843,36 @@
 roid %7B%0A%0A    
-%09
+    
 /**%0A    
 %09 * A two-di
@@ -855,25 +855,28 @@
     /**%0A    
-%09
+    
  * A two-dim
@@ -928,17 +928,20 @@
 ues%0A    
-%09
+    
  * A val
@@ -1010,25 +1010,28 @@
 nt.%0A    
-%09
+    
  */%0A    
 %09private
@@ -1018,25 +1018,28 @@
      */%0A    
-%09
+    
 private int%5B
@@ -1063,17 +1063,20 @@
     
-%09
+    
 /**%0A    
 %09 * 
@@ -1071,17 +1071,20 @@
 /**%0A    
-%09
+    
  * Creat
@@ -1125,17 +1125,20 @@
     
-%09
+    
  */%0A    
 %09pub
@@ -1133,17 +1133,20 @@
  */%0A    
-%09
+    
 public T
@@ -1187,18 +1187,24 @@
 ) %7B%0A    
-%09%09
+        
 componen
@@ -1237,17 +1237,23 @@
     
-%09
+    
 %7D%0A%0A    
-%09
+    
 priv
@@ -1324,18 +1324,24 @@
 ) %7B%0A    
-%09%09
+        
 if (true
@@ -1348,19 +1348,28 @@
 ) %7B%0A    
-%09%09%09
+            
 // TODO:
@@ -1454,33 +1454,54 @@
     
-%09%09%09return;%0A    %09%09%7D%0A    %09%09
+            return;%0A            %7D%0A            
 thro
@@ -1564,14 +1564,23 @@
     
-%09%7D%0A%0A%09%09
+    %7D%0A%0A        
 publ
@@ -1617,19 +1617,28 @@
 tion) %7B%0A
-%09%09%09
+            
 if (dire
@@ -1661,36 +1661,48 @@
 on.CLOCKWISE) %7B%0A
-%09%09%09%09
+                
 // TODO: Do some
@@ -1723,19 +1723,28 @@
 ponents%0A
-%09%09%09
+            
 %7D else i
@@ -1794,12 +1794,24 @@
 ) %7B%0A
-%09%09%09%09
+                
 // T
@@ -1848,15 +1848,30 @@
 nts%0A
-%09%09%09%7D%0A%09%09
+            %7D%0A        
 %7D%0A%0A 
@@ -1912,9 +1912,12 @@
     
-%09
+    
 CLOC

Fix silly tabs into spaces