Quellcode durchsuchen

Merge 40d49c93104e2aaa0cc573a59b4856be6454f267 into 2286bf332a6a66859fa1ab1a7063f5e3ecc912fc

JoeHendricks415 vor 6 Jahren
Ursprung
Commit
cd4bc4f465
Es ist kein Account mit dieser Commiter-Email verbunden

BIN
.DS_Store Datei anzeigen


+ 1
- 0
.idea/.name Datei anzeigen

@@ -0,0 +1 @@
1
+Game-Of-Life-Java

+ 3
- 1
.idea/misc.xml Datei anzeigen

@@ -7,5 +7,7 @@
7 7
       </list>
8 8
     </option>
9 9
   </component>
10
-  <component name="ProjectRootManager" version="2" languageLevel="JDK_1_9" default="false" project-jdk-name="1.8" project-jdk-type="JavaSDK" />
10
+  <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK">
11
+    <output url="file://$PROJECT_DIR$/classes" />
12
+  </component>
11 13
 </project>

+ 1
- 1
.idea/modules.xml Datei anzeigen

@@ -2,7 +2,7 @@
2 2
 <project version="4">
3 3
   <component name="ProjectModuleManager">
4 4
     <modules>
5
-      <module fileurl="file://$PROJECT_DIR$/.idea/Game-Of-Life-Java.iml" filepath="$PROJECT_DIR$/.idea/Game-Of-Life-Java.iml" />
5
+      <module fileurl="file://$PROJECT_DIR$/Game-Of-Life-Java.iml" filepath="$PROJECT_DIR$/Game-Of-Life-Java.iml" />
6 6
     </modules>
7 7
   </component>
8 8
 </project>

+ 0
- 124
.idea/uiDesigner.xml Datei anzeigen

@@ -1,124 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<project version="4">
3
-  <component name="Palette2">
4
-    <group name="Swing">
5
-      <item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
6
-        <default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
7
-      </item>
8
-      <item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
9
-        <default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
10
-      </item>
11
-      <item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.png" removable="false" auto-create-binding="false" can-attach-label="false">
12
-        <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
13
-      </item>
14
-      <item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.png" removable="false" auto-create-binding="false" can-attach-label="true">
15
-        <default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
16
-      </item>
17
-      <item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.png" removable="false" auto-create-binding="true" can-attach-label="false">
18
-        <default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
19
-        <initial-values>
20
-          <property name="text" value="Button" />
21
-        </initial-values>
22
-      </item>
23
-      <item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.png" removable="false" auto-create-binding="true" can-attach-label="false">
24
-        <default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
25
-        <initial-values>
26
-          <property name="text" value="RadioButton" />
27
-        </initial-values>
28
-      </item>
29
-      <item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.png" removable="false" auto-create-binding="true" can-attach-label="false">
30
-        <default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
31
-        <initial-values>
32
-          <property name="text" value="CheckBox" />
33
-        </initial-values>
34
-      </item>
35
-      <item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.png" removable="false" auto-create-binding="false" can-attach-label="false">
36
-        <default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
37
-        <initial-values>
38
-          <property name="text" value="Label" />
39
-        </initial-values>
40
-      </item>
41
-      <item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.png" removable="false" auto-create-binding="true" can-attach-label="true">
42
-        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
43
-          <preferred-size width="150" height="-1" />
44
-        </default-constraints>
45
-      </item>
46
-      <item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.png" removable="false" auto-create-binding="true" can-attach-label="true">
47
-        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
48
-          <preferred-size width="150" height="-1" />
49
-        </default-constraints>
50
-      </item>
51
-      <item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.png" removable="false" auto-create-binding="true" can-attach-label="true">
52
-        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
53
-          <preferred-size width="150" height="-1" />
54
-        </default-constraints>
55
-      </item>
56
-      <item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.png" removable="false" auto-create-binding="true" can-attach-label="true">
57
-        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
58
-          <preferred-size width="150" height="50" />
59
-        </default-constraints>
60
-      </item>
61
-      <item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
62
-        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
63
-          <preferred-size width="150" height="50" />
64
-        </default-constraints>
65
-      </item>
66
-      <item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
67
-        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
68
-          <preferred-size width="150" height="50" />
69
-        </default-constraints>
70
-      </item>
71
-      <item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.png" removable="false" auto-create-binding="true" can-attach-label="true">
72
-        <default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
73
-      </item>
74
-      <item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.png" removable="false" auto-create-binding="true" can-attach-label="false">
75
-        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
76
-          <preferred-size width="150" height="50" />
77
-        </default-constraints>
78
-      </item>
79
-      <item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.png" removable="false" auto-create-binding="true" can-attach-label="false">
80
-        <default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
81
-          <preferred-size width="150" height="50" />
82
-        </default-constraints>
83
-      </item>
84
-      <item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.png" removable="false" auto-create-binding="true" can-attach-label="false">
85
-        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
86
-          <preferred-size width="150" height="50" />
87
-        </default-constraints>
88
-      </item>
89
-      <item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.png" removable="false" auto-create-binding="true" can-attach-label="false">
90
-        <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
91
-          <preferred-size width="200" height="200" />
92
-        </default-constraints>
93
-      </item>
94
-      <item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.png" removable="false" auto-create-binding="false" can-attach-label="false">
95
-        <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
96
-          <preferred-size width="200" height="200" />
97
-        </default-constraints>
98
-      </item>
99
-      <item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.png" removable="false" auto-create-binding="true" can-attach-label="true">
100
-        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
101
-      </item>
102
-      <item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.png" removable="false" auto-create-binding="true" can-attach-label="false">
103
-        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
104
-      </item>
105
-      <item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.png" removable="false" auto-create-binding="false" can-attach-label="false">
106
-        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />
107
-      </item>
108
-      <item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
109
-        <default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />
110
-      </item>
111
-      <item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.png" removable="false" auto-create-binding="false" can-attach-label="false">
112
-        <default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">
113
-          <preferred-size width="-1" height="20" />
114
-        </default-constraints>
115
-      </item>
116
-      <item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.png" removable="false" auto-create-binding="false" can-attach-label="false">
117
-        <default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />
118
-      </item>
119
-      <item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
120
-        <default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />
121
-      </item>
122
-    </group>
123
-  </component>
124
-</project>

+ 1
- 1
.idea/vcs.xml Datei anzeigen

@@ -1,6 +1,6 @@
1 1
 <?xml version="1.0" encoding="UTF-8"?>
2 2
 <project version="4">
3 3
   <component name="VcsDirectoryMappings">
4
-    <mapping directory="" vcs="Git" />
4
+    <mapping directory="$PROJECT_DIR$" vcs="Git" />
5 5
   </component>
6 6
 </project>

+ 227
- 381
.idea/workspace.xml Datei anzeigen

@@ -1,7 +1,11 @@
1 1
 <?xml version="1.0" encoding="UTF-8"?>
2 2
 <project version="4">
3 3
   <component name="ChangeListManager">
4
-    <list default="true" id="e282cee1-bfe9-42a3-9794-9633eb4654d1" name="Default" comment="" />
4
+    <list default="true" id="e21ed106-13a5-4e4c-90b6-432a92552dd7" name="Default" comment="">
5
+      <change beforePath="$PROJECT_DIR$/src/main/java/com/zipcodeconway/ConwayGameOfLife.java" afterPath="$PROJECT_DIR$/src/main/java/com/zipcodeconway/ConwayGameOfLife.java" />
6
+      <change beforePath="$PROJECT_DIR$/src/main/java/com/zipcodeconway/SimpleWindow.java" afterPath="$PROJECT_DIR$/src/main/java/com/zipcodeconway/SimpleWindow.java" />
7
+      <change beforePath="$PROJECT_DIR$/src/test/java/com/zipcodeconway/ConwayGameOfLifeTest.java" afterPath="$PROJECT_DIR$/src/test/java/com/zipcodeconway/ConwayGameOfLifeTest.java" />
8
+    </list>
5 9
     <ignored path="$PROJECT_DIR$/target/" />
