Ver código fonte

All tests passed

Lauren Green 6 anos atrás
pai
commit
9002d7bd75

+ 248
- 353
.idea/workspace.xml Ver arquivo

@@ -1,22 +1,58 @@
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="e282cee1-bfe9-42a3-9794-9633eb4654d1" name="Default" comment="">
5
+      <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
6
+      <change beforePath="$PROJECT_DIR$/src/main/java/com/zipcodeconway/ConwayGameOfLife.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/zipcodeconway/ConwayGameOfLife.java" afterDir="false" />
7
+      <change beforePath="$PROJECT_DIR$/src/main/java/com/zipcodeconway/SimpleWindow.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/zipcodeconway/SimpleWindow.java" afterDir="false" />
8
+      <change beforePath="$PROJECT_DIR$/src/test/java/com/zipcodeconway/ConwayGameOfLifeTest.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/test/java/com/zipcodeconway/ConwayGameOfLifeTest.java" afterDir="false" />
9
+    </list>
5 10
     <ignored path="$PROJECT_DIR$/target/" />
6 11
     <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
7
-    <option name="TRACKING_ENABLED" value="true" />
8 12
     <option name="SHOW_DIALOG" value="false" />
9 13
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
10 14
     <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
11 15
     <option name="LAST_RESOLUTION" value="IGNORE" />
12 16
   </component>
17
+  <component name="FUSProjectUsageTrigger">
18
+    <session id="-1521925446">
19
+      <usages-collector id="statistics.lifecycle.project">
20
+        <counts>
21
+          <entry key="project.open.time.8" value="1" />
22
+          <entry key="project.opened" value="1" />
23
+        </counts>
24
+      </usages-collector>
25
+      <usages-collector id="statistics.file.extensions.edit">
26
+        <counts>
27
+          <entry key="java" value="1930" />
28
+        </counts>
29
+      </usages-collector>
30
+      <usages-collector id="statistics.file.types.edit">
31
+        <counts>
32
+          <entry key="JAVA" value="1930" />
33
+        </counts>
34
+      </usages-collector>
35
+      <usages-collector id="statistics.file.extensions.open">
36
+        <counts>
37
+          <entry key="class" value="1" />
38
+          <entry key="java" value="1" />
39
+        </counts>
40
+      </usages-collector>
41
+      <usages-collector id="statistics.file.types.open">
42
+        <counts>
43
+          <entry key="CLASS" value="1" />
44
+          <entry key="JAVA" value="1" />
45
+        </counts>
46
+      </usages-collector>
47
+    </session>
48
+  </component>
13 49
   <component name="FileEditorManager">
14
-    <leaf>
15
-      <file leaf-file-name="SimpleWindow.java" pinned="false" current-in-tab="false">
50
+    <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
51
+      <file pinned="false" current-in-tab="true">
16 52
         <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodeconway/SimpleWindow.java">
17 53
           <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" />
54
+            <state relative-caret-position="308">
55
+              <caret line="41" column="52" selection-start-line="41" selection-start-column="52" selection-end-line="41" selection-end-column="52" />
20 56
               <folding>
21 57
                 <element signature="imports" expanded="true" />
22 58
               </folding>
@@ -24,64 +60,38 @@
24 60
           </provider>
25 61
         </entry>
26 62
       </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">
63
+      <file pinned="false" current-in-tab="false">
64
+        <entry file="jar:///Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/src.zip!/java/awt/Graphics.java">
29 65
           <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>
66
+            <state relative-caret-position="192">
67
+              <caret line="113" column="24" selection-start-line="113" selection-start-column="13" selection-end-line="113" selection-end-column="24" />
39 68
             </state>
40 69
           </provider>
41 70
         </entry>
42 71
       </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>
72
+      <file pinned="false" current-in-tab="false">
73
+        <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodeconway/ConwayGameOfLife.java">
74
+          <provider selected="true" editor-type-id="text-editor">
75
+            <state relative-caret-position="166">
76
+              <caret line="43" column="28" selection-start-line="43" selection-start-column="28" selection-end-line="43" selection-end-column="28" />
62 77
             </state>
63 78
           </provider>
64 79
         </entry>
65 80
       </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 />
81
+      <file pinned="false" current-in-tab="false">
82
+        <entry file="file://$PROJECT_DIR$/src/test/java/com/zipcodeconway/ConwayGameOfLifeTest.java">
83
+          <provider selected="true" editor-type-id="text-editor">
84
+            <state relative-caret-position="615">
85
+              <caret line="44" column="30" lean-forward="true" selection-start-line="44" selection-end-line="45" />
75 86
             </state>
76 87
           </provider>
77 88
         </entry>
78 89
       </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">
90
+      <file pinned="false" current-in-tab="false">
91
+        <entry file="jar:///Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/jre/lib/rt.jar!/sun/reflect/NativeMethodAccessorImpl.class">
81 92
           <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 />
93
+            <state relative-caret-position="360">
94
+              <caret line="33" column="33" selection-start-line="33" selection-start-column="33" selection-end-line="33" selection-end-column="33" />
85 95
             </state>
86 96
           </provider>
87 97
         </entry>
@@ -100,6 +110,8 @@
100 110
   <component name="FindInProjectRecents">
101 111
     <findStrings>
102 112
       <find>end</find>
113
+      <find>display</find>
114
+      <find>getgraphics</find>
103 115
     </findStrings>
104 116
     <replaceStrings>
105 117
       <replace>currentGeneration</replace>
@@ -109,11 +121,6 @@
109 121
   <component name="Git.Settings">
110 122
     <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
111 123
   </component>
112
-  <component name="GradleLocalSettings">
113
-    <option name="externalProjectsViewState">
114
-      <projects_view />
115
-    </option>
116
-  </component>
117 124
   <component name="IdeDocumentHistory">
118 125
     <option name="CHANGED_PATHS">
119 126
       <list>
@@ -125,10 +132,10 @@
125 132
         <option value="$PROJECT_DIR$/src/main/java/SimpleWindow.java" />
126 133
         <option value="$PROJECT_DIR$/src/main/java/ConwayGameOfLife.java" />
127 134
         <option value="$PROJECT_DIR$/src/main/java/Life.java" />
128
-        <option value="$PROJECT_DIR$/src/test/java/com/zipcodeconway/ConwayGameOfLifeTest.java" />
129
-        <option value="$PROJECT_DIR$/src/main/java/com/zipcodeconway/SimpleWindow.java" />
130 135
         <option value="$PROJECT_DIR$/src/main/java/com/zipcodeconway/README.md" />
131 136
         <option value="$PROJECT_DIR$/src/main/java/com/zipcodeconway/ConwayGameOfLife.java" />
137
+        <option value="$PROJECT_DIR$/src/test/java/com/zipcodeconway/ConwayGameOfLifeTest.java" />
138
+        <option value="$PROJECT_DIR$/src/main/java/com/zipcodeconway/SimpleWindow.java" />
132 139
       </list>
