#4 VinceSima and DavidThornley

Open
DavidThornley wants to merge 1 commits from DavidThornley/ZCW-ConwayGameOfLife:master into master
2 changed files with 304 additions and 297 deletions
  1. 197
    290
      .idea/workspace.xml
  2. 107
    7
      src/main/java/com/zipcodeconway/ConwayGameOfLife.java

+ 197
- 290
.idea/workspace.xml View File

1
 <?xml version="1.0" encoding="UTF-8"?>
1
 <?xml version="1.0" encoding="UTF-8"?>
2
 <project version="4">
2
 <project version="4">
3
   <component name="ChangeListManager">
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
+    </list>
5
     <ignored path="$PROJECT_DIR$/target/" />
8
     <ignored path="$PROJECT_DIR$/target/" />
6
     <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
9
     <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
7
     <option name="TRACKING_ENABLED" value="true" />
10
     <option name="TRACKING_ENABLED" value="true" />
10
     <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
13
     <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
11
     <option name="LAST_RESOLUTION" value="IGNORE" />
14
     <option name="LAST_RESOLUTION" value="IGNORE" />
12
   </component>
15
   </component>
16
+  <component name="DatabaseView">
17
+    <option name="SHOW_INTERMEDIATE" value="true" />
18
+    <option name="GROUP_DATA_SOURCES" value="true" />
19
+    <option name="GROUP_SCHEMA" value="true" />
20
+    <option name="GROUP_CONTENTS" value="false" />
21
+    <option name="SORT_POSITIONED" value="false" />
22
+    <option name="SHOW_EMPTY_GROUPS" value="false" />
23
+    <option name="AUTO_SCROLL_FROM_SOURCE" value="false" />
24
+    <option name="HIDDEN_KINDS">
25
+      <set />
26
+    </option>
27
+    <expand />
28
+    <select />
29
+  </component>
13
   <component name="FileEditorManager">
30
   <component name="FileEditorManager">
14
-    <leaf>
31
+    <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
15
       <file leaf-file-name="SimpleWindow.java" pinned="false" current-in-tab="false">
32
       <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">
33
         <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodeconway/SimpleWindow.java">
17
           <provider selected="true" editor-type-id="text-editor">
34
           <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" />
35
+            <state relative-caret-position="-176">
36
+              <caret line="17" column="42" selection-start-line="17" selection-start-column="42" selection-end-line="17" selection-end-column="42" />
20
               <folding>
37
               <folding>
21
                 <element signature="imports" expanded="true" />
38
                 <element signature="imports" expanded="true" />
22
               </folding>
39
               </folding>
24
           </provider>
41
           </provider>
25
         </entry>
42
         </entry>
26
       </file>
43
       </file>
27
-      <file leaf-file-name="ConwayGameOfLife.java" pinned="false" current-in-tab="false">
44
+      <file leaf-file-name="ConwayGameOfLife.java" pinned="false" current-in-tab="true">
28
         <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodeconway/ConwayGameOfLife.java">
45
         <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodeconway/ConwayGameOfLife.java">
29
           <provider selected="true" editor-type-id="text-editor">
46
           <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>
47
+            <state relative-caret-position="-105">
48
+              <caret line="29" column="52" lean-forward="true" selection-start-line="29" selection-start-column="52" selection-end-line="29" selection-end-column="52" />
39
             </state>
49
             </state>
40
           </provider>
50
           </provider>
41
         </entry>
51
         </entry>
42
       </file>
52
       </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">
53
+      <file leaf-file-name="ConwayGameOfLifeTest.java" pinned="false" current-in-tab="false">
80
         <entry file="file://$PROJECT_DIR$/src/test/java/com/zipcodeconway/ConwayGameOfLifeTest.java">
54
         <entry file="file://$PROJECT_DIR$/src/test/java/com/zipcodeconway/ConwayGameOfLifeTest.java">
81
           <provider selected="true" editor-type-id="text-editor">
55
           <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 />
56
+            <state relative-caret-position="130">
57
+              <caret line="23" column="22" selection-start-line="23" selection-start-column="7" selection-end-line="23" selection-end-column="22" />
85
             </state>
58
             </state>
86
           </provider>
59
           </provider>
87
         </entry>
60
         </entry>
109
   <component name="Git.Settings">
82
   <component name="Git.Settings">
110
     <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
83
     <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
111
   </component>
84
   </component>
112
-  <component name="GradleLocalSettings">
113
-    <option name="externalProjectsViewState">
114
-      <projects_view />
115
-    </option>
116
-  </component>
117
   <component name="IdeDocumentHistory">
85
   <component name="IdeDocumentHistory">
118
     <option name="CHANGED_PATHS">
86
     <option name="CHANGED_PATHS">
119
       <list>
87
       <list>
125
         <option value="$PROJECT_DIR$/src/main/java/SimpleWindow.java" />
93
         <option value="$PROJECT_DIR$/src/main/java/SimpleWindow.java" />
126
         <option value="$PROJECT_DIR$/src/main/java/ConwayGameOfLife.java" />
94
         <option value="$PROJECT_DIR$/src/main/java/ConwayGameOfLife.java" />
127
         <option value="$PROJECT_DIR$/src/main/java/Life.java" />
95
         <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" />
96
         <option value="$PROJECT_DIR$/src/main/java/com/zipcodeconway/SimpleWindow.java" />
130
         <option value="$PROJECT_DIR$/src/main/java/com/zipcodeconway/README.md" />
97
         <option value="$PROJECT_DIR$/src/main/java/com/zipcodeconway/README.md" />
98
+        <option value="$PROJECT_DIR$/src/test/java/com/zipcodeconway/ConwayGameOfLifeTest.java" />
131
         <option value="$PROJECT_DIR$/src/main/java/com/zipcodeconway/ConwayGameOfLife.java" />
99
         <option value="$PROJECT_DIR$/src/main/java/com/zipcodeconway/ConwayGameOfLife.java" />
132
       </list>
100
       </list>
133
     </option>
101
     </option>
138
     <detection-done>true</detection-done>