6 10
     <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
7 11
     <option name="TRACKING_ENABLED" value="true" />
@@ -11,100 +15,46 @@
11 15
     <option name="LAST_RESOLUTION" value="IGNORE" />
12 16
   </component>
13 17
   <component name="FileEditorManager">
14
-    <leaf>
15
-      <file leaf-file-name="SimpleWindow.java" pinned="false" current-in-tab="false">
16
-        <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodeconway/SimpleWindow.java">
17
-          <provider selected="true" editor-type-id="text-editor">
18
-            <state relative-caret-position="289">
19
-              <caret line="17" column="42" lean-forward="false" selection-start-line="17" selection-start-column="42" selection-end-line="17" selection-end-column="42" />
20
-              <folding>
21
-                <element signature="imports" expanded="true" />
22
-              </folding>
23
-            </state>
24
-          </provider>
25
-        </entry>
26
-      </file>
27
-      <file leaf-file-name="ConwayGameOfLife.java" pinned="false" current-in-tab="false">
28
-        <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodeconway/ConwayGameOfLife.java">
29
-          <provider selected="true" editor-type-id="text-editor">
30
-            <state relative-caret-position="164">
31
-              <caret line="20" column="0" lean-forward="false" selection-start-line="20" selection-start-column="0" selection-end-line="20" selection-end-column="0" />
32
-              <folding>
33
-                <element signature="e#585#586#0" expanded="true" />
34
-                <element signature="e#676#677#0" expanded="true" />
35
-                <element signature="e#712#713#0" expanded="true" />
36
-                <element signature="e#1429#1430#0" expanded="true" />
37
-                <element signature="e#1453#1454#0" expanded="true" />
38
-              </folding>
39
-            </state>
40
-          </provider>
41
-        </entry>
42
-      </file>
43
-      <file leaf-file-name="JAVA/com.zipcodeconway.ConwayGameOfLife" pinned="false" current-in-tab="false">
44
-        <entry file="uml://JAVA/com.zipcodeconway.ConwayGameOfLife">
45
-          <provider selected="true" editor-type-id="UmlEditorProvider">
46
-            <state>
47
-              <ID>JAVA</ID>
48
-              <OriginalElement>com.zipcodeconway.ConwayGameOfLife</OriginalElement>
49
-              <nodes>
50
-                <node x="-54.0" y="-179.0">com.zipcodeconway.ConwayGameOfLife</node>
51
-              </nodes>
52
-              <notes />
53
-              <edges />
54
-              <settings layout="Hierarchic Group" zoom="1.0" x="-203.0" y="-1.0" />
55
-              <SelectedNodes />
56
-              <Categories>
57
-                <Category>Constructors</Category>
58
-                <Category>Methods</Category>
59
-              </Categories>
60
-              <SCOPE>All</SCOPE>
61
-              <VISIBILITY>private</VISIBILITY>
62
-            </state>
63
-          </provider>
64
-        </entry>
65
-      </file>
66
-      <file leaf-file-name="README.md" pinned="false" current-in-tab="false">
67
-        <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodeconway/README.md">
68
-          <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
69
-            <state split_layout="SPLIT">
70
-              <first_editor relative-caret-position="236">
71
-                <caret line="52" column="194" lean-forward="false" selection-start-line="52" selection-start-column="194" selection-end-line="52" selection-end-column="194" />
72
-                <folding />
73
-              </first_editor>
74
-              <second_editor />
75
-            </state>
76
-          </provider>
77
-        </entry>
78
-      </file>
79
-      <file leaf-file-name="ConwayGameOfLifeTest.java" pinned="false" current-in-tab="true">
80
-        <entry file="file://$PROJECT_DIR$/src/test/java/com/zipcodeconway/ConwayGameOfLifeTest.java">
81
-          <provider selected="true" editor-type-id="text-editor">
82
-            <state relative-caret-position="510">
83
-              <caret line="32" column="32" lean-forward="false" selection-start-line="32" selection-start-column="32" selection-end-line="32" selection-end-column="32" />
84
-              <folding />
85
-            </state>
86
-          </provider>
87
-        </entry>
88
-      </file>
89
-    </leaf>
90
-  </component>
91
-  <component name="FileTemplateManagerImpl">
92
-    <option name="RECENT_TEMPLATES">
93
-      <list>
94
-        <option value="Arquillian JUnit Test Class" />
95
-        <option value="Class" />
96
-        <option value="JUnit4 Test Class" />
97
-      </list>
98
-    </option>
99
-  </component>
100
-  <component name="FindInProjectRecents">
101
-    <findStrings>
102
-      <find>end</find>
103
-    </findStrings>
104
-    <replaceStrings>
105
-      <replace>currentGeneration</replace>
106
-      <replace>nextGeneration</replace>
107
-    </replaceStrings>
18
+    <splitter split-orientation="horizontal" split-proportion="0.5707845">
19
+      <split-first>
20
+        <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
21
+          <file leaf-file-name="ConwayGameOfLife.java" pinned="false" current-in-tab="true">
22
+            <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodeconway/ConwayGameOfLife.java">
23
+              <provider selected="true" editor-type-id="text-editor">
24
+                <state relative-caret-position="420">
25
+                  <caret line="28" column="45" lean-forward="false" selection-start-line="28" selection-start-column="45" selection-end-line="28" selection-end-column="45" />
26
+                  <folding />
27
+                </state>
28
+              </provider>
29
+            </entry>
30
+          </file>
31
+          <file leaf-file-name="SimpleWindow.java" pinned="false" current-in-tab="false">
32
+            <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodeconway/SimpleWindow.java">
33
+              <provider selected="true" editor-type-id="text-editor">
34
+                <state relative-caret-position="323">
35
+                  <caret line="45" column="43" lean-forward="false" selection-start-line="45" selection-start-column="43" selection-end-line="45" selection-end-column="43" />
36
+                  <folding />
37
+                </state>
38
+              </provider>
39
+            </entry>
40
+          </file>
41
+        </leaf>
42
+      </split-first>
43
+      <split-second>
44
+        <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
45
+          <file leaf-file-name="ConwayGameOfLifeTest.java" pinned="false" current-in-tab="true">
46
+            <entry file="file://$PROJECT_DIR$/src/test/java/com/zipcodeconway/ConwayGameOfLifeTest.java">
47
+              <provider selected="true" editor-type-id="text-editor">
48
+                <state relative-caret-position="300">
49
+                  <caret line="24" column="33" lean-forward="true" selection-start-line="24" selection-start-column="33" selection-end-line="24" selection-end-column="33" />
50
+                  <folding />
51
+                </state>
52
+              </provider>
53
+            </entry>
54
+          </file>
55
+        </leaf>
56
+      </split-second>
57
+    </splitter>
108 58
   </component>
109 59
   <component name="Git.Settings">
110 60
     <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
@@ -117,17 +67,8 @@
117 67
   <component name="IdeDocumentHistory">
118 68
     <option name="CHANGED_PATHS">
119 69
       <list>
120
-        <option value="$PROJECT_DIR$/LifeStarts.java" />
121
-        <option value="$PROJECT_DIR$/pom.xml" />
122
-        <option value="$PROJECT_DIR$/src/main/java/GameOnLife.java" />
123
-        <option value="$PROJECT_DIR$/src/main/java/GameOfLife.java" />
124
-        <option value="$PROJECT_DIR$/src/main/java/GameofLife.java" />
125
-        <option value="$PROJECT_DIR$/src/main/java/SimpleWindow.java" />
126
-        <option value="$PROJECT_DIR$/src/main/java/ConwayGameOfLife.java" />
127
-        <option value="$PROJECT_DIR$/src/main/java/Life.java" />
128 70
         <option value="$PROJECT_DIR$/src/test/java/com/zipcodeconway/ConwayGameOfLifeTest.java" />