133 140
     </option>
134 141
   </component>
@@ -138,24 +145,21 @@
138 145
     <detection-done>true</detection-done>
139 146
     <sorting>DEFINITION_ORDER</sorting>
140 147
   </component>
148
+  <component name="MavenImportPreferences">
149
+    <option name="importingSettings">
150
+      <MavenImportingSettings>
151
+        <option name="importAutomatically" value="true" />
152
+      </MavenImportingSettings>
153
+    </option>
154
+  </component>
141 155
   <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" />
156
+    <option name="x" value="46" />
157
+    <option name="y" value="24" />
158
+    <option name="width" value="1490" />
159
+    <option name="height" value="946" />
146 160
   </component>
147 161
   <component name="ProjectView">
148
-    <navigator currentView="ProjectPane" proportions="" version="1">
149
-      <flattenPackages />
150
-      <showMembers />
151
-      <showModules />
152
-      <showLibraryContents />
153
-      <hideEmptyPackages />
154
-      <abbreviatePackageNames />
155
-      <autoscrollToSource />
156
-      <autoscrollFromSource />
157
-      <sortByType />
158
-      <manualOrder />
162
+    <navigator proportions="" version="1">
159 163
       <foldersAlwaysOnTop value="true" />
160 164
     </navigator>
161 165
     <panes>
@@ -163,51 +167,51 @@
163 167
         <subPane>
164 168
           <expand>
165 169
             <path>
166
-              <item name="Game-Of-Life-Java" type="b2602c69:ProjectViewProjectNode" />
167
-              <item name="Game-Of-Life-Java" type="462c0819:PsiDirectoryNode" />
170
+              <item name="GameOfLifeConway" type="b2602c69:ProjectViewProjectNode" />
171
+              <item name="GameOfLifeConway" type="462c0819:PsiDirectoryNode" />
168 172
             </path>
169 173
             <path>
170
-              <item name="Game-Of-Life-Java" type="b2602c69:ProjectViewProjectNode" />
171
-              <item name="Game-Of-Life-Java" type="462c0819:PsiDirectoryNode" />
174
+              <item name="GameOfLifeConway" type="b2602c69:ProjectViewProjectNode" />
175
+              <item name="GameOfLifeConway" type="462c0819:PsiDirectoryNode" />
172 176
               <item name="src" type="462c0819:PsiDirectoryNode" />
173 177
             </path>
174 178
             <path>
175
-              <item name="Game-Of-Life-Java" type="b2602c69:ProjectViewProjectNode" />
176
-              <item name="Game-Of-Life-Java" type="462c0819:PsiDirectoryNode" />
179
+              <item name="GameOfLifeConway" type="b2602c69:ProjectViewProjectNode" />
180
+              <item name="GameOfLifeConway" type="462c0819:PsiDirectoryNode" />
177 181
               <item name="src" type="462c0819:PsiDirectoryNode" />
178 182
               <item name="main" type="462c0819:PsiDirectoryNode" />
179 183
             </path>
180 184
             <path>
181
-              <item name="Game-Of-Life-Java" type="b2602c69:ProjectViewProjectNode" />
182
-              <item name="Game-Of-Life-Java" type="462c0819:PsiDirectoryNode" />
185
+              <item name="GameOfLifeConway" type="b2602c69:ProjectViewProjectNode" />
186
+              <item name="GameOfLifeConway" type="462c0819:PsiDirectoryNode" />
183 187
               <item name="src" type="462c0819:PsiDirectoryNode" />
184 188
               <item name="main" type="462c0819:PsiDirectoryNode" />
185 189
               <item name="java" type="462c0819:PsiDirectoryNode" />
186 190
             </path>
187 191
             <path>
188
-              <item name="Game-Of-Life-Java" type="b2602c69:ProjectViewProjectNode" />
189
-              <item name="Game-Of-Life-Java" type="462c0819:PsiDirectoryNode" />
192
+              <item name="GameOfLifeConway" type="b2602c69:ProjectViewProjectNode" />
193
+              <item name="GameOfLifeConway" type="462c0819:PsiDirectoryNode" />
190 194
               <item name="src" type="462c0819:PsiDirectoryNode" />
191 195
               <item name="main" type="462c0819:PsiDirectoryNode" />
192 196
               <item name="java" type="462c0819:PsiDirectoryNode" />
193 197
               <item name="zipcodeconway" type="462c0819:PsiDirectoryNode" />
194 198
             </path>
195 199
             <path>
196
-              <item name="Game-Of-Life-Java" type="b2602c69:ProjectViewProjectNode" />
197
-              <item name="Game-Of-Life-Java" type="462c0819:PsiDirectoryNode" />
200
+              <item name="GameOfLifeConway" type="b2602c69:ProjectViewProjectNode" />
201
+              <item name="GameOfLifeConway" type="462c0819:PsiDirectoryNode" />
198 202
               <item name="src" type="462c0819:PsiDirectoryNode" />
199 203
               <item name="test" type="462c0819:PsiDirectoryNode" />
200 204
             </path>
201 205
             <path>
202
-              <item name="Game-Of-Life-Java" type="b2602c69:ProjectViewProjectNode" />
203
-              <item name="Game-Of-Life-Java" type="462c0819:PsiDirectoryNode" />
206
+              <item name="GameOfLifeConway" type="b2602c69:ProjectViewProjectNode" />
207
+              <item name="GameOfLifeConway" type="462c0819:PsiDirectoryNode" />
204 208
               <item name="src" type="462c0819:PsiDirectoryNode" />
205 209
               <item name="test" type="462c0819:PsiDirectoryNode" />
206 210
               <item name="java" type="462c0819:PsiDirectoryNode" />
207 211
             </path>
208 212
             <path>
209
-              <item name="Game-Of-Life-Java" type="b2602c69:ProjectViewProjectNode" />
210
-              <item name="Game-Of-Life-Java" type="462c0819:PsiDirectoryNode" />
213
+              <item name="GameOfLifeConway" type="b2602c69:ProjectViewProjectNode" />
214
+              <item name="GameOfLifeConway" type="462c0819:PsiDirectoryNode" />
211 215
               <item name="src" type="462c0819:PsiDirectoryNode" />
212 216
               <item name="test" type="462c0819:PsiDirectoryNode" />
213 217
               <item name="java" type="462c0819:PsiDirectoryNode" />
@@ -218,21 +222,20 @@
218 222
         </subPane>
219 223
       </pane>
220 224
       <pane id="PackagesPane" />
221
-      <pane id="AndroidView" />
222
-      <pane id="Scratches" />
223 225
       <pane id="Scope" />
224 226
     </panes>
225 227
   </component>
226 228
   <component name="PropertiesComponent">