106
     <detection-done>true</detection-done>
139
     <sorting>DEFINITION_ORDER</sorting>
107
     <sorting>DEFINITION_ORDER</sorting>
140
   </component>
108
   </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" />
109
+  <component name="MavenImportPreferences">
110
+    <option name="importingSettings">
111
+      <MavenImportingSettings>
112
+        <option name="importAutomatically" value="true" />
113
+      </MavenImportingSettings>
114
+    </option>
115
+  </component>
116
+  <component name="NodePackageJsonFileManager">
117
+    <packageJsonPaths />
118
+  </component>
119
+  <component name="ProjectFrameBounds" extendedState="6" fullScreen="true">
120
+    <option name="width" value="1280" />
121
+    <option name="height" value="777" />
146
   </component>
122
   </component>
147
   <component name="ProjectView">
123
   <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 />
124
+    <navigator proportions="" version="1">
159
       <foldersAlwaysOnTop value="true" />
125
       <foldersAlwaysOnTop value="true" />
160
     </navigator>
126
     </navigator>
161
     <panes>
127
     <panes>
128
+      <pane id="Scope" />
129
+      <pane id="AndroidView" />
162
       <pane id="ProjectPane">
130
       <pane id="ProjectPane">
163
         <subPane>
131
         <subPane>
164
           <expand>
132
           <expand>
165
             <path>
133
             <path>
166
-              <item name="Game-Of-Life-Java" type="b2602c69:ProjectViewProjectNode" />
167
-              <item name="Game-Of-Life-Java" type="462c0819:PsiDirectoryNode" />
134
+              <item name="ZCW-ConwayGameOfLife" type="b2602c69:ProjectViewProjectNode" />
135
+              <item name="ZCW-ConwayGameOfLife" type="462c0819:PsiDirectoryNode" />
168
             </path>
136
             </path>
169
             <path>
137
             <path>
170
-              <item name="Game-Of-Life-Java" type="b2602c69:ProjectViewProjectNode" />
171
-              <item name="Game-Of-Life-Java" type="462c0819:PsiDirectoryNode" />
138
+              <item name="ZCW-ConwayGameOfLife" type="b2602c69:ProjectViewProjectNode" />
139
+              <item name="ZCW-ConwayGameOfLife" type="462c0819:PsiDirectoryNode" />
172
               <item name="src" type="462c0819:PsiDirectoryNode" />
140
               <item name="src" type="462c0819:PsiDirectoryNode" />
173
             </path>
141
             </path>
174
             <path>
142
             <path>
175
-              <item name="Game-Of-Life-Java" type="b2602c69:ProjectViewProjectNode" />
176
-              <item name="Game-Of-Life-Java" type="462c0819:PsiDirectoryNode" />
143
+              <item name="ZCW-ConwayGameOfLife" type="b2602c69:ProjectViewProjectNode" />
144
+              <item name="ZCW-ConwayGameOfLife" type="462c0819:PsiDirectoryNode" />
177
               <item name="src" type="462c0819:PsiDirectoryNode" />
145
               <item name="src" type="462c0819:PsiDirectoryNode" />
178
               <item name="main" type="462c0819:PsiDirectoryNode" />
146
               <item name="main" type="462c0819:PsiDirectoryNode" />
179
             </path>
147
             </path>
180
             <path>
148
             <path>
181
-              <item name="Game-Of-Life-Java" type="b2602c69:ProjectViewProjectNode" />
182
-              <item name="Game-Of-Life-Java" type="462c0819:PsiDirectoryNode" />
149
+              <item name="ZCW-ConwayGameOfLife" type="b2602c69:ProjectViewProjectNode" />
150
+              <item name="ZCW-ConwayGameOfLife" type="462c0819:PsiDirectoryNode" />
183
               <item name="src" type="462c0819:PsiDirectoryNode" />
151
               <item name="src" type="462c0819:PsiDirectoryNode" />
184
               <item name="main" type="462c0819:PsiDirectoryNode" />
152
               <item name="main" type="462c0819:PsiDirectoryNode" />
185
               <item name="java" type="462c0819:PsiDirectoryNode" />
153
               <item name="java" type="462c0819:PsiDirectoryNode" />
186
             </path>
154
             </path>
187
             <path>
155
             <path>
188
-              <item name="Game-Of-Life-Java" type="b2602c69:ProjectViewProjectNode" />
189
-              <item name="Game-Of-Life-Java" type="462c0819:PsiDirectoryNode" />
156
+              <item name="ZCW-ConwayGameOfLife" type="b2602c69:ProjectViewProjectNode" />
157
+              <item name="ZCW-ConwayGameOfLife" type="462c0819:PsiDirectoryNode" />
190
               <item name="src" type="462c0819:PsiDirectoryNode" />
158
               <item name="src" type="462c0819:PsiDirectoryNode" />
191
               <item name="main" type="462c0819:PsiDirectoryNode" />
159
               <item name="main" type="462c0819:PsiDirectoryNode" />
192
               <item name="java" type="462c0819:PsiDirectoryNode" />
160
               <item name="java" type="462c0819:PsiDirectoryNode" />
193
               <item name="zipcodeconway" type="462c0819:PsiDirectoryNode" />
161
               <item name="zipcodeconway" type="462c0819:PsiDirectoryNode" />
194
             </path>
162
             </path>
195
             <path>
163
             <path>
196
-              <item name="Game-Of-Life-Java" type="b2602c69:ProjectViewProjectNode" />
197
-              <item name="Game-Of-Life-Java" type="462c0819:PsiDirectoryNode" />
164
+              <item name="ZCW-ConwayGameOfLife" type="b2602c69:ProjectViewProjectNode" />
165
+              <item name="ZCW-ConwayGameOfLife" type="462c0819:PsiDirectoryNode" />
198
               <item name="src" type="462c0819:PsiDirectoryNode" />
166
               <item name="src" type="462c0819:PsiDirectoryNode" />
199
               <item name="test" type="462c0819:PsiDirectoryNode" />
167
               <item name="test" type="462c0819:PsiDirectoryNode" />