129 71
         <option value="$PROJECT_DIR$/src/main/java/com/zipcodeconway/SimpleWindow.java" />
130
-        <option value="$PROJECT_DIR$/src/main/java/com/zipcodeconway/README.md" />
131 72
         <option value="$PROJECT_DIR$/src/main/java/com/zipcodeconway/ConwayGameOfLife.java" />
132 73
       </list>
133 74
     </option>
@@ -138,12 +79,11 @@
138 79
     <detection-done>true</detection-done>
139 80
     <sorting>DEFINITION_ORDER</sorting>
140 81
   </component>
141
-  <component name="ProjectFrameBounds">
142
-    <option name="x" value="82" />
143
-    <option name="y" value="32" />
144
-    <option name="width" value="1440" />
145
-    <option name="height" value="821" />
82
+  <component name="ProjectFrameBounds" fullScreen="true">
83
+    <option name="width" value="1280" />
84
+    <option name="height" value="800" />
146 85
   </component>
86
+  <component name="ProjectLevelVcsManager" settingsEditedManually="true" />
147 87
   <component name="ProjectView">
148 88
     <navigator currentView="ProjectPane" proportions="" version="1">
149 89
       <flattenPackages />
@@ -159,94 +99,93 @@
159 99
       <foldersAlwaysOnTop value="true" />
160 100
     </navigator>
161 101
     <panes>
102
+      <pane id="PackagesPane" />
103
+      <pane id="Scratches" />
104
+      <pane id="AndroidView" />
105
+      <pane id="Scope" />
162 106
       <pane id="ProjectPane">
163 107
         <subPane>
164 108
           <expand>
165 109
             <path>
166 110
               <item name="Game-Of-Life-Java" type="b2602c69:ProjectViewProjectNode" />
167
-              <item name="Game-Of-Life-Java" type="462c0819:PsiDirectoryNode" />
111
+              <item name="ConwayGameOfLife" type="462c0819:PsiDirectoryNode" />
168 112
             </path>
169 113
             <path>
170 114
               <item name="Game-Of-Life-Java" type="b2602c69:ProjectViewProjectNode" />
171
-              <item name="Game-Of-Life-Java" type="462c0819:PsiDirectoryNode" />
115
+              <item name="ConwayGameOfLife" type="462c0819:PsiDirectoryNode" />
172 116
               <item name="src" type="462c0819:PsiDirectoryNode" />
173 117
             </path>
174 118
             <path>
175 119
               <item name="Game-Of-Life-Java" type="b2602c69:ProjectViewProjectNode" />
176
-              <item name="Game-Of-Life-Java" type="462c0819:PsiDirectoryNode" />
120
+              <item name="ConwayGameOfLife" type="462c0819:PsiDirectoryNode" />
177 121
               <item name="src" type="462c0819:PsiDirectoryNode" />
178 122
               <item name="main" type="462c0819:PsiDirectoryNode" />
179 123
             </path>
180 124
             <path>
181 125
               <item name="Game-Of-Life-Java" type="b2602c69:ProjectViewProjectNode" />
182
-              <item name="Game-Of-Life-Java" type="462c0819:PsiDirectoryNode" />
126
+              <item name="ConwayGameOfLife" type="462c0819:PsiDirectoryNode" />
183 127
               <item name="src" type="462c0819:PsiDirectoryNode" />
184 128
               <item name="main" type="462c0819:PsiDirectoryNode" />
185 129
               <item name="java" type="462c0819:PsiDirectoryNode" />
186 130
             </path>
187 131
             <path>
188 132
               <item name="Game-Of-Life-Java" type="b2602c69:ProjectViewProjectNode" />
189
-              <item name="Game-Of-Life-Java" type="462c0819:PsiDirectoryNode" />
133
+              <item name="ConwayGameOfLife" type="462c0819:PsiDirectoryNode" />
190 134
               <item name="src" type="462c0819:PsiDirectoryNode" />
191 135
               <item name="main" type="462c0819:PsiDirectoryNode" />
192 136
               <item name="java" type="462c0819:PsiDirectoryNode" />
137
+              <item name="com" type="462c0819:PsiDirectoryNode" />
138
+            </path>
139
+            <path>
140
+              <item name="Game-Of-Life-Java" type="b2602c69:ProjectViewProjectNode" />
141
+              <item name="ConwayGameOfLife" type="462c0819:PsiDirectoryNode" />
142
+              <item name="src" type="462c0819:PsiDirectoryNode" />
143
+              <item name="main" type="462c0819:PsiDirectoryNode" />
144
+              <item name="java" type="462c0819:PsiDirectoryNode" />
145
+              <item name="com" type="462c0819:PsiDirectoryNode" />
193 146
               <item name="zipcodeconway" type="462c0819:PsiDirectoryNode" />
194 147
             </path>
195 148
             <path>
196 149
               <item name="Game-Of-Life-Java" type="b2602c69:ProjectViewProjectNode" />
197
-              <item name="Game-Of-Life-Java" type="462c0819:PsiDirectoryNode" />
150
+              <item name="ConwayGameOfLife" type="462c0819:PsiDirectoryNode" />
151
+              <item name="src" type="462c0819:PsiDirectoryNode" />
152
+              <item name="test" type="462c0819:PsiDirectoryNode" />
153
+            </path>
154
+            <path>
155
+              <item name="Game-Of-Life-Java" type="b2602c69:ProjectViewProjectNode" />
156
+              <item name="ConwayGameOfLife" type="462c0819:PsiDirectoryNode" />
198 157
               <item name="src" type="462c0819:PsiDirectoryNode" />
199 158
               <item name="test" type="462c0819:PsiDirectoryNode" />
159
+              <item name="java" type="462c0819:PsiDirectoryNode" />
200 160
             </path>
201 161
             <path>
202 162
               <item name="Game-Of-Life-Java" type="b2602c69:ProjectViewProjectNode" />
203
-              <item name="Game-Of-Life-Java" type="462c0819:PsiDirectoryNode" />
163
+              <item name="ConwayGameOfLife" type="462c0819:PsiDirectoryNode" />
204 164
               <item name="src" type="462c0819:PsiDirectoryNode" />
205 165
               <item name="test" type="462c0819:PsiDirectoryNode" />
206 166
               <item name="java" type="462c0819:PsiDirectoryNode" />
167
+              <item name="com" type="462c0819:PsiDirectoryNode" />
207 168
             </path>
208 169
             <path>
209 170
               <item name="Game-Of-Life-Java" type="b2602c69:ProjectViewProjectNode" />
210
-              <item name="Game-Of-Life-Java" type="462c0819:PsiDirectoryNode" />
171
+              <item name="ConwayGameOfLife" type="462c0819:PsiDirectoryNode" />
211 172
               <item name="src" type="462c0819:PsiDirectoryNode" />
212 173
               <item name="test" type="462c0819:PsiDirectoryNode" />
213 174
               <item name="java" type="462c0819:PsiDirectoryNode" />
175
+              <item name="com" type="462c0819:PsiDirectoryNode" />
214 176
               <item name="zipcodeconway" type="462c0819:PsiDirectoryNode" />
215 177
             </path>
216 178
           </expand>
217 179
           <select />
218 180
         </subPane>
219 181
       </pane>
220
-      <pane id="PackagesPane" />
221
-      <pane id="AndroidView" />
222
-      <pane id="Scratches" />
223
-      <pane id="Scope" />
224 182
     </panes>
225 183
   </component>
226 184
   <component name="PropertiesComponent">
227 185
     <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
228 186
     <property name="WebServerToolWindowFactoryState" value="false" />