227
-    <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
228 229
     <property name="WebServerToolWindowFactoryState" value="false" />
229 230
     <property name="aspect.path.notification.shown" value="true" />
231
+    <property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1542828861246" />
232
+    <property name="com.intellij.testIntegration.createTest.CreateTestDialog.defaultLibrary" value="JUnit4" />
230 233
     <property name="last_opened_file_path" value="$PROJECT_DIR$" />
231
-    <property name="settings.editor.selected.configurable" value="preferences.lookFeel" />
234
+    <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
232 235
     <property name="project.structure.last.edited" value="Modules" />
233 236
     <property name="project.structure.proportion" value="0.15" />
234 237
     <property name="project.structure.side.proportion" value="0.2" />
235
-    <property name="com.intellij.testIntegration.createTest.CreateTestDialog.defaultLibrary" value="JUnit4" />
238
+    <property name="settings.editor.selected.configurable" value="preferences.lookFeel" />
236 239
   </component>
237 240
   <component name="RecentsManager">
238 241
     <key name="CreateTestDialog.RecentsKey">
@@ -260,155 +263,106 @@
260 263
       </list>
261 264
     </option>
262 265
   </component>
263
-  <component name="RunManager" selected="JUnit.ConwayGameOfLifeTest">
266
+  <component name="RunManager" selected="Application.ConwayGameOfLife">
264 267
     <configuration default="true" type="Applet" factoryName="Applet">
265
-      <option name="HTML_USED" value="false" />
266
-      <option name="WIDTH" value="400" />
267
-      <option name="HEIGHT" value="300" />
268 268
       <option name="POLICY_FILE" value="$APPLICATION_HOME_DIR$/bin/appletviewer.policy" />
269
-      <module />
269
+      <method v="2">
270
+        <option name="Make" enabled="true" />
271
+      </method>
270 272
     </configuration>
271 273
     <configuration name="ConwayGameOfLife" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
272
-      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea">
274
+      <option name="MAIN_CLASS_NAME" value="com.zipcodeconway.ConwayGameOfLife" />
275
+      <module name="Game-Of-Life-Java" />
276
+      <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
277
+      <extension name="coverage">
273 278
         <pattern>
274 279
           <option name="PATTERN" value="com.zipcodeconway.*" />
275 280
           <option name="ENABLED" value="true" />
276 281
         </pattern>
277 282
       </extension>
278
-      <option name="MAIN_CLASS_NAME" value="com.zipcodeconway.ConwayGameOfLife" />
279
-      <option name="VM_PARAMETERS" />
280
-      <option name="PROGRAM_PARAMETERS" />
281
-      <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
282
-      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
283
-      <option name="ALTERNATIVE_JRE_PATH" />
284
-      <option name="ENABLE_SWING_INSPECTOR" value="false" />
285
-      <option name="ENV_VARIABLES" />
286
-      <option name="PASS_PARENT_ENVS" value="true" />
287
-      <module name="Game-Of-Life-Java" />
288
-      <envs />
289
-    </configuration>
290
-    <configuration name="GameofLife" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
291
-      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
292
-      <option name="MAIN_CLASS_NAME" value="GameofLife" />
293
-      <option name="VM_PARAMETERS" />
294
-      <option name="PROGRAM_PARAMETERS" />
295
-      <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
296
-      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
297
-      <option name="ALTERNATIVE_JRE_PATH" />
298
-      <option name="ENABLE_SWING_INSPECTOR" value="false" />
299
-      <option name="ENV_VARIABLES" />
300
-      <option name="PASS_PARENT_ENVS" value="true" />
301
-      <module name="Game-Of-Life-Java" />
302
-      <envs />
283
+      <method v="2">
284
+        <option name="Make" enabled="true" />
285
+      </method>
303 286
     </configuration>
304 287
     <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 288
       <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
310
-      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
311
-      <option name="ALTERNATIVE_JRE_PATH" />
312
-      <option name="ENABLE_SWING_INSPECTOR" value="false" />
313
-      <option name="ENV_VARIABLES" />
314
-      <option name="PASS_PARENT_ENVS" value="true" />
315
-      <module name="" />
316
-      <envs />
289
+      <method v="2">
290
+        <option name="Make" enabled="true" />
291
+      </method>
317 292
     </configuration>
318
-    <configuration name="ConwayGameOfLifeTest" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
319
-      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea">
293
+    <configuration name="ConwayGameOfLifeTest.createNextWorld2Test" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
294
+      <module name="Game-Of-Life-Java" />
295
+      <extension name="coverage">
320 296
         <pattern>
321 297
           <option name="PATTERN" value="com.zipcodeconway.*" />
322 298
           <option name="ENABLED" value="true" />
323 299
         </pattern>
324 300
       </extension>
325
-      <module name="Game-Of-Life-Java" />
326
-      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
327
-      <option name="ALTERNATIVE_JRE_PATH" />
328 301
       <option name="PACKAGE_NAME" value="com.zipcodeconway" />
329 302
       <option name="MAIN_CLASS_NAME" value="com.zipcodeconway.ConwayGameOfLifeTest" />
330
-      <option name="METHOD_NAME" />
331
-      <option name="TEST_OBJECT" value="class" />
332
-      <option name="VM_PARAMETERS" value="-ea" />
333
-      <option name="PARAMETERS" />
303
+      <option name="METHOD_NAME" value="createNextWorld2Test" />
304
+      <option name="TEST_OBJECT" value="method" />
334 305
       <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
335
-      <option name="ENV_VARIABLES" />
336
-      <option name="PASS_PARENT_ENVS" value="true" />
337
-      <option name="TEST_SEARCH_SCOPE">
338
-        <value defaultName="singleModule" />
339
-      </option>
340
-      <envs />
341
-      <patterns />
306
+      <method v="2">
307
+        <option name="Make" enabled="true" />
308
+      </method>
342 309
     </configuration>
343
-    <configuration name="ConwayGameOfLifeTest.runTest" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
344
-      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea">
310
+    <configuration name="ConwayGameOfLifeTest.createNextWorldTest" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
311
+      <module name="Game-Of-Life-Java" />
312
+      <extension name="coverage">
345 313
         <pattern>
346 314
           <option name="PATTERN" value="com.zipcodeconway.*" />
347 315
           <option name="ENABLED" value="true" />
348 316
         </pattern>
349 317
       </extension>
318
+      <option name="PACKAGE_NAME" value="com.zipcodeconway" />
319
+      <option name="MAIN_CLASS_NAME" value="com.zipcodeconway.ConwayGameOfLifeTest" />
320
+      <option name="METHOD_NAME" value="createNextWorldTest" />
321
+      <option name="TEST_OBJECT" value="method" />
322
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
323
+      <method v="2">
324
+        <option name="Make" enabled="true" />
325
+      </method>
326
+    </configuration>
327
+    <configuration name="ConwayGameOfLifeTest.runTest1" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
350 328
       <module name="Game-Of-Life-Java" />