200
             </path>
168
             </path>
201
             <path>
169
             <path>
202
-              <item name="Game-Of-Life-Java" type="b2602c69:ProjectViewProjectNode" />
203
-              <item name="Game-Of-Life-Java" type="462c0819:PsiDirectoryNode" />
170
+              <item name="ZCW-ConwayGameOfLife" type="b2602c69:ProjectViewProjectNode" />
171
+              <item name="ZCW-ConwayGameOfLife" type="462c0819:PsiDirectoryNode" />
204
               <item name="src" type="462c0819:PsiDirectoryNode" />
172
               <item name="src" type="462c0819:PsiDirectoryNode" />
205
               <item name="test" type="462c0819:PsiDirectoryNode" />
173
               <item name="test" type="462c0819:PsiDirectoryNode" />
206
               <item name="java" type="462c0819:PsiDirectoryNode" />
174
               <item name="java" type="462c0819:PsiDirectoryNode" />
207
             </path>
175
             </path>
208
             <path>
176
             <path>
209
-              <item name="Game-Of-Life-Java" type="b2602c69:ProjectViewProjectNode" />
210
-              <item name="Game-Of-Life-Java" type="462c0819:PsiDirectoryNode" />
177
+              <item name="ZCW-ConwayGameOfLife" type="b2602c69:ProjectViewProjectNode" />
178
+              <item name="ZCW-ConwayGameOfLife" type="462c0819:PsiDirectoryNode" />
211
               <item name="src" type="462c0819:PsiDirectoryNode" />
179
               <item name="src" type="462c0819:PsiDirectoryNode" />
212
               <item name="test" type="462c0819:PsiDirectoryNode" />
180
               <item name="test" type="462c0819:PsiDirectoryNode" />
213
               <item name="java" type="462c0819:PsiDirectoryNode" />
181
               <item name="java" type="462c0819:PsiDirectoryNode" />
218
         </subPane>
186
         </subPane>
219
       </pane>
187
       </pane>
220
       <pane id="PackagesPane" />
188
       <pane id="PackagesPane" />
221
-      <pane id="AndroidView" />
222
-      <pane id="Scratches" />
223
-      <pane id="Scope" />
224
     </panes>
189
     </panes>
225
   </component>
190
   </component>
226
   <component name="PropertiesComponent">
191
   <component name="PropertiesComponent">
227
-    <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
228
     <property name="WebServerToolWindowFactoryState" value="false" />
192
     <property name="WebServerToolWindowFactoryState" value="false" />
229
     <property name="aspect.path.notification.shown" value="true" />
193
     <property name="aspect.path.notification.shown" value="true" />
194
+    <property name="com.intellij.testIntegration.createTest.CreateTestDialog.defaultLibrary" value="JUnit4" />
230
     <property name="last_opened_file_path" value="$PROJECT_DIR$" />
195
     <property name="last_opened_file_path" value="$PROJECT_DIR$" />
231
-    <property name="settings.editor.selected.configurable" value="preferences.lookFeel" />
196
+    <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
232
     <property name="project.structure.last.edited" value="Modules" />
197
     <property name="project.structure.last.edited" value="Modules" />
233
     <property name="project.structure.proportion" value="0.15" />
198
     <property name="project.structure.proportion" value="0.15" />
234
     <property name="project.structure.side.proportion" value="0.2" />
199
     <property name="project.structure.side.proportion" value="0.2" />
235
-    <property name="com.intellij.testIntegration.createTest.CreateTestDialog.defaultLibrary" value="JUnit4" />
200
+    <property name="settings.editor.selected.configurable" value="preferences.lookFeel" />
236
   </component>
201
   </component>
237
   <component name="RecentsManager">
202
   <component name="RecentsManager">
238
     <key name="CreateTestDialog.RecentsKey">
203
     <key name="CreateTestDialog.RecentsKey">
260
       </list>
225
       </list>
261
     </option>
226
     </option>
262
   </component>
227
   </component>
263
-  <component name="RunManager" selected="JUnit.ConwayGameOfLifeTest">
228
+  <component name="RunManager" selected="Application.ConwayGameOfLife">
264
     <configuration default="true" type="Applet" factoryName="Applet">
229
     <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
       <option name="POLICY_FILE" value="$APPLICATION_HOME_DIR$/bin/appletviewer.policy" />
230
       <option name="POLICY_FILE" value="$APPLICATION_HOME_DIR$/bin/appletviewer.policy" />
269
-      <module />
270
     </configuration>
231
     </configuration>
271
     <configuration name="ConwayGameOfLife" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
232
     <configuration name="ConwayGameOfLife" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
272
-      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea">
233
+      <option name="MAIN_CLASS_NAME" value="com.zipcodeconway.ConwayGameOfLife" />
234
+      <module name="Game-Of-Life-Java" />
235
+      <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
236
+      <extension name="coverage">
273
         <pattern>
237
         <pattern>
274
           <option name="PATTERN" value="com.zipcodeconway.*" />
238
           <option name="PATTERN" value="com.zipcodeconway.*" />
275
           <option name="ENABLED" value="true" />
239
           <option name="ENABLED" value="true" />
276
         </pattern>
240
         </pattern>
277
       </extension>
241
       </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 />
303
     </configuration>
242
     </configuration>
304
     <configuration default="true" type="Application" factoryName="Application">
243
     <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$" />
244
       <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 />
317
     </configuration>
245
     </configuration>
318
     <configuration name="ConwayGameOfLifeTest" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
246
     <configuration name="ConwayGameOfLifeTest" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
319
-      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea">
247
+      <module name="Game-Of-Life-Java" />
248
+      <extension name="coverage">
320
         <pattern>
249
         <pattern>
321
           <option name="PATTERN" value="com.zipcodeconway.*" />
250
           <option name="PATTERN" value="com.zipcodeconway.*" />
322
           <option name="ENABLED" value="true" />
251
           <option name="ENABLED" value="true" />
323
         </pattern>
252
         </pattern>
324
       </extension>
253
       </extension>
325
-      <module name="Game-Of-Life-Java" />
326
       <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