229 187
     <property name="aspect.path.notification.shown" value="true" />
230
-    <property name="last_opened_file_path" value="$PROJECT_DIR$" />
231
-    <property name="settings.editor.selected.configurable" value="preferences.lookFeel" />
232
-    <property name="project.structure.last.edited" value="Modules" />
233
-    <property name="project.structure.proportion" value="0.15" />
234
-    <property name="project.structure.side.proportion" value="0.2" />
235
-    <property name="com.intellij.testIntegration.createTest.CreateTestDialog.defaultLibrary" value="JUnit4" />
236
-  </component>
237
-  <component name="RecentsManager">
238
-    <key name="CreateTestDialog.RecentsKey">
239
-      <recent name="com.zipcodeconway" />
240
-    </key>
241
-    <key name="CopyFile.RECENT_KEYS">
242
-      <recent name="$PROJECT_DIR$" />
243
-    </key>
244
-    <key name="CreateTestDialog.Recents.Supers">
245
-      <recent name="" />
246
-    </key>
247
-    <key name="MoveFile.RECENT_KEYS">
248
-      <recent name="$PROJECT_DIR$/src/main/java" />
249
-    </key>
188
+    <property name="last_opened_file_path" value="$PROJECT_DIR$/pom.xml" />
250 189
   </component>
251 190
   <component name="RunDashboard">
252 191
     <option name="ruleStates">
@@ -260,7 +199,7 @@
260 199
       </list>
261 200
     </option>
262 201
   </component>
263
-  <component name="RunManager" selected="JUnit.ConwayGameOfLifeTest">
202
+  <component name="RunManager" selected="Application.ConwayGameOfLife">
264 203
     <configuration default="true" type="Applet" factoryName="Applet">
265 204
       <option name="HTML_USED" value="false" />
266 205
       <option name="WIDTH" value="400" />
@@ -287,9 +226,9 @@
287 226
       <module name="Game-Of-Life-Java" />
288 227
       <envs />
289 228
     </configuration>
290
-    <configuration name="GameofLife" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
229
+    <configuration default="true" type="Application" factoryName="Application">
291 230
       <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
292
-      <option name="MAIN_CLASS_NAME" value="GameofLife" />
231
+      <option name="MAIN_CLASS_NAME" />
293 232
       <option name="VM_PARAMETERS" />
294 233
       <option name="PROGRAM_PARAMETERS" />
295 234
       <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
@@ -298,24 +237,35 @@
298 237
       <option name="ENABLE_SWING_INSPECTOR" value="false" />
299 238
       <option name="ENV_VARIABLES" />
300 239
       <option name="PASS_PARENT_ENVS" value="true" />
301
-      <module name="Game-Of-Life-Java" />
240
+      <module name="" />
302 241
       <envs />
303 242
     </configuration>
304
-    <configuration default="true" type="Application" factoryName="Application">
305
-      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
306
-      <option name="MAIN_CLASS_NAME" />
307
-      <option name="VM_PARAMETERS" />
308
-      <option name="PROGRAM_PARAMETERS" />
309
-      <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
243
+    <configuration name="ConwayGameOfLifeTest.isAliveEdgeTest" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
244
+      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea">
245
+        <pattern>
246
+          <option name="PATTERN" value="com.zipcodeconway.*" />
247
+          <option name="ENABLED" value="true" />
248
+        </pattern>
249
+      </extension>
250
+      <module name="Game-Of-Life-Java" />
310 251
       <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
311 252
       <option name="ALTERNATIVE_JRE_PATH" />
312
-      <option name="ENABLE_SWING_INSPECTOR" value="false" />
253
+      <option name="PACKAGE_NAME" value="com.zipcodeconway" />
254
+      <option name="MAIN_CLASS_NAME" value="com.zipcodeconway.ConwayGameOfLifeTest" />
255
+      <option name="METHOD_NAME" value="isAliveEdgeTest" />
256
+      <option name="TEST_OBJECT" value="method" />
257
+      <option name="VM_PARAMETERS" value="-ea" />
258
+      <option name="PARAMETERS" />
259
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
313 260
       <option name="ENV_VARIABLES" />
314 261
       <option name="PASS_PARENT_ENVS" value="true" />
315
-      <module name="" />
262
+      <option name="TEST_SEARCH_SCOPE">
263
+        <value defaultName="singleModule" />
264
+      </option>
316 265
       <envs />
266
+      <patterns />
317 267
     </configuration>
318
-    <configuration name="ConwayGameOfLifeTest" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
268
+    <configuration name="ConwayGameOfLifeTest.isAliveTest" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
319 269
       <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea">
320 270
         <pattern>
321 271
           <option name="PATTERN" value="com.zipcodeconway.*" />
@@ -327,8 +277,8 @@
327 277
       <option name="ALTERNATIVE_JRE_PATH" />
328 278
       <option name="PACKAGE_NAME" value="com.zipcodeconway" />
329 279
       <option name="MAIN_CLASS_NAME" value="com.zipcodeconway.ConwayGameOfLifeTest" />
330
-      <option name="METHOD_NAME" />
331
-      <option name="TEST_OBJECT" value="class" />
280
+      <option name="METHOD_NAME" value="isAliveTest" />
281
+      <option name="TEST_OBJECT" value="method" />
332 282
       <option name="VM_PARAMETERS" value="-ea" />
333 283
       <option name="PARAMETERS" />
334 284
       <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
@@ -340,7 +290,7 @@
340 290
       <envs />
341 291
       <patterns />
342 292
     </configuration>
343
-    <configuration name="ConwayGameOfLifeTest.runTest" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
293
+    <configuration name="ConwayGameOfLifeTest.runTest1" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
344 294
       <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea">
345 295
         <pattern>
346 296
           <option name="PATTERN" value="com.zipcodeconway.*" />
@@ -352,7 +302,7 @@
352 302
       <option name="ALTERNATIVE_JRE_PATH" />
353 303
       <option name="PACKAGE_NAME" value="com.zipcodeconway" />
354 304
       <option name="MAIN_CLASS_NAME" value="com.zipcodeconway.ConwayGameOfLifeTest" />
355
-      <option name="METHOD_NAME" value="runTest" />
305
+      <option name="METHOD_NAME" value="runTest1" />
356 306
       <option name="TEST_OBJECT" value="method" />
357 307
       <option name="VM_PARAMETERS" value="-ea" />
358 308
       <option name="PARAMETERS" />
@@ -410,27 +360,6 @@
410 360
       <envs />
411 361
       <patterns />
412 362
     </configuration>
413
-    <configuration name="ConwayLife" type="MavenRunConfiguration" factoryName="Maven">
414
-      <MavenSettings>
415
-        <option name="myGeneralSettings" />
416
-        <option name="myRunnerSettings" />
417
-        <option name="myRunnerParameters">
418
-          <MavenRunnerParameters>
419
-            <option name="profiles">
420
-              <set />
421
-            </option>
422
-            <option name="goals">
423
-              <list />
424
-            </option>
425
-            <option name="profilesMap">
426
-              <map />
427
-            </option>
428
-            <option name="resolveToWorkspace" value="false" />
429
-            <option name="workingDirPath" value="$PROJECT_DIR$" />
430
-          </MavenRunnerParameters>
431
-        </option>
432
-      </MavenSettings>
433
-    </configuration>
434 363
     <configuration default="true" type="Remote" factoryName="Remote">
435 364
       <option name="USE_SOCKET_TRANSPORT" value="true" />
436 365
       <option name="SERVER_MODE" value="false" />
@@ -471,21 +400,20 @@
471 400
       <option name="PROGRAM_PARAMETERS" />
472 401
       <predefined_log_file id="idea.log" enabled="true" />
473 402
     </configuration>