351
-      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
352
-      <option name="ALTERNATIVE_JRE_PATH" />
329
+      <extension name="coverage">
330
+        <pattern>
331
+          <option name="PATTERN" value="com.zipcodeconway.*" />
332
+          <option name="ENABLED" value="true" />
333
+        </pattern>
334
+      </extension>
353 335
       <option name="PACKAGE_NAME" value="com.zipcodeconway" />
354 336
       <option name="MAIN_CLASS_NAME" value="com.zipcodeconway.ConwayGameOfLifeTest" />
355
-      <option name="METHOD_NAME" value="runTest" />
337
+      <option name="METHOD_NAME" value="runTest1" />
356 338
       <option name="TEST_OBJECT" value="method" />
357
-      <option name="VM_PARAMETERS" value="-ea" />
358
-      <option name="PARAMETERS" />
359 339
       <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
360
-      <option name="ENV_VARIABLES" />
361
-      <option name="PASS_PARENT_ENVS" value="true" />
362
-      <option name="TEST_SEARCH_SCOPE">
363
-        <value defaultName="singleModule" />
364
-      </option>
365
-      <envs />
366
-      <patterns />
340
+      <method v="2">
341
+        <option name="Make" enabled="true" />
342
+      </method>
367 343
     </configuration>
368 344
     <configuration name="ConwayGameOfLifeTest.runTest2" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
369
-      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea">
345
+      <module name="Game-Of-Life-Java" />
346
+      <extension name="coverage">
370 347
         <pattern>
371 348
           <option name="PATTERN" value="com.zipcodeconway.*" />
372 349
           <option name="ENABLED" value="true" />
373 350
         </pattern>
374 351
       </extension>
375
-      <module name="Game-Of-Life-Java" />
376
-      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
377
-      <option name="ALTERNATIVE_JRE_PATH" />
378 352
       <option name="PACKAGE_NAME" value="com.zipcodeconway" />
379 353
       <option name="MAIN_CLASS_NAME" value="com.zipcodeconway.ConwayGameOfLifeTest" />
380 354
       <option name="METHOD_NAME" value="runTest2" />
381 355
       <option name="TEST_OBJECT" value="method" />
382
-      <option name="VM_PARAMETERS" value="-ea" />
383
-      <option name="PARAMETERS" />
384 356
       <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
385
-      <option name="ENV_VARIABLES" />
386
-      <option name="PASS_PARENT_ENVS" value="true" />
387
-      <option name="TEST_SEARCH_SCOPE">
388
-        <value defaultName="singleModule" />
389
-      </option>
390
-      <envs />
391
-      <patterns />
357
+      <method v="2">
358
+        <option name="Make" enabled="true" />
359
+      </method>
392 360
     </configuration>
393 361
     <configuration default="true" type="JUnit" factoryName="JUnit">
394
-      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
395
-      <module name="" />
396
-      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
397
-      <option name="ALTERNATIVE_JRE_PATH" />
398
-      <option name="PACKAGE_NAME" />
399
-      <option name="MAIN_CLASS_NAME" />
400
-      <option name="METHOD_NAME" />
401
-      <option name="TEST_OBJECT" value="class" />
402
-      <option name="VM_PARAMETERS" value="-ea" />
403
-      <option name="PARAMETERS" />
404 362
       <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
405
-      <option name="ENV_VARIABLES" />
406
-      <option name="PASS_PARENT_ENVS" value="true" />
407
-      <option name="TEST_SEARCH_SCOPE">
408
-        <value defaultName="singleModule" />
409
-      </option>
410
-      <envs />
411
-      <patterns />
363
+      <method v="2">
364
+        <option name="Make" enabled="true" />
365
+      </method>
412 366
     </configuration>
413 367
     <configuration name="ConwayLife" type="MavenRunConfiguration" factoryName="Maven">
414 368
       <MavenSettings>
@@ -422,6 +376,7 @@
422 376
             <option name="goals">
423 377
               <list />
424 378
             </option>
379
+            <option name="pomFileName" />
425 380
             <option name="profilesMap">
426 381
               <map />
427 382
             </option>
@@ -430,68 +385,43 @@
430 385
           </MavenRunnerParameters>
431 386
         </option>
432 387
       </MavenSettings>
433
-    </configuration>
434
-    <configuration default="true" type="Remote" factoryName="Remote">
435
-      <option name="USE_SOCKET_TRANSPORT" value="true" />
436
-      <option name="SERVER_MODE" value="false" />
437
-      <option name="SHMEM_ADDRESS" value="javadebug" />
438
-      <option name="HOST" value="localhost" />
439
-      <option name="PORT" value="5005" />
388
+      <method v="2" />
440 389
     </configuration>
441 390
     <configuration default="true" type="TestNG" factoryName="TestNG">
442
-      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
443
-      <module name="" />
444
-      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
445
-      <option name="ALTERNATIVE_JRE_PATH" />
446
-      <option name="SUITE_NAME" />
447
-      <option name="PACKAGE_NAME" />
448
-      <option name="MAIN_CLASS_NAME" />
449
-      <option name="METHOD_NAME" />
450
-      <option name="GROUP_NAME" />
451
-      <option name="TEST_OBJECT" value="CLASS" />
452
-      <option name="VM_PARAMETERS" value="-ea" />
453
-      <option name="PARAMETERS" />
454 391
       <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
455
-      <option name="OUTPUT_DIRECTORY" />
456
-      <option name="ANNOTATION_TYPE" />
457
-      <option name="ENV_VARIABLES" />
458
-      <option name="PASS_PARENT_ENVS" value="true" />
459
-      <option name="TEST_SEARCH_SCOPE">
460
-        <value defaultName="singleModule" />
461
-      </option>
462
-      <option name="USE_DEFAULT_REPORTERS" value="false" />
463
-      <option name="PROPERTIES_FILE" />
464
-      <envs />
465 392
       <properties />
466 393
       <listeners />
394
+      <method v="2">
395
+        <option name="Make" enabled="true" />
396
+      </method>
467 397
     </configuration>
468 398
     <configuration default="true" type="#org.jetbrains.idea.devkit.run.PluginConfigurationType" factoryName="Plugin">
469 399
       <module name="" />
470 400
       <option name="VM_PARAMETERS" value="-Xmx512m -Xms256m -XX:MaxPermSize=250m -ea" />
471 401
       <option name="PROGRAM_PARAMETERS" />
472 402
       <predefined_log_file id="idea.log" enabled="true" />
403
+      <method v="2">
404
+        <option name="Make" enabled="true" />
405
+      </method>
473 406
     </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" />