254
       <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
327
       <option name="ALTERNATIVE_JRE_PATH" />
255
       <option name="ALTERNATIVE_JRE_PATH" />
328
       <option name="PACKAGE_NAME" value="com.zipcodeconway" />
256
       <option name="PACKAGE_NAME" value="com.zipcodeconway" />
332
       <option name="VM_PARAMETERS" value="-ea" />
260
       <option name="VM_PARAMETERS" value="-ea" />
333
       <option name="PARAMETERS" />
261
       <option name="PARAMETERS" />
334
       <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
262
       <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
335
-      <option name="ENV_VARIABLES" />
336
       <option name="PASS_PARENT_ENVS" value="true" />
263
       <option name="PASS_PARENT_ENVS" value="true" />
337
       <option name="TEST_SEARCH_SCOPE">
264
       <option name="TEST_SEARCH_SCOPE">
338
         <value defaultName="singleModule" />
265
         <value defaultName="singleModule" />
339
       </option>
266
       </option>
340
-      <envs />
341
       <patterns />
267
       <patterns />
342
     </configuration>
268
     </configuration>
343
     <configuration name="ConwayGameOfLifeTest.runTest" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
269
     <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">
270
+      <module name="Game-Of-Life-Java" />
271
+      <extension name="coverage">
345
         <pattern>
272
         <pattern>
346
           <option name="PATTERN" value="com.zipcodeconway.*" />
273
           <option name="PATTERN" value="com.zipcodeconway.*" />
347
           <option name="ENABLED" value="true" />
274
           <option name="ENABLED" value="true" />
348
         </pattern>
275
         </pattern>
349
       </extension>
276
       </extension>
350
-      <module name="Game-Of-Life-Java" />
351
       <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
277
       <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
352
       <option name="ALTERNATIVE_JRE_PATH" />
278
       <option name="ALTERNATIVE_JRE_PATH" />
353
       <option name="PACKAGE_NAME" value="com.zipcodeconway" />
279
       <option name="PACKAGE_NAME" value="com.zipcodeconway" />
357
       <option name="VM_PARAMETERS" value="-ea" />
283
       <option name="VM_PARAMETERS" value="-ea" />
358
       <option name="PARAMETERS" />
284
       <option name="PARAMETERS" />
359
       <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
285
       <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
360
-      <option name="ENV_VARIABLES" />
361
       <option name="PASS_PARENT_ENVS" value="true" />
286
       <option name="PASS_PARENT_ENVS" value="true" />
362
       <option name="TEST_SEARCH_SCOPE">
287
       <option name="TEST_SEARCH_SCOPE">
363
         <value defaultName="singleModule" />
288
         <value defaultName="singleModule" />
364
       </option>
289
       </option>
365
-      <envs />
366
       <patterns />
290
       <patterns />
367
     </configuration>
291
     </configuration>
368
-    <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">
292
+    <configuration name="ConwayGameOfLifeTest.runTest1" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
293
+      <module name="Game-Of-Life-Java" />
294
+      <extension name="coverage">
370
         <pattern>
295
         <pattern>
371
           <option name="PATTERN" value="com.zipcodeconway.*" />
296
           <option name="PATTERN" value="com.zipcodeconway.*" />
372
           <option name="ENABLED" value="true" />
297
           <option name="ENABLED" value="true" />
373
         </pattern>
298
         </pattern>
374
       </extension>
299
       </extension>
300
+      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
301
+      <option name="ALTERNATIVE_JRE_PATH" />
302
+      <option name="PACKAGE_NAME" value="com.zipcodeconway" />
303
+      <option name="MAIN_CLASS_NAME" value="com.zipcodeconway.ConwayGameOfLifeTest" />
304
+      <option name="METHOD_NAME" value="runTest1" />
305
+      <option name="TEST_OBJECT" value="method" />
306
+      <option name="VM_PARAMETERS" value="-ea" />
307
+      <option name="PARAMETERS" />
308
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
309
+      <option name="PASS_PARENT_ENVS" value="true" />
310
+      <option name="TEST_SEARCH_SCOPE">
311
+        <value defaultName="singleModule" />
312
+      </option>
313
+      <patterns />
314
+    </configuration>
315
+    <configuration name="ConwayGameOfLifeTest.runTest2" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
375
       <module name="Game-Of-Life-Java" />
316
       <module name="Game-Of-Life-Java" />
317
+      <extension name="coverage">
318
+        <pattern>
319
+          <option name="PATTERN" value="com.zipcodeconway.*" />
320
+          <option name="ENABLED" value="true" />
321
+        </pattern>
322
+      </extension>
376
       <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
323
       <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
377
       <option name="ALTERNATIVE_JRE_PATH" />
324
       <option name="ALTERNATIVE_JRE_PATH" />
378
       <option name="PACKAGE_NAME" value="com.zipcodeconway" />
325
       <option name="PACKAGE_NAME" value="com.zipcodeconway" />
382
       <option name="VM_PARAMETERS" value="-ea" />
329
       <option name="VM_PARAMETERS" value="-ea" />
383
       <option name="PARAMETERS" />
330
       <option name="PARAMETERS" />
384
       <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
331
       <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
385
-      <option name="ENV_VARIABLES" />
386
       <option name="PASS_PARENT_ENVS" value="true" />
332
       <option name="PASS_PARENT_ENVS" value="true" />
387
       <option name="TEST_SEARCH_SCOPE">
333
       <option name="TEST_SEARCH_SCOPE">
388
         <value defaultName="singleModule" />
334
         <value defaultName="singleModule" />
389
       </option>
335
       </option>
390
-      <envs />
391
       <patterns />
336
       <patterns />
392
     </configuration>
337
     </configuration>
393
     <configuration default="true" type="JUnit" factoryName="JUnit">
338
     <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" />
339
       <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
397
       <option name="ALTERNATIVE_JRE_PATH" />
340
       <option name="ALTERNATIVE_JRE_PATH" />
398
       <option name="PACKAGE_NAME" />
341
       <option name="PACKAGE_NAME" />