474
-    <list size="6">
475
-      <item index="0" class="java.lang.String" itemvalue="Maven.ConwayLife" />
476
-      <item index="1" class="java.lang.String" itemvalue="Application.GameofLife" />
477
-      <item index="2" class="java.lang.String" itemvalue="Application.ConwayGameOfLife" />
478
-      <item index="3" class="java.lang.String" itemvalue="JUnit.ConwayGameOfLifeTest.runTest" />
479
-      <item index="4" class="java.lang.String" itemvalue="JUnit.ConwayGameOfLifeTest.runTest2" />
480
-      <item index="5" class="java.lang.String" itemvalue="JUnit.ConwayGameOfLifeTest" />
403
+    <list size="5">
404
+      <item index="0" class="java.lang.String" itemvalue="JUnit.ConwayGameOfLifeTest.runTest1" />
405
+      <item index="1" class="java.lang.String" itemvalue="Application.ConwayGameOfLife" />
406
+      <item index="2" class="java.lang.String" itemvalue="JUnit.ConwayGameOfLifeTest.isAliveTest" />
407
+      <item index="3" class="java.lang.String" itemvalue="JUnit.ConwayGameOfLifeTest.runTest2" />
408
+      <item index="4" class="java.lang.String" itemvalue="JUnit.ConwayGameOfLifeTest.isAliveEdgeTest" />
481 409
     </list>
482 410
     <recent_temporary>
483 411
       <list size="5">
484
-        <item index="0" class="java.lang.String" itemvalue="JUnit.ConwayGameOfLifeTest" />
485
-        <item index="1" class="java.lang.String" itemvalue="Application.ConwayGameOfLife" />
412
+        <item index="0" class="java.lang.String" itemvalue="Application.ConwayGameOfLife" />
413
+        <item index="1" class="java.lang.String" itemvalue="JUnit.ConwayGameOfLifeTest.runTest1" />
486 414
         <item index="2" class="java.lang.String" itemvalue="JUnit.ConwayGameOfLifeTest.runTest2" />
487
-        <item index="3" class="java.lang.String" itemvalue="JUnit.ConwayGameOfLifeTest.runTest" />
488
-        <item index="4" class="java.lang.String" itemvalue="Application.GameofLife" />
415
+        <item index="3" class="java.lang.String" itemvalue="JUnit.ConwayGameOfLifeTest.isAliveEdgeTest" />
416
+        <item index="4" class="java.lang.String" itemvalue="JUnit.ConwayGameOfLifeTest.isAliveTest" />
489 417
       </list>
490 418
     </recent_temporary>
491 419
   </component>
@@ -497,78 +425,85 @@
497 425
   </component>
498 426
   <component name="TaskManager">
499 427
     <task active="true" id="Default" summary="Default task">
500
-      <changelist id="e282cee1-bfe9-42a3-9794-9633eb4654d1" name="Default" comment="" />
501
-      <created>1519668901598</created>
428
+      <changelist id="e21ed106-13a5-4e4c-90b6-432a92552dd7" name="Default" comment="" />
429
+      <created>1520694948576</created>
502 430
       <option name="number" value="Default" />
503 431
       <option name="presentableId" value="Default" />
504
-      <updated>1519668901598</updated>
505
-      <workItem from="1519668902904" duration="14517000" />
432
+      <updated>1520694948576</updated>
433
+      <workItem from="1520694953964" duration="363000" />
434
+      <workItem from="1520702204135" duration="1361000" />
435
+      <workItem from="1520866240664" duration="5595000" />
436
+      <workItem from="1520874970060" duration="87000" />
437
+      <workItem from="1520875145569" duration="6673000" />
506 438
     </task>
507 439
     <servers />
508 440
   </component>
509 441
   <component name="TestHistory">
510
-    <history-entry file="ConwayGameOfLifeTest - 2018.02.26 at 15h 45m 01s.xml">
511
-      <configuration name="ConwayGameOfLifeTest" configurationId="JUnit" />
442
+    <history-entry file="ConwayGameOfLifeTest_isAliveEdgeTest - 2018.03.12 at 13h 47m 06s.xml">
443
+      <configuration name="ConwayGameOfLifeTest.isAliveEdgeTest" configurationId="JUnit" />
512 444
     </history-entry>
513
-    <history-entry file="ConwayGameOfLifeTest - 2018.02.26 at 15h 59m 00s.xml">
514
-      <configuration name="ConwayGameOfLifeTest" configurationId="JUnit" />
445
+    <history-entry file="ConwayGameOfLifeTest_isAliveTest - 2018.03.12 at 13h 33m 26s.xml">
446
+      <configuration name="ConwayGameOfLifeTest.isAliveTest" configurationId="JUnit" />
515 447
     </history-entry>
516
-    <history-entry file="ConwayGameOfLifeTest - 2018.02.26 at 16h 02m 03s.xml">
517
-      <configuration name="ConwayGameOfLifeTest" configurationId="JUnit" />
448
+    <history-entry file="ConwayGameOfLifeTest_isAliveTest - 2018.03.12 at 13h 34m 25s.xml">
449
+      <configuration name="ConwayGameOfLifeTest.isAliveTest" configurationId="JUnit" />
518 450
     </history-entry>
519
-    <history-entry file="ConwayGameOfLifeTest - 2018.02.26 at 16h 03m 01s.xml">
520
-      <configuration name="ConwayGameOfLifeTest" configurationId="JUnit" />
451
+    <history-entry file="ConwayGameOfLifeTest_isAliveTest - 2018.03.12 at 13h 35m 08s.xml">
452
+      <configuration name="ConwayGameOfLifeTest.isAliveTest" configurationId="JUnit" />
521 453
     </history-entry>
522
-    <history-entry file="ConwayGameOfLifeTest - 2018.02.26 at 16h 05m 07s.xml">
523
-      <configuration name="ConwayGameOfLifeTest" configurationId="JUnit" />
454
+    <history-entry file="ConwayGameOfLifeTest_runTest1 - 2018.03.12 at 14h 35m 42s.xml">
455
+      <configuration name="ConwayGameOfLifeTest.runTest1" configurationId="JUnit" />
524 456
     </history-entry>
525
-    <history-entry file="ConwayGameOfLifeTest - 2018.02.26 at 16h 06m 11s.xml">
526
-      <configuration name="ConwayGameOfLifeTest" configurationId="JUnit" />
457
+    <history-entry file="ConwayGameOfLifeTest_runTest1 - 2018.03.12 at 14h 35m 49s.xml">
458
+      <configuration name="ConwayGameOfLifeTest.runTest1" configurationId="JUnit" />
527 459
     </history-entry>
528
-    <history-entry file="ConwayGameOfLifeTest_runTest - 2018.02.26 at 15h 41m 14s.xml">
529
-      <configuration name="ConwayGameOfLifeTest.runTest" configurationId="JUnit" />
460
+    <history-entry file="ConwayGameOfLifeTest_runTest1 - 2018.03.12 at 14h 37m 47s.xml">
461
+      <configuration name="ConwayGameOfLifeTest.runTest1" configurationId="JUnit" />
530 462
     </history-entry>
531
-    <history-entry file="ConwayGameOfLifeTest_runTest2 - 2018.02.26 at 15h 42m 02s.xml">
463
+    <history-entry file="ConwayGameOfLifeTest_runTest1 - 2018.03.12 at 14h 43m 45s.xml">
464
+      <configuration name="ConwayGameOfLifeTest.runTest1" configurationId="JUnit" />
465
+    </history-entry>
466
+    <history-entry file="ConwayGameOfLifeTest_runTest2 - 2018.03.12 at 14h 36m 19s.xml">
532 467
       <configuration name="ConwayGameOfLifeTest.runTest2" configurationId="JUnit" />
533 468
     </history-entry>