407
+    <list>
408
+      <item itemvalue="Maven.ConwayLife" />
409
+      <item itemvalue="JUnit.ConwayGameOfLifeTest.createNextWorldTest" />
410
+      <item itemvalue="JUnit.ConwayGameOfLifeTest.createNextWorld2Test" />
411
+      <item itemvalue="JUnit.ConwayGameOfLifeTest.runTest1" />
412
+      <item itemvalue="Application.ConwayGameOfLife" />
413
+      <item itemvalue="JUnit.ConwayGameOfLifeTest.runTest2" />
481 414
     </list>
482 415
     <recent_temporary>
483
-      <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" />
486
-        <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" />
416
+      <list>
417
+        <item itemvalue="Application.ConwayGameOfLife" />
418
+        <item itemvalue="JUnit.ConwayGameOfLifeTest.runTest2" />
419
+        <item itemvalue="JUnit.ConwayGameOfLifeTest.runTest1" />
420
+        <item itemvalue="JUnit.ConwayGameOfLifeTest.createNextWorldTest" />
421
+        <item itemvalue="JUnit.ConwayGameOfLifeTest.createNextWorld2Test" />
489 422
       </list>
490 423
     </recent_temporary>
491 424
   </component>
492
-  <component name="ShelveChangesManager" show_recycled="false">
493
-    <option name="remove_strategy" value="false" />
494
-  </component>
495 425
   <component name="SvnConfiguration">
496 426
     <configuration />
497 427
   </component>
@@ -503,72 +433,77 @@
503 433
       <option name="presentableId" value="Default" />
504 434
       <updated>1519668901598</updated>
505 435
       <workItem from="1519668902904" duration="14517000" />
436
+      <workItem from="1542811948669" duration="10959000" />
506 437
     </task>
507 438
     <servers />
508 439
   </component>
509 440
   <component name="TestHistory">
510
-    <history-entry file="ConwayGameOfLifeTest - 2018.02.26 at 15h 45m 01s.xml">
511
-      <configuration name="ConwayGameOfLifeTest" configurationId="JUnit" />
441
+    <history-entry file="ConwayGameOfLifeTest_runTest1 - 2018.11.21 at 14h 20m 08s.xml">
442
+      <configuration name="ConwayGameOfLifeTest.runTest1" configurationId="JUnit" />
512 443
     </history-entry>
513
-    <history-entry file="ConwayGameOfLifeTest - 2018.02.26 at 15h 59m 00s.xml">
514
-      <configuration name="ConwayGameOfLifeTest" configurationId="JUnit" />
444
+    <history-entry file="ConwayGameOfLifeTest_runTest1 - 2018.11.21 at 14h 21m 48s.xml">
445
+      <configuration name="ConwayGameOfLifeTest.runTest1" configurationId="JUnit" />
515 446
     </history-entry>
516
-    <history-entry file="ConwayGameOfLifeTest - 2018.02.26 at 16h 02m 03s.xml">
517
-      <configuration name="ConwayGameOfLifeTest" configurationId="JUnit" />
447
+    <history-entry file="ConwayGameOfLifeTest_runTest1 - 2018.11.21 at 14h 22m 00s.xml">
448
+      <configuration name="ConwayGameOfLifeTest.runTest1" configurationId="JUnit" />
518 449
     </history-entry>
519
-    <history-entry file="ConwayGameOfLifeTest - 2018.02.26 at 16h 03m 01s.xml">
520
-      <configuration name="ConwayGameOfLifeTest" configurationId="JUnit" />
450
+    <history-entry file="ConwayGameOfLifeTest_runTest1 - 2018.11.21 at 14h 24m 12s.xml">
451
+      <configuration name="ConwayGameOfLifeTest.runTest1" configurationId="JUnit" />
521 452
     </history-entry>
522
-    <history-entry file="ConwayGameOfLifeTest - 2018.02.26 at 16h 05m 07s.xml">
523
-      <configuration name="ConwayGameOfLifeTest" configurationId="JUnit" />
453
+    <history-entry file="ConwayGameOfLifeTest_runTest1 - 2018.11.21 at 14h 24m 25s.xml">
454
+      <configuration name="ConwayGameOfLifeTest.runTest1" configurationId="JUnit" />
524 455
     </history-entry>
525
-    <history-entry file="ConwayGameOfLifeTest - 2018.02.26 at 16h 06m 11s.xml">
526
-      <configuration name="ConwayGameOfLifeTest" configurationId="JUnit" />
456
+    <history-entry file="ConwayGameOfLifeTest_runTest2 - 2018.11.21 at 14h 24m 31s.xml">
457
+      <configuration name="ConwayGameOfLifeTest.runTest2" configurationId="JUnit" />
527 458
     </history-entry>
528
-    <history-entry file="ConwayGameOfLifeTest_runTest - 2018.02.26 at 15h 41m 14s.xml">
529
-      <configuration name="ConwayGameOfLifeTest.runTest" configurationId="JUnit" />
459
+    <history-entry file="ConwayGameOfLifeTest_runTest1 - 2018.11.21 at 14h 25m 04s.xml">
460
+      <configuration name="ConwayGameOfLifeTest.runTest1" configurationId="JUnit" />
530 461
     </history-entry>
531
-    <history-entry file="ConwayGameOfLifeTest_runTest2 - 2018.02.26 at 15h 42m 02s.xml">
532
-      <configuration name="ConwayGameOfLifeTest.runTest2" configurationId="JUnit" />
462
+    <history-entry file="ConwayGameOfLifeTest_runTest1 - 2018.11.21 at 14h 25m 40s.xml">
463
+      <configuration name="ConwayGameOfLifeTest.runTest1" configurationId="JUnit" />
464
+    </history-entry>
465
+    <history-entry file="ConwayGameOfLifeTest_runTest1 - 2018.11.21 at 14h 25m 51s.xml">
466
+      <configuration name="ConwayGameOfLifeTest.runTest1" configurationId="JUnit" />
533 467
     </history-entry>
534
-    <history-entry file="ConwayGameOfLifeTest_runTest2 - 2018.02.26 at 15h 42m 18s.xml">
468
+    <history-entry file="ConwayGameOfLifeTest_runTest2 - 2018.11.21 at 14h 26m 07s.xml">
535 469
       <configuration name="ConwayGameOfLifeTest.runTest2" configurationId="JUnit" />
536 470
     </history-entry>
537 471
   </component>
538 472
   <component name="TimeTrackingManager">
539
-    <option name="totallyTimeSpent" value="14517000" />
473
+    <option name="totallyTimeSpent" value="25476000" />
540 474
   </component>
541 475
   <component name="ToolWindowManager">
542
-    <frame x="82" y="32" width="1440" height="821" extended-state="0" />
476
+    <frame x="46" y="24" width="1490" height="946" extended-state="0" />
543 477
     <editor active="true" />
544 478
     <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" />