402
       <option name="VM_PARAMETERS" value="-ea" />
345
       <option name="VM_PARAMETERS" value="-ea" />
403
       <option name="PARAMETERS" />
346
       <option name="PARAMETERS" />
404
       <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
347
       <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
405
-      <option name="ENV_VARIABLES" />
406
       <option name="PASS_PARENT_ENVS" value="true" />
348
       <option name="PASS_PARENT_ENVS" value="true" />
407
       <option name="TEST_SEARCH_SCOPE">
349
       <option name="TEST_SEARCH_SCOPE">
408
         <value defaultName="singleModule" />
350
         <value defaultName="singleModule" />
409
       </option>
351
       </option>
410
-      <envs />
411
       <patterns />
352
       <patterns />
412
     </configuration>
353
     </configuration>
413
     <configuration name="ConwayLife" type="MavenRunConfiguration" factoryName="Maven">
354
     <configuration name="ConwayLife" type="MavenRunConfiguration" factoryName="Maven">
422
             <option name="goals">
363
             <option name="goals">
423
               <list />
364
               <list />
424
             </option>
365
             </option>
366
+            <option name="pomFileName" />
425
             <option name="profilesMap">
367
             <option name="profilesMap">
426
               <map />
368
               <map />
427
             </option>
369
             </option>
431
         </option>
373
         </option>
432
       </MavenSettings>
374
       </MavenSettings>
433
     </configuration>
375
     </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" />
440
-    </configuration>
441
     <configuration default="true" type="TestNG" factoryName="TestNG">
376
     <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" />
377
       <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
445
       <option name="ALTERNATIVE_JRE_PATH" />
378
       <option name="ALTERNATIVE_JRE_PATH" />
446
       <option name="SUITE_NAME" />
379
       <option name="SUITE_NAME" />
453
       <option name="PARAMETERS" />
386
       <option name="PARAMETERS" />
454
       <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
387
       <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
455
       <option name="OUTPUT_DIRECTORY" />
388
       <option name="OUTPUT_DIRECTORY" />
456
-      <option name="ANNOTATION_TYPE" />
457
-      <option name="ENV_VARIABLES" />
458
       <option name="PASS_PARENT_ENVS" value="true" />
389
       <option name="PASS_PARENT_ENVS" value="true" />
459
       <option name="TEST_SEARCH_SCOPE">
390
       <option name="TEST_SEARCH_SCOPE">
460
         <value defaultName="singleModule" />
391
         <value defaultName="singleModule" />
461
       </option>
392
       </option>
462
       <option name="USE_DEFAULT_REPORTERS" value="false" />
393
       <option name="USE_DEFAULT_REPORTERS" value="false" />
463
       <option name="PROPERTIES_FILE" />
394
       <option name="PROPERTIES_FILE" />
464
-      <envs />
465
       <properties />
395
       <properties />
466
       <listeners />
396
       <listeners />
467
     </configuration>
397
     </configuration>
468
-    <configuration default="true" type="#org.jetbrains.idea.devkit.run.PluginConfigurationType" factoryName="Plugin">
469
-      <module name="" />
470
-      <option name="VM_PARAMETERS" value="-Xmx512m -Xms256m -XX:MaxPermSize=250m -ea" />
471
-      <option name="PROGRAM_PARAMETERS" />
472
-      <predefined_log_file id="idea.log" enabled="true" />
473
-    </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" />
398
+    <list>
399
+      <item itemvalue="Maven.ConwayLife" />
400
+      <item itemvalue="Application.ConwayGameOfLife" />
401
+      <item itemvalue="JUnit.ConwayGameOfLifeTest.runTest" />
402
+      <item itemvalue="JUnit.ConwayGameOfLifeTest.runTest2" />
403
+      <item itemvalue="JUnit.ConwayGameOfLifeTest" />
404
+      <item itemvalue="JUnit.ConwayGameOfLifeTest.runTest1" />
481
     </list>
405
     </list>
482
     <recent_temporary>
406
     <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" />
407
+      <list>
408
+        <item itemvalue="Application.ConwayGameOfLife" />
409
+        <item itemvalue="JUnit.ConwayGameOfLifeTest" />
410
+        <item itemvalue="JUnit.ConwayGameOfLifeTest.runTest1" />
411
+        <item itemvalue="JUnit.ConwayGameOfLifeTest.runTest2" />
412
+        <item itemvalue="JUnit.ConwayGameOfLifeTest.runTest" />
489
       </list>
413
       </list>
490
     </recent_temporary>
414
     </recent_temporary>
491
   </component>
415
   </component>
492
-  <component name="ShelveChangesManager" show_recycled="false">
493
-    <option name="remove_strategy" value="false" />
494
-  </component>
495
   <component name="SvnConfiguration">
416
   <component name="SvnConfiguration">
496
     <configuration />
417
     <configuration />
497
   </component>
418
   </component>
503
       <option name="presentableId" value="Default" />
424
       <option name="presentableId" value="Default" />
504
       <updated>1519668901598</updated>
425
       <updated>1519668901598</updated>
505
       <workItem from="1519668902904" duration="14517000" />
426
       <workItem from="1519668902904" duration="14517000" />
427
+      <workItem from="1529669432082" duration="20487000" />
506
     </task>
428
     </task>
507
     <servers />
429
     <servers />
508
   </component>
430
   </component>
509
   <component name="TestHistory">
431
   <component name="TestHistory">
510
-    <history-entry file="ConwayGameOfLifeTest - 2018.02.26 at 15h 45m 01s.xml">
432
+    <history-entry file="ConwayGameOfLifeTest - 2018.06.24 at 18h 55m 39s.xml">
511
       <configuration name="ConwayGameOfLifeTest" configurationId="JUnit" />
433
       <configuration name="ConwayGameOfLifeTest" configurationId="JUnit" />
512
     </history-entry>
434
     </history-entry>
513
-    <history-entry file="ConwayGameOfLifeTest - 2018.02.26 at 15h 59m 00s.xml">
435
+    <history-entry file="ConwayGameOfLifeTest - 2018.06.25 at 08h 58m 42s.xml">
514
       <configuration name="ConwayGameOfLifeTest" configurationId="JUnit" />