534
-    <history-entry file="ConwayGameOfLifeTest_runTest2 - 2018.02.26 at 15h 42m 18s.xml">
469
+    <history-entry file="ConwayGameOfLifeTest_runTest2 - 2018.03.12 at 14h 43m 37s.xml">
535 470
       <configuration name="ConwayGameOfLifeTest.runTest2" configurationId="JUnit" />
536 471
     </history-entry>
537 472
   </component>
538 473
   <component name="TimeTrackingManager">
539
-    <option name="totallyTimeSpent" value="14517000" />
474
+    <option name="totallyTimeSpent" value="14079000" />
540 475
   </component>
541 476
   <component name="ToolWindowManager">
542
-    <frame x="82" y="32" width="1440" height="821" extended-state="0" />
477
+    <frame x="0" y="0" width="1280" height="800" extended-state="0" />
543 478
     <editor active="true" />
544 479
     <layout>
545
-      <window_info id="Palette" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
480
+      <window_info id="Palette" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
546 481
       <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
547
-      <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.32833788" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
548
-      <window_info id="Palette&#9;" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
549
-      <window_info id="Image Layers" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
550
-      <window_info id="Capture Analysis" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
551
-      <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
552
-      <window_info id="Maven Projects" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
553
-      <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32561308" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
554
-      <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
555
-      <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32970026" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
556
-      <window_info id="Capture Tool" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
557
-      <window_info id="Designer" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
558
-      <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
559
-      <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
482
+      <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32737276" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
483
+      <window_info id="Palette&#9;" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
484
+      <window_info id="Image Layers" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
485
+      <window_info id="Capture Analysis" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
486
+      <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
487
+      <window_info id="Maven Projects" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
488
+      <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.20220083" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
489
+      <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
490
+      <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.3287483" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
491
+      <window_info id="Capture Tool" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
492
+      <window_info id="Designer" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
493
+      <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.24313408" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
494
+      <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
560 495
       <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
561 496
       <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
562
-      <window_info id="UI Designer" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
563
-      <window_info id="Theme Preview" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
564
-      <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
565
-      <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
497
+      <window_info id="UI Designer" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
498
+      <window_info id="Theme Preview" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
499
+      <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.39889959" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
500
+      <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
566 501
       <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
567
-      <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
568 502
       <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
569 503
       <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
570
-      <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
504
+      <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
571 505
       <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
506
+      <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
572 507
     </layout>
573 508
   </component>
574 509
   <component name="TypeScriptGeneratedFilesManager">
@@ -579,203 +514,114 @@
579 514
   </component>
580 515
   <component name="XDebuggerManager">
581 516
     <breakpoint-manager>
582
-      <option name="time" value="2" />
517
+      <option name="time" value="1" />
583 518
     </breakpoint-manager>
584 519
     <watches-manager />
585 520
   </component>
586 521
   <component name="editorHistoryManager">
587
-    <entry file="file://$PROJECT_DIR$/pom.xml">
522
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodeconway/ConwayGameOfLife.java">
588 523
       <provider selected="true" editor-type-id="text-editor">
589
-        <state relative-caret-position="187">
590
-          <caret line="11" column="10" lean-forward="false" selection-start-line="11" selection-start-column="10" selection-end-line="11" selection-end-column="10" />
524
+        <state relative-caret-position="1095">
525
+          <caret line="77" column="33" lean-forward="false" selection-start-line="77" selection-start-column="33" selection-end-line="77" selection-end-column="33" />
591 526
           <folding />
592 527
         </state>
593 528
       </provider>
594 529
     </entry>
595
-    <entry file="file://$PROJECT_DIR$/src/main/java/LifeStarts.java">
530
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodeconway/SimpleWindow.java">
596 531
       <provider selected="true" editor-type-id="text-editor">
597
-        <state relative-caret-position="272">
598
-          <caret line="16" column="5" lean-forward="false" selection-start-line="7" selection-start-column="0" selection-end-line="16" selection-end-column="5" />
532
+        <state relative-caret-position="60">
533
+          <caret line="5" column="13" lean-forward="false" selection-start-line="5" selection-start-column="13" selection-end-line="5" selection-end-column="13" />
599 534
           <folding />
600 535
         </state>
601 536
       </provider>
602 537
     </entry>
603
-    <entry file="file://$PROJECT_DIR$/src/main/java/Life.java">
538
+    <entry file="file://$PROJECT_DIR$/src/test/java/com/zipcodeconway/ConwayGameOfLifeTest.java">
604 539
       <provider selected="true" editor-type-id="text-editor">
605
-        <state relative-caret-position="669">
606
-          <caret line="87" column="5" lean-forward="true" selection-start-line="47" selection-start-column="0" selection-end-line="87" selection-end-column="5" />
540
+        <state relative-caret-position="690">
541
+          <caret line="49" column="38" lean-forward="false" selection-start-line="49" selection-start-column="38" selection-end-line="49" selection-end-column="38" />
607 542
           <folding />
608 543
         </state>
609 544
       </provider>
610 545
     </entry>
611
-    <entry file="uml://JAVA/com.zipcodeconway.ConwayGameOfLife">
612
-      <provider selected="true" editor-type-id="UmlEditorProvider">
613
-        <state>
614
-          <ID>JAVA</ID>
615
-          <OriginalElement>com.zipcodeconway.ConwayGameOfLife</OriginalElement>
616
-          <nodes>
617
-            <node x="-54.0" y="-179.0">com.zipcodeconway.ConwayGameOfLife</node>
618
-          </nodes>
619
-          <notes />
620
-          <edges />
621
-          <settings layout="Hierarchic Group" zoom="1.0" x="-203.0" y="-1.0" />
622
-          <SelectedNodes />
623
-          <Categories>
624
-            <Category>Constructors</Category>
625
-            <Category>Methods</Category>
626
-          </Categories>
627
-          <SCOPE>All</SCOPE>
628
-          <VISIBILITY>private</VISIBILITY>
546
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodeconway/ConwayGameOfLife.java">
547
+      <provider selected="true" editor-type-id="text-editor">
548
+        <state relative-caret-position="0">
549
+          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="85" selection-end-column="1" />
550
+          <folding />
629 551
         </state>
630 552
       </provider>
631 553
     </entry>
632
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodeconway/README.md">
633
-      <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
634
-        <state split_layout="SPLIT">
635
-          <first_editor relative-caret-position="236">
636
-            <caret line="52" column="194" lean-forward="false" selection-start-line="52" selection-start-column="194" selection-end-line="52" selection-end-column="194" />
637
-            <folding />
638
-          </first_editor>
639
-          <second_editor />
554
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodeconway/SimpleWindow.java">
555
+      <provider selected="true" editor-type-id="text-editor">
556
+        <state relative-caret-position="60">
557
+          <caret line="5" column="13" lean-forward="false" selection-start-line="5" selection-start-column="13" selection-end-line="5" selection-end-column="13" />
558
+          <folding />
640 559
         </state>
641 560
       </provider>
642 561
     </entry>
643
-    <entry file="file://$USER_HOME$/Downloads/ConwayLifeRandomat50.png">
644
-      <provider selected="true" editor-type-id="images">
645
-        <state />
562
+    <entry file="file://$PROJECT_DIR$/src/test/java/com/zipcodeconway/ConwayGameOfLifeTest.java">
563
+      <provider selected="true" editor-type-id="text-editor">
564
+        <state relative-caret-position="945">
565
+          <caret line="66" column="46" lean-forward="false" selection-start-line="66" selection-start-column="46" selection-end-line="66" selection-end-column="46" />
566
+          <folding />
567
+        </state>
646 568
       </provider>
647 569
     </entry>