546
-      <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" />
560
-      <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
-      <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" />
566
-      <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
-      <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
-      <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" />
571
-      <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" />
479
+      <window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.21685083" />
480
+      <window_info id="Structure" order="1" weight="0.25" />
481
+      <window_info id="Image Layers" order="2" />
482
+      <window_info id="Designer" order="3" />
483
+      <window_info id="UI Designer" order="4" />
484
+      <window_info id="Capture Tool" order="5" />
485
+      <window_info id="Favorites" order="6" side_tool="true" />
486
+      <window_info anchor="bottom" id="Database Changes" show_stripe_button="false" />
487
+      <window_info anchor="bottom" id="Message" order="0" />
488
+      <window_info anchor="bottom" id="Find" order="1" />
489
+      <window_info active="true" anchor="bottom" id="Run" order="2" visible="true" weight="0.23536299" />
490
+      <window_info anchor="bottom" id="Debug" order="3" weight="0.39929742" />
491
+      <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
492
+      <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
493
+      <window_info anchor="bottom" id="TODO" order="6" />
494
+      <window_info anchor="bottom" id="Terminal" order="7" weight="0.32970026" />
495
+      <window_info anchor="bottom" id="Event Log" order="8" side_tool="true" />
496
+      <window_info anchor="bottom" id="Version Control" order="9" />
497
+      <window_info anchor="bottom" id="Messages" order="10" weight="0.3266979" />
498
+      <window_info anchor="right" id="Commander" order="0" weight="0.4" />
499
+      <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
500
+      <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
501
+      <window_info anchor="right" id="Palette" order="3" />
502
+      <window_info anchor="right" id="Capture Analysis" order="4" />
503
+      <window_info anchor="right" id="Theme Preview" order="5" />
504
+      <window_info anchor="right" id="Database" order="6" />
505
+      <window_info anchor="right" id="Palette&#9;" order="7" />
506
+      <window_info anchor="right" id="Maven Projects" order="8" />
572 507
     </layout>
573 508
   </component>
574 509
   <component name="TypeScriptGeneratedFilesManager">
@@ -577,48 +512,31 @@
577 512
   <component name="VcsContentAnnotationSettings">
578 513
     <option name="myLimit" value="2678400000" />
579 514
   </component>
580
-  <component name="XDebuggerManager">
581
-    <breakpoint-manager>
582
-      <option name="time" value="2" />
583
-    </breakpoint-manager>
584
-    <watches-manager />
585
-  </component>
586 515
   <component name="editorHistoryManager">
587 516
     <entry file="file://$PROJECT_DIR$/pom.xml">
588 517
       <provider selected="true" editor-type-id="text-editor">
589 518
         <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" />
591
-          <folding />
592
-        </state>
593
-      </provider>
594
-    </entry>
595
-    <entry file="file://$PROJECT_DIR$/src/main/java/LifeStarts.java">
596
-      <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" />
599
-          <folding />
600
-        </state>
601
-      </provider>
602
-    </entry>
603
-    <entry file="file://$PROJECT_DIR$/src/main/java/Life.java">
604
-      <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" />
607
-          <folding />
519
+          <caret line="11" column="10" selection-start-line="11" selection-start-column="10" selection-end-line="11" selection-end-column="10" />
608 520
         </state>
609 521
       </provider>
610 522
     </entry>
523
+    <entry file="file://$PROJECT_DIR$/src/main/java/LifeStarts.java" />
524
+    <entry file="file://$PROJECT_DIR$/src/main/java/Life.java" />
525
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodeconway/README.md" />
526
+    <entry file="file://$USER_HOME$/Downloads/ConwayLifeRandomat50.png" />
527
+    <entry file="file://$USER_HOME$/Documents/gitea/gitea/custom/public/img/ConwayLifeUML.png" />
528
+    <entry file="file://$PROJECT_DIR$/src/main/java/GameofLife.java" />
611 529
     <entry file="uml://JAVA/com.zipcodeconway.ConwayGameOfLife">
612 530
       <provider selected="true" editor-type-id="UmlEditorProvider">
613 531
         <state>
614 532
           <ID>JAVA</ID>
615 533
           <OriginalElement>com.zipcodeconway.ConwayGameOfLife</OriginalElement>
616 534
           <nodes>
617
-            <node x="-54.0" y="-179.0">com.zipcodeconway.ConwayGameOfLife</node>
535
+            <node x="" y="">com.zipcodeconway.ConwayGameOfLife</node>
618 536
           </nodes>
619 537
           <notes />
620 538
           <edges />
621
-          <settings layout="Hierarchic Group" zoom="1.0" x="-203.0" y="-1.0" />
539
+          <settings layout="Hierarchic Group" zoom="1.0" x="315.5" y="-143.0" />
622 540
           <SelectedNodes />
623 541
           <Categories>
624 542
             <Category>Constructors</Category>
@@ -629,64 +547,41 @@
629 547
         </state>
630 548
       </provider>
631 549
     </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 />
550
+    <entry file="jar:///Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/jre/lib/rt.jar!/sun/reflect/NativeMethodAccessorImpl.class">
551
+      <provider selected="true" editor-type-id="text-editor">
552
+        <state relative-caret-position="360">
553
+          <caret line="33" column="33" selection-start-line="33" selection-start-column="33" selection-end-line="33" selection-end-column="33" />
640 554
         </state>
641 555
       </provider>
642 556
     </entry>
643
-    <entry file="file://$USER_HOME$/Downloads/ConwayLifeRandomat50.png">
644
-      <provider selected="true" editor-type-id="images">
645
-        <state />
646
-      </provider>
647
-    </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 />
651
-      </provider>
652
-    </entry>
653
-    <entry file="file://$PROJECT_DIR$/src/main/java/GameofLife.java">
557
+    <entry file="file://$PROJECT_DIR$/src/test/java/com/zipcodeconway/ConwayGameOfLifeTest.java">
654 558
       <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" />
657
-          <folding />
559
+        <state relative-caret-position="615">
560
+          <caret line="44" column="30" lean-forward="true" selection-start-line="44" selection-end-line="45" />
658 561
         </state>
659 562
       </provider>
660 563
     </entry>
661
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodeconway/SimpleWindow.java">
564
+    <entry file="jar:///Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/src.zip!/java/awt/Graphics.java">
662 565
       <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>
566
+        <state relative-caret-position="192">
567
+          <caret line="113" column="24" selection-start-line="113" selection-start-column="13" selection-end-line="113" selection-end-column="24" />
668 568
         </state>
669 569
       </provider>
670 570
     </entry>
671 571
     <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodeconway/ConwayGameOfLife.java">
672 572
       <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>
573
+        <state relative-caret-position="166">
574
+          <caret line="43" column="28" selection-start-line="43" selection-start-column="28" selection-end-line="43" selection-end-column="28" />
682 575
         </state>
683 576
       </provider>
684 577
     </entry>