436
       <configuration name="ConwayGameOfLifeTest" configurationId="JUnit" />
515
     </history-entry>
437
     </history-entry>
516
-    <history-entry file="ConwayGameOfLifeTest - 2018.02.26 at 16h 02m 03s.xml">
438
+    <history-entry file="ConwayGameOfLifeTest - 2018.06.25 at 09h 01m 35s.xml">
517
       <configuration name="ConwayGameOfLifeTest" configurationId="JUnit" />
439
       <configuration name="ConwayGameOfLifeTest" configurationId="JUnit" />
518
     </history-entry>
440
     </history-entry>
519
-    <history-entry file="ConwayGameOfLifeTest - 2018.02.26 at 16h 03m 01s.xml">
441
+    <history-entry file="ConwayGameOfLifeTest - 2018.06.25 at 09h 56m 55s.xml">
520
       <configuration name="ConwayGameOfLifeTest" configurationId="JUnit" />
442
       <configuration name="ConwayGameOfLifeTest" configurationId="JUnit" />
521
     </history-entry>
443
     </history-entry>
522
-    <history-entry file="ConwayGameOfLifeTest - 2018.02.26 at 16h 05m 07s.xml">
444
+    <history-entry file="ConwayGameOfLifeTest_runTest1 - 2018.06.25 at 09h 57m 14s.xml">
445
+      <configuration name="ConwayGameOfLifeTest.runTest1" configurationId="JUnit" />
446
+    </history-entry>
447
+    <history-entry file="ConwayGameOfLifeTest - 2018.06.25 at 13h 37m 06s.xml">
523
       <configuration name="ConwayGameOfLifeTest" configurationId="JUnit" />
448
       <configuration name="ConwayGameOfLifeTest" configurationId="JUnit" />
524
     </history-entry>
449
     </history-entry>
525
-    <history-entry file="ConwayGameOfLifeTest - 2018.02.26 at 16h 06m 11s.xml">
450
+    <history-entry file="ConwayGameOfLifeTest - 2018.06.25 at 13h 37m 33s.xml">
526
       <configuration name="ConwayGameOfLifeTest" configurationId="JUnit" />
451
       <configuration name="ConwayGameOfLifeTest" configurationId="JUnit" />
527
     </history-entry>
452
     </history-entry>
528
-    <history-entry file="ConwayGameOfLifeTest_runTest - 2018.02.26 at 15h 41m 14s.xml">
529
-      <configuration name="ConwayGameOfLifeTest.runTest" configurationId="JUnit" />
453
+    <history-entry file="ConwayGameOfLifeTest - 2018.06.25 at 13h 53m 30s.xml">
454
+      <configuration name="ConwayGameOfLifeTest" configurationId="JUnit" />
530
     </history-entry>
455
     </history-entry>
531
-    <history-entry file="ConwayGameOfLifeTest_runTest2 - 2018.02.26 at 15h 42m 02s.xml">
532
-      <configuration name="ConwayGameOfLifeTest.runTest2" configurationId="JUnit" />
456
+    <history-entry file="ConwayGameOfLifeTest - 2018.06.25 at 13h 54m 24s.xml">
457
+      <configuration name="ConwayGameOfLifeTest" configurationId="JUnit" />
533
     </history-entry>
458
     </history-entry>
534
-    <history-entry file="ConwayGameOfLifeTest_runTest2 - 2018.02.26 at 15h 42m 18s.xml">
535
-      <configuration name="ConwayGameOfLifeTest.runTest2" configurationId="JUnit" />
459
+    <history-entry file="ConwayGameOfLifeTest - 2018.06.25 at 13h 56m 51s.xml">
460
+      <configuration name="ConwayGameOfLifeTest" configurationId="JUnit" />
536
     </history-entry>
461
     </history-entry>
537
   </component>
462
   </component>
538
   <component name="TimeTrackingManager">
463
   <component name="TimeTrackingManager">
539
-    <option name="totallyTimeSpent" value="14517000" />
464
+    <option name="totallyTimeSpent" value="35004000" />
540
   </component>
465
   </component>
541
   <component name="ToolWindowManager">
466
   <component name="ToolWindowManager">
542
-    <frame x="82" y="32" width="1440" height="821" extended-state="0" />
543
-    <editor active="true" />
467
+    <frame x="0" y="0" width="1280" height="800" extended-state="6" />
544
     <layout>
468
     <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" />
469
+      <window_info anchor="right" id="Palette" order="3" />
470
+      <window_info anchor="bottom" id="TODO" order="6" />
471
+      <window_info anchor="bottom" id="Messages" order="7" weight="0.4537931" />
472
+      <window_info anchor="right" id="Palette&#9;" order="3" />
473
+      <window_info id="Image Layers" order="2" />
474
+      <window_info anchor="right" id="Capture Analysis" order="3" />
475
+      <window_info anchor="bottom" id="Event Log" order="7" side_tool="true" />
476
+      <window_info anchor="right" id="Maven Projects" order="3" />
477
+      <window_info anchor="bottom" id="Database Changes" show_stripe_button="false" />
478
+      <window_info anchor="bottom" id="Run" order="2" weight="0.21241379" />
479
+      <window_info anchor="bottom" id="Version Control" order="7" />
480
+      <window_info anchor="bottom" id="Terminal" order="7" weight="0.32970026" />
481
+      <window_info id="Capture Tool" order="2" />
482
+      <window_info id="Designer" order="2" />
483
+      <window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.25" />
484
+      <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
485
+      <window_info anchor="right" id="Database" order="3" weight="0.3296875" />
486
+      <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
487
+      <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
488
+      <window_info id="UI Designer" order="2" />
489
+      <window_info anchor="right" id="Theme Preview" order="3" />
490
+      <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
491
+      <window_info id="Favorites" order="2" side_tool="true" />
492
+      <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
493
+      <window_info anchor="right" id="Commander" order="0" weight="0.4" />
494
+      <window_info anchor="bottom" id="Message" order="0" />
495
+      <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
496
+      <window_info anchor="bottom" id="Find" order="1" />
572
     </layout>