648
-    <entry file="file://$USER_HOME$/Documents/gitea/gitea/custom/public/img/ConwayLifeUML.png">
649
-      <provider selected="true" editor-type-id="images">
650
-        <state />
570
+    <entry file="file://$PROJECT_DIR$/src/test/java/com/zipcodeconway/ConwayGameOfLifeTest.java">
571
+      <provider selected="true" editor-type-id="text-editor">
572
+        <state relative-caret-position="60">
573
+          <caret line="6" column="13" lean-forward="false" selection-start-line="6" selection-start-column="13" selection-end-line="6" selection-end-column="13" />
574
+          <folding />
575
+        </state>
651 576
       </provider>
652 577
     </entry>
653
-    <entry file="file://$PROJECT_DIR$/src/main/java/GameofLife.java">
578
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodeconway/ConwayGameOfLife.java">
654 579
       <provider selected="true" editor-type-id="text-editor">
655
-        <state relative-caret-position="334">
656
-          <caret line="83" column="17" lean-forward="false" selection-start-line="82" selection-start-column="30" selection-end-line="83" selection-end-column="17" />
580
+        <state relative-caret-position="450">
581
+          <caret line="30" column="34" lean-forward="true" selection-start-line="30" selection-start-column="34" selection-end-line="30" selection-end-column="34" />
657 582
           <folding />
658 583
         </state>
659 584
       </provider>
660 585
     </entry>
661 586
     <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodeconway/SimpleWindow.java">
662 587
       <provider selected="true" editor-type-id="text-editor">
663
-        <state relative-caret-position="289">
664
-          <caret line="17" column="42" lean-forward="false" selection-start-line="17" selection-start-column="42" selection-end-line="17" selection-end-column="42" />
665
-          <folding>
666
-            <element signature="imports" expanded="true" />
667
-          </folding>
588
+        <state relative-caret-position="60">
589
+          <caret line="5" column="13" lean-forward="false" selection-start-line="5" selection-start-column="13" selection-end-line="5" selection-end-column="13" />
590
+          <folding />
668 591
         </state>
669 592
       </provider>
670 593
     </entry>
671
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodeconway/ConwayGameOfLife.java">
594
+    <entry file="file://$PROJECT_DIR$/src/test/java/com/zipcodeconway/ConwayGameOfLifeTest.java">
672 595
       <provider selected="true" editor-type-id="text-editor">
673
-        <state relative-caret-position="164">
674
-          <caret line="20" column="0" lean-forward="false" selection-start-line="20" selection-start-column="0" selection-end-line="20" selection-end-column="0" />
675
-          <folding>
676
-            <element signature="e#585#586#0" expanded="true" />
677
-            <element signature="e#676#677#0" expanded="true" />
678
-            <element signature="e#712#713#0" expanded="true" />
679
-            <element signature="e#1429#1430#0" expanded="true" />
680
-            <element signature="e#1453#1454#0" expanded="true" />
681
-          </folding>
596
+        <state relative-caret-position="60">
597
+          <caret line="6" column="13" lean-forward="false" selection-start-line="6" selection-start-column="13" selection-end-line="6" selection-end-column="13" />
598
+          <folding />
682 599
         </state>
683 600
       </provider>
684 601
     </entry>
685 602
     <entry file="file://$PROJECT_DIR$/src/test/java/com/zipcodeconway/ConwayGameOfLifeTest.java">
686 603
       <provider selected="true" editor-type-id="text-editor">
687
-        <state relative-caret-position="510">
688
-          <caret line="32" column="32" lean-forward="false" selection-start-line="32" selection-start-column="32" selection-end-line="32" selection-end-column="32" />
604
+        <state relative-caret-position="300">
605
+          <caret line="24" column="33" lean-forward="true" selection-start-line="24" selection-start-column="33" selection-end-line="24" selection-end-column="33" />
606
+          <folding />
607
+        </state>
608
+      </provider>
609
+    </entry>
610
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodeconway/SimpleWindow.java">
611
+      <provider selected="true" editor-type-id="text-editor">
612
+        <state relative-caret-position="323">
613
+          <caret line="45" column="43" lean-forward="false" selection-start-line="45" selection-start-column="43" selection-end-line="45" selection-end-column="43" />
614
+          <folding />
615
+        </state>
616
+      </provider>
617
+    </entry>
618
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodeconway/ConwayGameOfLife.java">
619
+      <provider selected="true" editor-type-id="text-editor">
620
+        <state relative-caret-position="420">
621
+          <caret line="28" column="45" lean-forward="false" selection-start-line="28" selection-start-column="45" selection-end-line="28" selection-end-column="45" />
689 622
           <folding />
690 623
         </state>
691 624
       </provider>
692 625
     </entry>
693
-  </component>
694
-  <component name="masterDetails">
695
-    <states>
696
-      <state key="ArtifactsStructureConfigurable.UI">
697
-        <settings>
698
-          <artifact-editor />
699
-          <splitter-proportions>
700
-            <option name="proportions">
701
-              <list>
702
-                <option value="0.2" />
703
-              </list>
704
-            </option>
705
-          </splitter-proportions>
706
-        </settings>
707
-      </state>
708
-      <state key="FacetStructureConfigurable.UI">
709
-        <settings>
710
-          <last-edited>No facets are configured</last-edited>
711
-          <splitter-proportions>
712
-            <option name="proportions">
713
-              <list>
714
-                <option value="0.2" />
715
-              </list>
716
-            </option>
717
-          </splitter-proportions>
718
-        </settings>
719
-      </state>
720
-      <state key="GlobalLibrariesConfigurable.UI">
721
-        <settings>
722
-          <splitter-proportions>
723
-            <option name="proportions">
724
-              <list>
725
-                <option value="0.2" />
726
-              </list>
727
-            </option>
728
-          </splitter-proportions>
729
-        </settings>
730
-      </state>
731
-      <state key="JdkListConfigurable.UI">
732
-        <settings>
733
-          <last-edited>1.8</last-edited>
734
-          <splitter-proportions>
735
-            <option name="proportions">
736
-              <list>
737
-                <option value="0.2" />
738
-              </list>
739
-            </option>
740
-          </splitter-proportions>
741
-        </settings>
742
-      </state>
743
-      <state key="ModuleStructureConfigurable.UI">
744
-        <settings>
745
-          <last-edited>Game-Of-Life-Java</last-edited>
746
-          <splitter-proportions>
747
-            <option name="proportions">
748
-              <list>
749
-                <option value="0.2" />
750
-                <option value="0.6" />
751
-              </list>
752
-            </option>
753
-          </splitter-proportions>
754
-        </settings>
755
-      </state>
756
-      <state key="ProjectJDKs.UI">
757
-        <settings>
758
-          <last-edited>1.8</last-edited>
759
-          <splitter-proportions>
760
-            <option name="proportions">
761
-              <list>
762
-                <option value="0.2" />
763
-              </list>
764
-            </option>
765
-          </splitter-proportions>
766
-        </settings>
767
-      </state>
768
-      <state key="ProjectLibrariesConfigurable.UI">
769
-        <settings>
770
-          <splitter-proportions>
771
-            <option name="proportions">
772
-              <list>
773
-                <option value="0.2" />
774
-              </list>
775
-            </option>
776
-          </splitter-proportions>
777
-        </settings>
778
-      </state>
779
-    </states>
780 626
   </component>
781 627
 </project>

.idea/Game-Of-Life-Java.iml → Game-Of-Life-Java.iml Datei anzeigen

@@ -5,7 +5,6 @@
5 5
     <output-test url="file://$MODULE_DIR$/target/test-classes" />
6 6
     <content url="file://$MODULE_DIR$">
7 7
       <sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
8
-      <sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
9 8
       <sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
10 9
       <excludeFolder url="file://$MODULE_DIR$/target" />
11 10
     </content>

BIN
Screen Shot 2018-03-12 at 3.19.57 PM.png Datei anzeigen


+ 84
- 5
src/main/java/com/zipcodeconway/ConwayGameOfLife.java Datei anzeigen