685
-    <entry file="file://$PROJECT_DIR$/src/test/java/com/zipcodeconway/ConwayGameOfLifeTest.java">
578
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodeconway/SimpleWindow.java">
686 579
       <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" />
689
-          <folding />
580
+        <state relative-caret-position="308">
581
+          <caret line="41" column="52" selection-start-line="41" selection-start-column="52" selection-end-line="41" selection-end-column="52" />
582
+          <folding>
583
+            <element signature="imports" expanded="true" />
584
+          </folding>
690 585
         </state>
691 586
       </provider>
692 587
     </entry>

+ 89
- 18
src/main/java/com/zipcodeconway/ConwayGameOfLife.java Ver arquivo

@@ -1,11 +1,26 @@
1 1
 package com.zipcodeconway;
2 2
 
3
+import java.util.Random;
4
+
3 5
 public class ConwayGameOfLife {
4 6
 
7
+    Integer dimension = 1;
8
+    int[][] world;
9
+    int[][] nextWorld;
10
+    SimpleWindow window;
11
+
5 12
     public ConwayGameOfLife(Integer dimension) {
13
+        this.dimension = dimension;
14
+        this.world = createRandomStart(dimension);
15
+        window = new SimpleWindow(dimension);
16
+        window.display(world, dimension);
6 17
      }
7 18
 
8 19
     public ConwayGameOfLife(Integer dimension, int[][] startmatrix) {
20
+        this.dimension = dimension;
21
+        this.world = startmatrix;
22
+        window = new SimpleWindow(dimension);
23
+        window.display(world, dimension);
9 24
     }
10 25
 
11 26
     public static void main(String[] args) {
@@ -13,31 +28,87 @@ public class ConwayGameOfLife {
13 28
         int[][] endingWorld = sim.simulate(50);
14 29
     }
15 30
 
16
-    // Contains the logic for the starting scenario.
17
-    // Which cells are alive or dead in generation 0.
18
-    // allocates and returns the starting matrix of size 'dimension'
19 31
     private int[][] createRandomStart(Integer dimension) {
20
-        return new int[1][1];
32
+        int[][] start = new int[dimension][dimension];
33
+
34
+        for (int row = 0; row < dimension; row++) {
35
+            for (int col = 0; col < dimension; col++) {
36
+                start[row][col] = (int) (Math.random()+0.1);
37
+            }
38
+        }
39
+        return start;
21 40
     }
22 41
 
23 42
     public int[][] simulate(Integer maxGenerations) {
24
-        return new int[1][1];
43
+        int[][] newWorld = new int[dimension][dimension];
44
+        for (int i = 0; i <= maxGenerations; i++) {
45
+            newWorld = createNextWorld(dimension, world);
46
+            copyAndZeroOut(newWorld);
47
+            window.display(world, i);
48
+            window.sleep(150);
49
+        }
50
+        return newWorld;
51
+    }
52
+
53
+
54
+    public void copyAndZeroOut(int [][] replacementWorld) {
55
+        this.world = replacementWorld;
56
+        this.nextWorld = new int[world.length][world.length];
57
+
58
+    }
59
+
60
+    public int[][] createNextWorld(int dimension, int[][] currentWorld) {
61
+        nextWorld = new int[dimension][dimension];
62
+        for (int row = 0; row < dimension; row++) {
63
+            for (int col = 0; col < dimension; col++) {
64
+                int liveNeighbors = isAlive(row, col, currentWorld);
65
+                if(currentWorld[row][col] == 1 && liveNeighbors == 2) {
66
+                    nextWorld[row][col] = 1;
67
+                }
68
+                if(liveNeighbors == 3) {
69
+                    nextWorld[row][col] = 1;
70
+                }
71
+            }
72
+        }
73
+
74
+        return nextWorld;
75
+    }
76
+
77
+    public int isAlive(int row, int col, int[][] world) {
78
+        int liveNeighbors = -(world[row][col]);
79
+        int[] miniRows = setMiniRows(row, world.length);
80
+        int[] miniCols = setMiniCols(col, world.length);
81
+
82
+        for (int indexRow : miniRows) {
83
+            for (int indexCol : miniCols) {
84
+                    liveNeighbors += world[indexRow][indexCol];
85
+            }
86
+        }
87
+
88
+        return liveNeighbors;
25 89
     }
26 90
 
27
-    // copy the values of 'next' matrix to 'current' matrix,
28
-    // and then zero out the contents of 'next' matrix
29
-    public void copyAndZeroOut(int [][] next, int[][] current) {
91
+    public int[] setMiniRows(int row, int worldLength) {
92
+        int[] miniRows = {row - 1, row, row + 1};
93
+        if(row == 0) {
94
+            miniRows[0] = worldLength - 1;
95
+        }
96
+        if(row == worldLength - 1) {
97
+            miniRows[2] = 0;
98
+        }
99
+        return miniRows;
30 100
     }
31 101
 
32
-    // Calculate if an individual cell should be alive in the next generation.
33
-    // Based on the game logic:
34
-	/*
35
-		Any live cell with fewer than two live neighbours dies, as if by needs caused by underpopulation.
36
-		Any live cell with more than three live neighbours dies, as if by overcrowding.
37
-		Any live cell with two or three live neighbours lives, unchanged, to the next generation.
38
-		Any dead cell with exactly three live neighbours cells will come to life.
39
-	*/
40
-    private int isAlive(int row, int col, int[][] world) {
41
-        return 0;
102
+    public int[] setMiniCols(int col, int worldLength) {
103
+        int[] miniCols = {col - 1, col, col + 1};
104
+        if(col == 0) {
105
+            miniCols[0] = world.length - 1;
106
+        }
107
+
108
+        if(col == world.length - 1) {
109
+            miniCols[2] = 0;
110
+        }
111
+        return miniCols;
42 112
     }
113
+
43 114
 }

+ 6
- 6
src/main/java/com/zipcodeconway/SimpleWindow.java Ver arquivo

@@ -34,17 +34,17 @@ public class SimpleWindow {
34 34
     public void display(int[][] array, Integer n) {
35 35
         frame.setTitle(String.format("Generation: %6d", n));
36 36
         Graphics g = panel.getGraphics();
37
-        int BOX_DIM = 10;
37
+        int BOX_DIM = 20;
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, j * BOX_DIM, 19, 19);
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.decode("#000000"));
43
+                    g.fillRect(i * BOX_DIM, j * BOX_DIM, 19, 19);
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.decode("#00b386"));
47
+                    g.fillRect(i * BOX_DIM, j * BOX_DIM, 19, 19);
48 48
                 }
49 49
             }
50 50
         }

+ 152
- 2
src/test/java/com/zipcodeconway/ConwayGameOfLifeTest.java Ver arquivo