497
     </layout>
573
   </component>
498
   </component>
574
   <component name="TypeScriptGeneratedFilesManager">
499
   <component name="TypeScriptGeneratedFilesManager">
579
   </component>
504
   </component>
580
   <component name="XDebuggerManager">
505
   <component name="XDebuggerManager">
581
     <breakpoint-manager>
506
     <breakpoint-manager>
582
-      <option name="time" value="2" />
507
+      <option name="time" value="15" />
583
     </breakpoint-manager>
508
     </breakpoint-manager>
584
-    <watches-manager />
585
   </component>
509
   </component>
586
   <component name="editorHistoryManager">
510
   <component name="editorHistoryManager">
587
-    <entry file="file://$PROJECT_DIR$/pom.xml">
511
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodeconway/SimpleWindow.java">
588
       <provider selected="true" editor-type-id="text-editor">
512
       <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" />
591
-          <folding />
513
+        <state relative-caret-position="240">
514
+          <caret line="17" column="42" selection-start-line="17" selection-start-column="42" selection-end-line="17" selection-end-column="42" />
515
+          <folding>
516
+            <element signature="imports" expanded="true" />
517
+          </folding>
592
         </state>
518
         </state>
593
       </provider>
519
       </provider>
594
     </entry>
520
     </entry>
595
-    <entry file="file://$PROJECT_DIR$/src/main/java/LifeStarts.java">
521
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodeconway/ConwayGameOfLife.java">
596
       <provider selected="true" editor-type-id="text-editor">
522
       <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 />
523
+        <state relative-caret-position="300">
524
+          <caret line="20" selection-start-line="20" selection-end-line="20" />
600
         </state>
525
         </state>
601
       </provider>
526
       </provider>
602
     </entry>
527
     </entry>
603
-    <entry file="file://$PROJECT_DIR$/src/main/java/Life.java">
528
+    <entry file="file://$PROJECT_DIR$/src/test/java/com/zipcodeconway/ConwayGameOfLifeTest.java">
604
       <provider selected="true" editor-type-id="text-editor">
529
       <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 />
530
+        <state relative-caret-position="450">
531
+          <caret line="32" column="32" selection-start-line="32" selection-start-column="32" selection-end-line="32" selection-end-column="32" />
608
         </state>
532
         </state>
609
       </provider>
533
       </provider>
610
     </entry>
534
     </entry>
535
+    <entry file="file://$PROJECT_DIR$/pom.xml">
536
+      <provider selected="true" editor-type-id="text-editor">
537
+        <state relative-caret-position="187">
538
+          <caret line="11" column="10" selection-start-line="11" selection-start-column="10" selection-end-line="11" selection-end-column="10" />
539
+        </state>
540
+      </provider>
541
+    </entry>
542
+    <entry file="file://$PROJECT_DIR$/src/main/java/LifeStarts.java" />
543
+    <entry file="file://$PROJECT_DIR$/src/main/java/Life.java" />
611
     <entry file="uml://JAVA/com.zipcodeconway.ConwayGameOfLife">
544
     <entry file="uml://JAVA/com.zipcodeconway.ConwayGameOfLife">
612
       <provider selected="true" editor-type-id="UmlEditorProvider">
545
       <provider selected="true" editor-type-id="UmlEditorProvider">
613
         <state>
546
         <state>
629
         </state>
562
         </state>
630
       </provider>
563
       </provider>
631
     </entry>
564
     </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 />
640
-        </state>
641
-      </provider>
642
-    </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">
654
-      <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 />
658
-        </state>
659
-      </provider>
660
-    </entry>
565
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodeconway/README.md" />
566
+    <entry file="file://$USER_HOME$/Downloads/ConwayLifeRandomat50.png" />
567
+    <entry file="file://$USER_HOME$/Documents/gitea/gitea/custom/public/img/ConwayLifeUML.png" />
568
+    <entry file="file://$PROJECT_DIR$/src/main/java/GameofLife.java" />
661
     <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodeconway/SimpleWindow.java">
569
     <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodeconway/SimpleWindow.java">
662
       <provider selected="true" editor-type-id="text-editor">
570
       <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" />
571
+        <state relative-caret-position="-176">
572
+          <caret line="17" column="42" selection-start-line="17" selection-start-column="42" selection-end-line="17" selection-end-column="42" />
665
           <folding>
573
           <folding>
666
             <element signature="imports" expanded="true" />
574
             <element signature="imports" expanded="true" />
667
           </folding>
575
           </folding>
668
         </state>
576
         </state>
669
       </provider>
577
       </provider>
670
     </entry>
578
     </entry>
671
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodeconway/ConwayGameOfLife.java">
579
+    <entry file="jar:///Library/Java/JavaVirtualMachines/jdk1.8.0_172.jdk/Contents/Home/jre/lib/rt.jar!/sun/reflect/NativeMethodAccessorImpl.class">
672
       <provider selected="true" editor-type-id="text-editor">
580
       <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>
581
+        <state relative-caret-position="240">
582
+          <caret line="17" column="43" selection-start-line="17" selection-start-column="43" selection-end-line="17" selection-end-column="43" />
682
         </state>
583
         </state>
683
       </provider>
584
       </provider>
684
     </entry>
585
     </entry>
685
     <entry file="file://$PROJECT_DIR$/src/test/java/com/zipcodeconway/ConwayGameOfLifeTest.java">
586
     <entry file="file://$PROJECT_DIR$/src/test/java/com/zipcodeconway/ConwayGameOfLifeTest.java">
686
       <provider selected="true" editor-type-id="text-editor">
587
       <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 />
588
+        <state relative-caret-position="130">
589
+          <caret line="23" column="22" selection-start-line="23" selection-start-column="7" selection-end-line="23" selection-end-column="22" />
590
+        </state>
591
+      </provider>
592
+    </entry>
593
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodeconway/ConwayGameOfLife.java">
594
+      <provider selected="true" editor-type-id="text-editor">
595
+        <state relative-caret-position="-105">
596
+          <caret line="29" column="52" lean-forward="true" selection-start-line="29" selection-start-column="52" selection-end-line="29" selection-end-column="52" />
690
         </state>