@@ -1,11 +1,27 @@
1 1
 package com.zipcodeconway;
2 2
 
3
+import java.util.Random;
4
+
3 5
 public class ConwayGameOfLife {
6
+    private SimpleWindow displayWindow;
7
+    private Integer edge;
8
+    int[][] currentGen;
9
+    int[][] nextGen;
10
+
4 11
 
5 12
     public ConwayGameOfLife(Integer dimension) {
13
+        this.displayWindow = new SimpleWindow(dimension);
14
+        this.edge = dimension -1;
15
+        this.nextGen = new int [dimension][dimension];
16
+        currentGen = createRandomStart(dimension);
6 17
      }
7 18
 
8 19
     public ConwayGameOfLife(Integer dimension, int[][] startmatrix) {
20
+        this.displayWindow = new SimpleWindow(dimension);
21
+        this.edge = dimension - 1;
22
+        this.currentGen = startmatrix;
23
+        this.nextGen = new int [dimension][dimension];
24
+
9 25
     }
10 26
 
11 27
     public static void main(String[] args) {
@@ -17,16 +33,47 @@ public class ConwayGameOfLife {
17 33
     // Which cells are alive or dead in generation 0.
18 34
     // allocates and returns the starting matrix of size 'dimension'
19 35
     private int[][] createRandomStart(Integer dimension) {
20
-        return new int[1][1];
36
+
37
+        currentGen = new int [dimension][dimension];
38
+
39
+        for(int i = 0; i < dimension; i++){
40
+            for (int j = 0; j < dimension; j++){
41
+                if (Math.random() * 100 > 50){
42
+                    currentGen[i][j] = 1;
43
+                } else {
44
+                    currentGen[i][j] = 0;
45
+                }
46
+            }
47
+        }
48
+
49
+        return currentGen;
21 50
     }
22 51
 
23 52
     public int[][] simulate(Integer maxGenerations) {
24
-        return new int[1][1];
25
-    }
26 53
 
54
+        for(int i = 0; i <= maxGenerations; i++){
55
+            this.displayWindow.display(currentGen, i);
56
+            this.displayWindow.sleep(125);
57
+            copyAndZeroOut(nextGen, currentGen);
58
+        }
59
+
60
+        return currentGen;
61
+    }
27 62
     // copy the values of 'next' matrix to 'current' matrix,
28 63
     // and then zero out the contents of 'next' matrix
29 64
     public void copyAndZeroOut(int [][] next, int[][] current) {
65
+        for(int i = 0; i < current.length; i++){
66
+            for(int j = 0; j < current.length; j++){
67
+                next[i][j] = isAlive(i, j, current);
68
+            }
69
+        }
70
+
71
+        for(int i = 0; i < current.length; i++){
72
+            for(int j = 0; j < current.length; j++){
73
+                current[i][j] = next[i][j];
74
+                next[i][j] = 0;
75
+            }
76
+        }
30 77
     }
31 78
 
32 79
     // Calculate if an individual cell should be alive in the next generation.
@@ -37,7 +84,39 @@ public class ConwayGameOfLife {
37 84
 		Any live cell with two or three live neighbours lives, unchanged, to the next generation.
38 85
 		Any dead cell with exactly three live neighbours cells will come to life.
39 86
 	*/
40
-    private int isAlive(int row, int col, int[][] world) {
41
-        return 0;
87
+    protected int isAlive(int row, int col, int[][] world) {
88
+    //is alive in next generation//
89
+
90
+        int nextGenLives;
91
+        int counter = 0;
92
+
93
+        for(int i = row - 1; i <= row + 1; i++) {
94
+            int iSeeker = i;
95
+            if(i < 0){
96
+                iSeeker = edge;
97
+            } else if(i > edge){
98
+                iSeeker = 0;
99
+            }
100
+
101
+            for(int j = col - 1; j <= col + 1; j++){
102
+                int jSeeker = j;
103
+                if(j < 0){
104
+                    jSeeker = edge;
105
+                } else if(j > edge){
106
+                    jSeeker = 0;
107
+                }
108
+                if(world[iSeeker][jSeeker] == 1) counter++;
109
+            }
110
+        }
111
+
112
+        if (counter == 3){
113
+            nextGenLives = 1;
114
+        } else if (counter == 4){
115
+            nextGenLives = world[row][col];
116
+        } else {
117
+            nextGenLives = 0;
118
+        }
119
+
120
+        return nextGenLives;
42 121
     }
43 122
 }

+ 5
- 5
src/main/java/com/zipcodeconway/SimpleWindow.java Datei anzeigen

@@ -37,14 +37,14 @@ public class SimpleWindow {
37 37
         int BOX_DIM = 10;
38 38
         for (int i = 0; i < array.length; i++) {
39 39
             for (int j = 0; j < array[0].length; j++) {
40
-                g.drawRect(i * BOX_DIM, j * BOX_DIM, 10, 10);
40
+                g.drawRect(i * BOX_DIM + 1, j * BOX_DIM + 1, 10, 10);
41 41
                 if (array[i][j] == 0) {
42
-                    g.setColor(Color.WHITE);
43
-                    g.fillRect(i * BOX_DIM, j * BOX_DIM, 10, 10);
42
+                    g.setColor(Color.BLACK);
43
+                    g.fillRect(i * BOX_DIM, j * BOX_DIM + 1, 10, 10);
44 44
                 }
45 45
                 if (array[i][j] == 1) {
46
-                    g.setColor(Color.BLACK);
47
-                    g.fillRect(i * BOX_DIM, j * BOX_DIM, 10, 10);
46
+                    g.setColor(Color.ORANGE);
47
+                    g.fillRect(i * BOX_DIM, j * BOX_DIM + 1, 10, 10);
48 48
                 }
49 49
             }
50 50
         }

+ 45
- 0
src/test/java/com/zipcodeconway/ConwayGameOfLifeTest.java Datei anzeigen

@@ -1,5 +1,6 @@
1 1
 package com.zipcodeconway;
2 2
 
3
+import org.junit.Assert;
3 4
 import org.junit.Test;
4 5
 
5 6
 import static org.junit.Assert.*;
@@ -43,4 +44,48 @@ public class ConwayGameOfLifeTest {
43 44
         int[][] results = sim.simulate(10);
44 45
         assertTrue(java.util.Arrays.deepEquals(results, expected));
45 46
     }
47
+
48
+    @Test
49
+    public void isAliveTest(){
50
+        ConwayGameOfLife sim = new ConwayGameOfLife(5);
51
+
52
+        //Given
53
+        int row = 2;
54
+        int col = 2;
55
+        int [][] world = {
56
+                {0, 0, 0, 0, 0},
57
+                {0, 0, 1, 0, 0},
58
+                {0, 0, 1, 0, 0},
59
+                {0, 0, 1, 0, 0},
60
+                {0, 0, 0, 0, 0}};
61
+        //When
62
+        // 1 means alive
63
+        int expected = 1;
64
+        int actual = sim.isAlive(row, col, world);
65
+
66
+        //Then
67
+        Assert.assertEquals(expected, actual);
68
+    }
69
+
70
+    @Test
71
+    public void isAliveEdgeTest(){
72
+        ConwayGameOfLife sim = new ConwayGameOfLife(5);
73
+
74
+        //Given
75
+        int row = 0;
76
+        int col = 2;
77
+        int [][] world = {
78
+                {0, 0, 1, 0, 0},
79
+                {0, 0, 0, 1, 0},
80
+                {0, 0, 0, 0, 0},
81
+                {0, 0, 0, 0, 0},
82
+                {0, 1, 1, 0, 0}};
83
+        //When
84
+        // 1 means alive
85
+        int expected = 1;
86
+        int actual = sim.isAlive(row, col, world);
87
+
88
+        //Then
89
+        Assert.assertEquals(expected, actual);
90
+    }
46 91
 }