@@ -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.*;
@@ -21,8 +22,8 @@ public class ConwayGameOfLifeTest {
21 22
                 {0, 0, 1, 0, 0},
22 23
                 {0, 0, 0, 0, 0}};
23 24
         ConwayGameOfLife sim = new ConwayGameOfLife(5, start);
24
-        int[][] results = sim.simulate(9);
25
-        assertTrue(java.util.Arrays.deepEquals(results, expected));
25
+        int[][] actual = sim.simulate(9);
26
+        Assert.assertArrayEquals(expected, actual);
26 27
     }
27 28
 
28 29
     @Test
@@ -43,4 +44,153 @@ 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 setMiniColMiddleCellTest() {
50
+        ConwayGameOfLife sim = new ConwayGameOfLife(8);
51
+        int[] expected = {2,3,4};
52
+        int[] actual = sim.setMiniCols(3,8);
53
+
54
+        Assert.assertArrayEquals(expected, actual);
55
+    }
56
+
57
+    @Test
58
+    public void setMiniColEdgeCellTest() {
59
+        ConwayGameOfLife sim = new ConwayGameOfLife(8);
60
+        int[] expected = {7,0,1};
61
+        int[] actual = sim.setMiniCols(0,8);
62
+
63
+        Assert.assertArrayEquals(expected, actual);
64
+    }
65
+
66
+    @Test
67
+    public void setMiniColEdgeCell2Test() {
68
+        ConwayGameOfLife sim = new ConwayGameOfLife(8);
69
+        int[] expected = {6,7,0};
70
+        int[] actual = sim.setMiniCols(7,8);
71
+
72
+        Assert.assertArrayEquals(expected, actual);
73
+    }
74
+
75
+    @Test
76
+    public void setMiniRowMiddleCellTest() {
77
+        ConwayGameOfLife sim = new ConwayGameOfLife(8);
78
+        int[] expected = {2,3,4};
79
+        int[] actual = sim.setMiniRows(3,8);
80
+
81
+        Assert.assertArrayEquals(expected, actual);
82
+    }
83
+
84
+    @Test
85
+    public void setMiniRowEdgeCellTest() {
86
+        ConwayGameOfLife sim = new ConwayGameOfLife(8);
87
+        int[] expected = {7,0,1};
88
+        int[] actual = sim.setMiniRows(0,8);
89
+
90
+        Assert.assertArrayEquals(expected, actual);
91
+    }
92
+
93
+    @Test
94
+    public void setMiniRowEdgeCell2Test() {
95
+        ConwayGameOfLife sim = new ConwayGameOfLife(8);
96
+        int[] expected = {6,7,0};
97
+        int[] actual = sim.setMiniRows(7,8);
98
+
99
+        Assert.assertArrayEquals(expected, actual);
100
+    }
101
+
102
+    @Test
103
+    public void createNextWorldTest() {
104
+        int[][] start = {
105
+                {0, 0, 0, 0, 0},
106
+                {0, 0, 1, 0, 0},
107
+                {0, 0, 0, 0, 0},
108
+                {0, 0, 1, 0, 0},
109
+                {0, 0, 0, 0, 0}};
110
+        int[][] expected = {
111
+                {0, 0, 0, 0, 0},
112
+                {0, 0, 0, 0, 0},
113
+                {0, 0, 0, 0, 0},
114
+                {0, 0, 0, 0, 0},
115
+                {0, 0, 0, 0, 0}};
116
+        ConwayGameOfLife sim = new ConwayGameOfLife(5, start);
117
+        int[][] results = sim.createNextWorld(5, start);
118
+        assertTrue(java.util.Arrays.deepEquals(results, expected));
119
+    }
120
+
121
+    @Test
122
+    public void createNextWorld2Test() {
123
+        int[][] start = {
124
+                {0, 0, 0, 0, 0},
125
+                {0, 0, 1, 0, 0},
126
+                {0, 0, 1, 0, 0},
127
+                {0, 0, 1, 0, 0},
128
+                {0, 0, 0, 0, 0}};
129
+        int[][] expected = {
130
+                {0, 0, 0, 0, 0},
131
+                {0, 0, 0, 0, 0},
132
+                {0, 1, 1, 1, 0},
133
+                {0, 0, 0, 0, 0},
134
+                {0, 0, 0, 0, 0}};
135
+        ConwayGameOfLife sim = new ConwayGameOfLife(5, start);
136
+        int[][] actual = sim.createNextWorld(5, start);
137
+        Assert.assertArrayEquals(expected, actual);
138
+    }
139
+
140
+    @Test
141
+    public void isAliveTest() {
142
+        int[][] start = {
143
+                {0, 0, 0, 0, 0},
144
+                {0, 0, 1, 0, 0},
145
+                {0, 0, 1, 0, 0},
146
+                {0, 0, 1, 0, 0},
147
+                {0, 0, 0, 0, 0}};
148
+        int expected = 0;
149
+        ConwayGameOfLife sim = new ConwayGameOfLife(5, start);
150
+        int actual = sim.isAlive(0, 0, start);
151
+        Assert.assertEquals(expected, actual);
152
+    }
153
+
154
+    @Test
155
+    public void isAliveTest2() {
156
+        int[][] start = {
157
+                {0, 0, 0, 0, 0},
158
+                {0, 0, 1, 0, 0},
159
+                {0, 0, 1, 0, 0},
160
+                {0, 0, 1, 0, 0},
161
+                {0, 0, 0, 0, 0}};
162
+        int expected = 2;
163
+        ConwayGameOfLife sim = new ConwayGameOfLife(5, start);
164
+        int actual = sim.isAlive(1, 3, start);
165
+        Assert.assertEquals(expected, actual);
166
+    }
167
+
168
+    @Test
169
+    public void isAliveTest3() {
170
+        int[][] start = {
171
+                {0, 0, 0, 0, 0},
172
+                {0, 0, 1, 0, 0},
173
+                {0, 0, 1, 0, 0},
174
+                {0, 0, 1, 0, 0},
175
+                {0, 0, 0, 0, 0}};
176
+        int expected = 1;
177
+        ConwayGameOfLife sim = new ConwayGameOfLife(5, start);
178
+        int actual = sim.isAlive(1, 2, start);
179
+        Assert.assertEquals(expected, actual);
180
+    }
181
+
182
+    @Test
183
+    public void isAliveTest4() {
184
+        int[][] start = {
185
+                {0, 0, 0, 0, 0},
186
+                {0, 0, 1, 0, 0},
187
+                {0, 0, 1, 0, 0},
188
+                {0, 0, 1, 0, 0},
189
+                {0, 0, 0, 0, 0}};
190
+        int expected = 3;
191
+        ConwayGameOfLife sim = new ConwayGameOfLife(5, start);
192
+        int actual = sim.isAlive(2, 3, start);
193
+        Assert.assertEquals(expected, actual);
194
+    }
195
+
46 196
 }