597
         </state>
691
       </provider>
598
       </provider>
692
     </entry>
599
     </entry>

+ 107
- 7
src/main/java/com/zipcodeconway/ConwayGameOfLife.java View File

2
 
2
 
3
 public class ConwayGameOfLife {
3
 public class ConwayGameOfLife {
4
 
4
 
5
+    SimpleWindow window;
6
+    private final int dimension;
7
+
8
+    int[][] theBoard;// board represents the grid in 2d format
9
+    int[][] next;
10
+
5
     public ConwayGameOfLife(Integer dimension) {
11
     public ConwayGameOfLife(Integer dimension) {
6
-     }
12
+        this.dimension = dimension;
13
+        this.theBoard = createRandomStart(dimension);
14
+        this.next = new int[dimension][dimension];
15
+        this.window = new SimpleWindow(dimension);
16
+    }
7
 
17
 
8
     public ConwayGameOfLife(Integer dimension, int[][] startmatrix) {
18
     public ConwayGameOfLife(Integer dimension, int[][] startmatrix) {
19
+        this.dimension = dimension;
20
+        this.theBoard = startmatrix;
21
+        this.next = new int[dimension][dimension];
22
+        this.window = new SimpleWindow(dimension);
9
     }
23
     }
10
 
24
 
11
     public static void main(String[] args) {
25
     public static void main(String[] args) {
12
         ConwayGameOfLife sim = new ConwayGameOfLife(50);
26
         ConwayGameOfLife sim = new ConwayGameOfLife(50);
13
-        int[][] endingWorld = sim.simulate(50);
27
+        int[][] endingWorld = sim.simulate(2000);
14
     }
28
     }
15
 
29
 
16
     // Contains the logic for the starting scenario.
30
     // Contains the logic for the starting scenario.
17
     // Which cells are alive or dead in generation 0.
31
     // Which cells are alive or dead in generation 0.
18
     // allocates and returns the starting matrix of size 'dimension'
32
     // allocates and returns the starting matrix of size 'dimension'
19
     private int[][] createRandomStart(Integer dimension) {
33
     private int[][] createRandomStart(Integer dimension) {
20
-        return new int[1][1];
34
+
35
+        int[][] randoBoard = new int[dimension][dimension];
36
+        for (int i = 0; i < (dimension * dimension)*.5; i++) {
37
+
38
+            int x = (int) (Math.random() * dimension);
39
+
40
+            int y = (int) (Math.random() * dimension);
41
+
42
+            randoBoard[x][y] = 1;
43
+
44
+        }
45
+
46
+        return randoBoard;
21
     }
47
     }
22
 
48
 
23
     public int[][] simulate(Integer maxGenerations) {
49
     public int[][] simulate(Integer maxGenerations) {
24
-        return new int[1][1];
50
+        for (int generation = 0; generation <= maxGenerations; generation++) {
51
+            window.display(theBoard, generation);
52
+            iterate();
53
+            copyAndZeroOut(next, theBoard);
54
+            window.sleep(100);
55
+        }
56
+
57
+        return theBoard;
25
     }
58
     }
26
 
59
 
27
     // copy the values of 'next' matrix to 'current' matrix,
60
     // copy the values of 'next' matrix to 'current' matrix,
28
     // and then zero out the contents of 'next' matrix
61
     // and then zero out the contents of 'next' matrix
29
-    public void copyAndZeroOut(int [][] next, int[][] current) {
62
+    public void copyAndZeroOut(int[][] next, int[][] current) {
63
+        for(int i = 0; i < dimension; i++){
64
+            for(int j = 0; j < dimension; j++){
65
+                current[i][j] = next[i][j];
66
+                next[i][j] = 0;
67
+            }
68
+        }
30
     }
69
     }
31
 
70
 
32
     // Calculate if an individual cell should be alive in the next generation.
71
     // Calculate if an individual cell should be alive in the next generation.
37
 		Any live cell with two or three live neighbours lives, unchanged, to the next generation.
76
 		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.
77
 		Any dead cell with exactly three live neighbours cells will come to life.
39
 	*/
78
 	*/
40
-    private int isAlive(int row, int col, int[][] world) {
41
-        return 0;
79
+    private int isAlive(int row /*y axis*/, int col/*x axis*/, int[][] board) {
80
+        int count = 0;
81
+        int returnValue = 0;
82
+        int x;
83
+        int y;
84
+
85
+//        int pointOfInterest = board[col][row];
86
+
87
+        for (int i = row - 1; i <= row + 1; i++) {
88
+            for (int j = col - 1; j <= col + 1; j++) {
89
+
90
+                x = i;
91
+                y = j;
92
+
93
+                if (i == -1) {
94
+                    i = dimension - 1;
95
+                }
96
+
97
+                if (i == dimension) {
98
+                    i = 0;
99
+                }
100
+
101
+                if (j == -1) {
102
+                    j = dimension - 1;
103
+                }
104
+
105
+                if (j == dimension) {
106
+                    j = 0;
107
+                }
108
+
109
+                if (board[i][j] == 1 && (!(i == row && j == col))) {
110
+                    count++;
111
+                }
112
+
113
+                i = x;
114
+                j = y;
115
+
116
+            }
117
+        }
118
+
119
+            if (count == 3) {
120
+                returnValue = 1;
121
+            }
122
+            if (board[row][col] == 1 && count == 2){
123
+                returnValue = 1;
124
+            }
125
+
126
+            return returnValue;
127
+        }
128
+
129
+
130
+
131
+
132
+    public void iterate() {
133
+        for (int i = 0; i < theBoard.length; i++) {
134
+            for (int j = 0; j < theBoard.length; j++) {
135
+                next[i][j] = isAlive(i, j, theBoard);
136
+            }
137
+        }
42
     }
138
     }
139
+
140
+
141
+
142
+
43
 }
143
 }