Procházet zdrojové kódy

Merge 43769c359fb10f412f9835c8a4a6018a089dbed9 into 2286bf332a6a66859fa1ab1a7063f5e3ecc912fc

kfennimore před 6 roky
rodič
revize
1caca69760
No account linked to committer's email

+ 7
- 0
.idea/dictionaries/karoushafennimore.xml Zobrazit soubor

1
+<component name="ProjectDictionaryState">
2
+  <dictionary name="karoushafennimore">
3
+    <words>
4
+      <w>boundries</w>
5
+    </words>
6
+  </dictionary>
7
+</component>

+ 158
- 162
.idea/workspace.xml Zobrazit soubor

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" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
6
+      <change beforePath="$PROJECT_DIR$/src/main/java/com/zipcodeconway/ConwayGameOfLife.java" afterPath="$PROJECT_DIR$/src/main/java/com/zipcodeconway/ConwayGameOfLife.java" />
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" />
11
     <option name="LAST_RESOLUTION" value="IGNORE" />
14
     <option name="LAST_RESOLUTION" value="IGNORE" />
12
   </component>
15
   </component>
13
   <component name="FileEditorManager">
16
   <component name="FileEditorManager">
14
-    <leaf>
15
-      <file leaf-file-name="SimpleWindow.java" pinned="false" current-in-tab="false">
16
-        <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodeconway/SimpleWindow.java">
17
-          <provider selected="true" editor-type-id="text-editor">
18
-            <state relative-caret-position="289">
19
-              <caret line="17" column="42" lean-forward="false" selection-start-line="17" selection-start-column="42" selection-end-line="17" selection-end-column="42" />
20
-              <folding>
21
-                <element signature="imports" expanded="true" />
22
-              </folding>
23
-            </state>
24
-          </provider>
25
-        </entry>
26
-      </file>
27
-      <file leaf-file-name="ConwayGameOfLife.java" pinned="false" current-in-tab="false">
17
+    <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
18
+      <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">
19
         <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodeconway/ConwayGameOfLife.java">
29
           <provider selected="true" editor-type-id="text-editor">
20
           <provider selected="true" editor-type-id="text-editor">
30
-            <state relative-caret-position="164">
31
-              <caret line="20" column="0" lean-forward="false" selection-start-line="20" selection-start-column="0" selection-end-line="20" selection-end-column="0" />
32
-              <folding>
33
-                <element signature="e#585#586#0" expanded="true" />
34
-                <element signature="e#676#677#0" expanded="true" />
35
-                <element signature="e#712#713#0" expanded="true" />
36
-                <element signature="e#1429#1430#0" expanded="true" />
37
-                <element signature="e#1453#1454#0" expanded="true" />
38
-              </folding>
39
-            </state>
40
-          </provider>
41
-        </entry>
42
-      </file>
43
-      <file leaf-file-name="JAVA/com.zipcodeconway.ConwayGameOfLife" pinned="false" current-in-tab="false">
44
-        <entry file="uml://JAVA/com.zipcodeconway.ConwayGameOfLife">
45
-          <provider selected="true" editor-type-id="UmlEditorProvider">
46
-            <state>
47
-              <ID>JAVA</ID>
48
-              <OriginalElement>com.zipcodeconway.ConwayGameOfLife</OriginalElement>
49
-              <nodes>
50
-                <node x="-54.0" y="-179.0">com.zipcodeconway.ConwayGameOfLife</node>
51
-              </nodes>
52
-              <notes />
53
-              <edges />
54
-              <settings layout="Hierarchic Group" zoom="1.0" x="-203.0" y="-1.0" />
55
-              <SelectedNodes />
56
-              <Categories>
57
-                <Category>Constructors</Category>
58
-                <Category>Methods</Category>
59
-              </Categories>
60
-              <SCOPE>All</SCOPE>
61
-              <VISIBILITY>private</VISIBILITY>
21
+            <state relative-caret-position="180">
22
+              <caret line="56" column="75" lean-forward="false" selection-start-line="56" selection-start-column="75" selection-end-line="56" selection-end-column="75" />
23
+              <folding />
62
             </state>
24
             </state>
63
           </provider>
25
           </provider>
64
         </entry>
26
         </entry>
65
       </file>
27
       </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>
28
+      <file leaf-file-name="ConwayLifeUML.png" pinned="false" current-in-tab="false">
29
+        <entry file="file://$PROJECT_DIR$/ConwayLifeUML.png">
30
+          <provider selected="true" editor-type-id="images">
31
+            <state />
76
           </provider>
32
           </provider>
77
         </entry>
33
         </entry>
78
       </file>
34
       </file>
79
-      <file leaf-file-name="ConwayGameOfLifeTest.java" pinned="false" current-in-tab="true">
35
+      <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">
36
         <entry file="file://$PROJECT_DIR$/src/test/java/com/zipcodeconway/ConwayGameOfLifeTest.java">
81
           <provider selected="true" editor-type-id="text-editor">
37
           <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 />
38
+            <state relative-caret-position="330">
39
+              <caret line="24" column="0" lean-forward="false" selection-start-line="24" selection-start-column="0" selection-end-line="24" selection-end-column="0" />
40
+              <folding>
41
+                <element signature="imports" expanded="true" />
42
+              </folding>
85
             </state>
43
             </state>
86
           </provider>
44
           </provider>
87
         </entry>
45
         </entry>
126
         <option value="$PROJECT_DIR$/src/main/java/ConwayGameOfLife.java" />
84
         <option value="$PROJECT_DIR$/src/main/java/ConwayGameOfLife.java" />
127
         <option value="$PROJECT_DIR$/src/main/java/Life.java" />
85
         <option value="$PROJECT_DIR$/src/main/java/Life.java" />
128
         <option value="$PROJECT_DIR$/src/test/java/com/zipcodeconway/ConwayGameOfLifeTest.java" />
86
         <option value="$PROJECT_DIR$/src/test/java/com/zipcodeconway/ConwayGameOfLifeTest.java" />
129
-        <option value="$PROJECT_DIR$/src/main/java/com/zipcodeconway/SimpleWindow.java" />
130
         <option value="$PROJECT_DIR$/src/main/java/com/zipcodeconway/README.md" />
87
         <option value="$PROJECT_DIR$/src/main/java/com/zipcodeconway/README.md" />
88
+        <option value="$PROJECT_DIR$/src/main/java/com/zipcodeconway/SimpleWindow.java" />
131
         <option value="$PROJECT_DIR$/src/main/java/com/zipcodeconway/ConwayGameOfLife.java" />
89
         <option value="$PROJECT_DIR$/src/main/java/com/zipcodeconway/ConwayGameOfLife.java" />
132
       </list>
90
       </list>
133
     </option>
91
     </option>
139
     <sorting>DEFINITION_ORDER</sorting>
97
     <sorting>DEFINITION_ORDER</sorting>
140
   </component>
98
   </component>
141
   <component name="ProjectFrameBounds">
99
   <component name="ProjectFrameBounds">
142
-    <option name="x" value="82" />
143
-    <option name="y" value="32" />
100
+    <option name="y" value="23" />
144
     <option name="width" value="1440" />
101
     <option name="width" value="1440" />
145
-    <option name="height" value="821" />
102
+    <option name="height" value="797" />
146
   </component>
103
   </component>
147
   <component name="ProjectView">
104
   <component name="ProjectView">
148
     <navigator currentView="ProjectPane" proportions="" version="1">
105
     <navigator currentView="ProjectPane" proportions="" version="1">
159
       <foldersAlwaysOnTop value="true" />
116
       <foldersAlwaysOnTop value="true" />
160
     </navigator>
117
     </navigator>
161
     <panes>
118
     <panes>
119
+      <pane id="Scope" />
162
       <pane id="ProjectPane">
120
       <pane id="ProjectPane">
163
         <subPane>
121
         <subPane>
164
           <expand>
122
           <expand>
165
             <path>
123
             <path>
166
-              <item name="Game-Of-Life-Java" type="b2602c69:ProjectViewProjectNode" />
167
-              <item name="Game-Of-Life-Java" type="462c0819:PsiDirectoryNode" />
124
+              <item name="GameOfLife" type="b2602c69:ProjectViewProjectNode" />
125
+              <item name="GameOfLife" type="462c0819:PsiDirectoryNode" />
126
+            </path>
127
+            <path>
128
+              <item name="GameOfLife" type="b2602c69:ProjectViewProjectNode" />
129
+              <item name="GameOfLife" type="462c0819:PsiDirectoryNode" />
130
+              <item name=".idea" type="462c0819:PsiDirectoryNode" />
168
             </path>
131
             </path>
169
             <path>
132
             <path>
170
-              <item name="Game-Of-Life-Java" type="b2602c69:ProjectViewProjectNode" />
171
-              <item name="Game-Of-Life-Java" type="462c0819:PsiDirectoryNode" />
133
+              <item name="GameOfLife" type="b2602c69:ProjectViewProjectNode" />
134
+              <item name="GameOfLife" type="462c0819:PsiDirectoryNode" />
172
               <item name="src" type="462c0819:PsiDirectoryNode" />
135
               <item name="src" type="462c0819:PsiDirectoryNode" />
173
             </path>
136
             </path>
174
             <path>
137
             <path>
175
-              <item name="Game-Of-Life-Java" type="b2602c69:ProjectViewProjectNode" />
176
-              <item name="Game-Of-Life-Java" type="462c0819:PsiDirectoryNode" />
138
+              <item name="GameOfLife" type="b2602c69:ProjectViewProjectNode" />
139
+              <item name="GameOfLife" type="462c0819:PsiDirectoryNode" />
177
               <item name="src" type="462c0819:PsiDirectoryNode" />
140
               <item name="src" type="462c0819:PsiDirectoryNode" />
178
               <item name="main" type="462c0819:PsiDirectoryNode" />
141
               <item name="main" type="462c0819:PsiDirectoryNode" />
179
             </path>
142
             </path>
180
             <path>
143
             <path>
181
-              <item name="Game-Of-Life-Java" type="b2602c69:ProjectViewProjectNode" />
182
-              <item name="Game-Of-Life-Java" type="462c0819:PsiDirectoryNode" />
144
+              <item name="GameOfLife" type="b2602c69:ProjectViewProjectNode" />
145
+              <item name="GameOfLife" type="462c0819:PsiDirectoryNode" />
183
               <item name="src" type="462c0819:PsiDirectoryNode" />
146
               <item name="src" type="462c0819:PsiDirectoryNode" />
184
               <item name="main" type="462c0819:PsiDirectoryNode" />
147
               <item name="main" type="462c0819:PsiDirectoryNode" />
185
               <item name="java" type="462c0819:PsiDirectoryNode" />
148
               <item name="java" type="462c0819:PsiDirectoryNode" />
186
             </path>
149
             </path>
187
             <path>
150
             <path>
188
-              <item name="Game-Of-Life-Java" type="b2602c69:ProjectViewProjectNode" />
189
-              <item name="Game-Of-Life-Java" type="462c0819:PsiDirectoryNode" />
151
+              <item name="GameOfLife" type="b2602c69:ProjectViewProjectNode" />
152
+              <item name="GameOfLife" type="462c0819:PsiDirectoryNode" />
190
               <item name="src" type="462c0819:PsiDirectoryNode" />
153
               <item name="src" type="462c0819:PsiDirectoryNode" />
191
               <item name="main" type="462c0819:PsiDirectoryNode" />
154
               <item name="main" type="462c0819:PsiDirectoryNode" />
192
               <item name="java" type="462c0819:PsiDirectoryNode" />
155
               <item name="java" type="462c0819:PsiDirectoryNode" />
193
               <item name="zipcodeconway" type="462c0819:PsiDirectoryNode" />
156
               <item name="zipcodeconway" type="462c0819:PsiDirectoryNode" />
194
             </path>
157
             </path>
195
             <path>
158
             <path>
196
-              <item name="Game-Of-Life-Java" type="b2602c69:ProjectViewProjectNode" />
197
-              <item name="Game-Of-Life-Java" type="462c0819:PsiDirectoryNode" />
159
+              <item name="GameOfLife" type="b2602c69:ProjectViewProjectNode" />
160
+              <item name="GameOfLife" type="462c0819:PsiDirectoryNode" />
198
               <item name="src" type="462c0819:PsiDirectoryNode" />
161
               <item name="src" type="462c0819:PsiDirectoryNode" />
199
               <item name="test" type="462c0819:PsiDirectoryNode" />
162
               <item name="test" type="462c0819:PsiDirectoryNode" />
200
             </path>
163
             </path>
201
             <path>
164
             <path>
202
-              <item name="Game-Of-Life-Java" type="b2602c69:ProjectViewProjectNode" />
203
-              <item name="Game-Of-Life-Java" type="462c0819:PsiDirectoryNode" />
165
+              <item name="GameOfLife" type="b2602c69:ProjectViewProjectNode" />
166
+              <item name="GameOfLife" type="462c0819:PsiDirectoryNode" />
204
               <item name="src" type="462c0819:PsiDirectoryNode" />
167
               <item name="src" type="462c0819:PsiDirectoryNode" />
205
               <item name="test" type="462c0819:PsiDirectoryNode" />
168
               <item name="test" type="462c0819:PsiDirectoryNode" />
206
               <item name="java" type="462c0819:PsiDirectoryNode" />
169
               <item name="java" type="462c0819:PsiDirectoryNode" />
207
             </path>
170
             </path>
208
             <path>
171
             <path>
209
-              <item name="Game-Of-Life-Java" type="b2602c69:ProjectViewProjectNode" />
210
-              <item name="Game-Of-Life-Java" type="462c0819:PsiDirectoryNode" />
172
+              <item name="GameOfLife" type="b2602c69:ProjectViewProjectNode" />
173
+              <item name="GameOfLife" type="462c0819:PsiDirectoryNode" />
211
               <item name="src" type="462c0819:PsiDirectoryNode" />
174
               <item name="src" type="462c0819:PsiDirectoryNode" />
212
               <item name="test" type="462c0819:PsiDirectoryNode" />
175
               <item name="test" type="462c0819:PsiDirectoryNode" />
213
               <item name="java" type="462c0819:PsiDirectoryNode" />
176
               <item name="java" type="462c0819:PsiDirectoryNode" />
217
           <select />
180
           <select />
218
         </subPane>
181
         </subPane>
219
       </pane>
182
       </pane>
220
-      <pane id="PackagesPane" />
221
       <pane id="AndroidView" />
183
       <pane id="AndroidView" />
222
       <pane id="Scratches" />
184
       <pane id="Scratches" />
223
-      <pane id="Scope" />
185
+      <pane id="PackagesPane" />
224
     </panes>
186
     </panes>
225
   </component>
187
   </component>
226
   <component name="PropertiesComponent">
188
   <component name="PropertiesComponent">
233
     <property name="project.structure.proportion" value="0.15" />
195
     <property name="project.structure.proportion" value="0.15" />
234
     <property name="project.structure.side.proportion" value="0.2" />
196
     <property name="project.structure.side.proportion" value="0.2" />
235
     <property name="com.intellij.testIntegration.createTest.CreateTestDialog.defaultLibrary" value="JUnit4" />
197
     <property name="com.intellij.testIntegration.createTest.CreateTestDialog.defaultLibrary" value="JUnit4" />
198
+    <property name="SearchEverywhereHistoryKey" value="&#9;FILE&#9;file:///Users/karoushafennimore/Dev/GameOfLife/src/test/java/com/zipcodeconway/ConwayGameOfLifeTest.java" />
236
   </component>
199
   </component>
237
   <component name="RecentsManager">
200
   <component name="RecentsManager">
238
     <key name="CreateTestDialog.RecentsKey">
201
     <key name="CreateTestDialog.RecentsKey">
239
       <recent name="com.zipcodeconway" />
202
       <recent name="com.zipcodeconway" />
240
     </key>
203
     </key>
241
-    <key name="CopyFile.RECENT_KEYS">
242
-      <recent name="$PROJECT_DIR$" />
204
+    <key name="MoveFile.RECENT_KEYS">
205
+      <recent name="$PROJECT_DIR$/src/main/java" />
243
     </key>
206
     </key>
244
     <key name="CreateTestDialog.Recents.Supers">
207
     <key name="CreateTestDialog.Recents.Supers">
245
       <recent name="" />
208
       <recent name="" />
246
     </key>
209
     </key>
247
-    <key name="MoveFile.RECENT_KEYS">
248
-      <recent name="$PROJECT_DIR$/src/main/java" />
210
+    <key name="CopyFile.RECENT_KEYS">
211
+      <recent name="$PROJECT_DIR$" />
249
     </key>
212
     </key>
250
   </component>
213
   </component>
251
   <component name="RunDashboard">
214
   <component name="RunDashboard">
503
       <option name="presentableId" value="Default" />
466
       <option name="presentableId" value="Default" />
504
       <updated>1519668901598</updated>
467
       <updated>1519668901598</updated>
505
       <workItem from="1519668902904" duration="14517000" />
468
       <workItem from="1519668902904" duration="14517000" />
469
+      <workItem from="1520626446270" duration="11644000" />
470
+      <workItem from="1520885677652" duration="1381000" />
506
     </task>
471
     </task>
507
     <servers />
472
     <servers />
508
   </component>
473
   </component>
509
   <component name="TestHistory">
474
   <component name="TestHistory">
510
-    <history-entry file="ConwayGameOfLifeTest - 2018.02.26 at 15h 45m 01s.xml">
475
+    <history-entry file="ConwayGameOfLifeTest - 2018.02.26 at 16h 05m 07s.xml">
511
       <configuration name="ConwayGameOfLifeTest" configurationId="JUnit" />
476
       <configuration name="ConwayGameOfLifeTest" configurationId="JUnit" />
512
     </history-entry>
477
     </history-entry>
513
-    <history-entry file="ConwayGameOfLifeTest - 2018.02.26 at 15h 59m 00s.xml">
478
+    <history-entry file="ConwayGameOfLifeTest - 2018.02.26 at 16h 06m 11s.xml">
514
       <configuration name="ConwayGameOfLifeTest" configurationId="JUnit" />
479
       <configuration name="ConwayGameOfLifeTest" configurationId="JUnit" />
515
     </history-entry>
480
     </history-entry>
516
-    <history-entry file="ConwayGameOfLifeTest - 2018.02.26 at 16h 02m 03s.xml">
481
+    <history-entry file="ConwayGameOfLifeTest - 2018.03.12 at 15h 52m 29s.xml">
517
       <configuration name="ConwayGameOfLifeTest" configurationId="JUnit" />
482
       <configuration name="ConwayGameOfLifeTest" configurationId="JUnit" />
518
     </history-entry>
483
     </history-entry>
519
-    <history-entry file="ConwayGameOfLifeTest - 2018.02.26 at 16h 03m 01s.xml">
484
+    <history-entry file="ConwayGameOfLifeTest - 2018.03.12 at 16h 00m 17s.xml">
520
       <configuration name="ConwayGameOfLifeTest" configurationId="JUnit" />
485
       <configuration name="ConwayGameOfLifeTest" configurationId="JUnit" />
521
     </history-entry>
486
     </history-entry>
522
-    <history-entry file="ConwayGameOfLifeTest - 2018.02.26 at 16h 05m 07s.xml">
487
+    <history-entry file="ConwayGameOfLifeTest - 2018.03.12 at 16h 01m 55s.xml">
523
       <configuration name="ConwayGameOfLifeTest" configurationId="JUnit" />
488
       <configuration name="ConwayGameOfLifeTest" configurationId="JUnit" />
524
     </history-entry>
489
     </history-entry>
525
-    <history-entry file="ConwayGameOfLifeTest - 2018.02.26 at 16h 06m 11s.xml">
490
+    <history-entry file="ConwayGameOfLifeTest - 2018.03.12 at 16h 02m 46s.xml">
491
+      <configuration name="ConwayGameOfLifeTest" configurationId="JUnit" />
492
+    </history-entry>
493
+    <history-entry file="ConwayGameOfLifeTest - 2018.03.12 at 16h 31m 20s.xml">
526
       <configuration name="ConwayGameOfLifeTest" configurationId="JUnit" />
494
       <configuration name="ConwayGameOfLifeTest" configurationId="JUnit" />
527
     </history-entry>
495
     </history-entry>
528
     <history-entry file="ConwayGameOfLifeTest_runTest - 2018.02.26 at 15h 41m 14s.xml">
496
     <history-entry file="ConwayGameOfLifeTest_runTest - 2018.02.26 at 15h 41m 14s.xml">
536
     </history-entry>
504
     </history-entry>
537
   </component>
505
   </component>
538
   <component name="TimeTrackingManager">
506
   <component name="TimeTrackingManager">
539
-    <option name="totallyTimeSpent" value="14517000" />
507
+    <option name="totallyTimeSpent" value="27542000" />
540
   </component>
508
   </component>
541
   <component name="ToolWindowManager">
509
   <component name="ToolWindowManager">
542
-    <frame x="82" y="32" width="1440" height="821" extended-state="0" />
510
+    <frame x="0" y="23" width="1440" height="797" extended-state="6" />
543
     <editor active="true" />
511
     <editor active="true" />
544
     <layout>
512
     <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" />
513
+      <window_info id="Palette" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
546
       <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" />
514
       <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" />
515
+      <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32763532" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
516
+      <window_info id="Palette&#9;" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
517
+      <window_info id="Image Layers" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
518
+      <window_info id="Capture Analysis" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
519
+      <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
520
+      <window_info id="Maven Projects" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
521
+      <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.32478634" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
522
+      <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
523
+      <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="7" side_tool="false" content_ui="tabs" />
524
+      <window_info id="Capture Tool" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
525
+      <window_info id="Designer" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
526
+      <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.25679544" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
527
+      <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
560
       <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" />
528
       <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" />
529
       <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" />
530
+      <window_info id="UI Designer" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
531
+      <window_info id="Theme Preview" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
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" />
532
       <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" />
533
+      <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
566
       <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" />
534
       <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" />
535
       <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" />
536
       <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" />
537
+      <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
571
       <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" />
538
       <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" />
539
+      <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
572
     </layout>
540
     </layout>
573
   </component>
541
   </component>
574
   <component name="TypeScriptGeneratedFilesManager">
542
   <component name="TypeScriptGeneratedFilesManager">
584
     <watches-manager />
552
     <watches-manager />
585
   </component>
553
   </component>
586
   <component name="editorHistoryManager">
554
   <component name="editorHistoryManager">
587
-    <entry file="file://$PROJECT_DIR$/pom.xml">
555
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodeconway/ConwayGameOfLife.java">
588
       <provider selected="true" editor-type-id="text-editor">
556
       <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" />
557
+        <state relative-caret-position="705">
558
+          <caret line="47" column="26" lean-forward="true" selection-start-line="47" selection-start-column="26" selection-end-line="47" selection-end-column="26" />
591
           <folding />
559
           <folding />
592
         </state>
560
         </state>
593
       </provider>
561
       </provider>
594
     </entry>
562
     </entry>
595
-    <entry file="file://$PROJECT_DIR$/src/main/java/LifeStarts.java">
563
+    <entry file="file://$PROJECT_DIR$/src/test/java/com/zipcodeconway/ConwayGameOfLifeTest.java">
596
       <provider selected="true" editor-type-id="text-editor">
564
       <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 />
565
+        <state relative-caret-position="330">
566
+          <caret line="24" column="0" lean-forward="false" selection-start-line="24" selection-start-column="0" selection-end-line="24" selection-end-column="0" />
567
+          <folding>
568
+            <element signature="imports" expanded="true" />
569
+          </folding>
600
         </state>
570
         </state>
601
       </provider>
571
       </provider>
602
     </entry>
572
     </entry>
603
-    <entry file="file://$PROJECT_DIR$/src/main/java/Life.java">
573
+    <entry file="file://$PROJECT_DIR$/ConwayLifeUML.png">
574
+      <provider selected="true" editor-type-id="images">
575
+        <state />
576
+      </provider>
577
+    </entry>
578
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodeconway/SimpleWindow.java">
579
+      <provider selected="true" editor-type-id="text-editor">
580
+        <state relative-caret-position="240">
581
+          <caret line="17" column="42" lean-forward="false" selection-start-line="17" selection-start-column="42" selection-end-line="17" selection-end-column="42" />
582
+        </state>
583
+      </provider>
584
+    </entry>
585
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodeconway/ConwayGameOfLife.java">
604
       <provider selected="true" editor-type-id="text-editor">
586
       <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" />
587
+        <state relative-caret-position="300">
588
+          <caret line="20" column="0" lean-forward="false" selection-start-line="20" selection-start-column="0" selection-end-line="20" selection-end-column="0" />
607
           <folding />
589
           <folding />
608
         </state>
590
         </state>
609
       </provider>
591
       </provider>
614
           <ID>JAVA</ID>
596
           <ID>JAVA</ID>
615
           <OriginalElement>com.zipcodeconway.ConwayGameOfLife</OriginalElement>
597
           <OriginalElement>com.zipcodeconway.ConwayGameOfLife</OriginalElement>
616
           <nodes>
598
           <nodes>
617
-            <node x="-54.0" y="-179.0">com.zipcodeconway.ConwayGameOfLife</node>
599
+            <node x="" y="">com.zipcodeconway.ConwayGameOfLife</node>
618
           </nodes>
600
           </nodes>
619
           <notes />
601
           <notes />
620
           <edges />
602
           <edges />
621
-          <settings layout="Hierarchic Group" zoom="1.0" x="-203.0" y="-1.0" />
603
+          <settings layout="Hierarchic Group" zoom="1.0" x="376.0" y="-2.0" />
622
           <SelectedNodes />
604
           <SelectedNodes />
623
           <Categories>
605
           <Categories>
624
             <Category>Constructors</Category>
606
             <Category>Constructors</Category>
629
         </state>
611
         </state>
630
       </provider>
612
       </provider>
631
     </entry>
613
     </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 />
614
+    <entry file="file://$PROJECT_DIR$/src/test/java/com/zipcodeconway/ConwayGameOfLifeTest.java">
615
+      <provider selected="true" editor-type-id="text-editor">
616
+        <state relative-caret-position="450">
617
+          <caret line="32" column="32" lean-forward="false" selection-start-line="32" selection-start-column="32" selection-end-line="32" selection-end-column="32" />
618
+          <folding>
619
+            <element signature="imports" expanded="true" />
620
+          </folding>
640
         </state>
621
         </state>
641
       </provider>
622
       </provider>
642
     </entry>
623
     </entry>
643
-    <entry file="file://$USER_HOME$/Downloads/ConwayLifeRandomat50.png">
644
-      <provider selected="true" editor-type-id="images">
645
-        <state />
624
+    <entry file="file://$PROJECT_DIR$/pom.xml">
625
+      <provider selected="true" editor-type-id="text-editor">
626
+        <state relative-caret-position="187">
627
+          <caret line="11" column="10" lean-forward="false" selection-start-line="11" selection-start-column="10" selection-end-line="11" selection-end-column="10" />
628
+          <folding />
629
+        </state>
646
       </provider>
630
       </provider>
647
     </entry>
631
     </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 />
632
+    <entry file="file://$PROJECT_DIR$/src/main/java/LifeStarts.java" />
633
+    <entry file="file://$PROJECT_DIR$/src/main/java/Life.java" />
634
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodeconway/README.md" />
635
+    <entry file="file://$USER_HOME$/Downloads/ConwayLifeRandomat50.png" />
636
+    <entry file="file://$USER_HOME$/Documents/gitea/gitea/custom/public/img/ConwayLifeUML.png" />
637
+    <entry file="file://$PROJECT_DIR$/src/main/java/GameofLife.java" />
638
+    <entry file="uml://JAVA/com.zipcodeconway.ConwayGameOfLife">
639
+      <provider selected="true" editor-type-id="UmlEditorProvider">
640
+        <state>
641
+          <ID>JAVA</ID>
642
+          <OriginalElement>com.zipcodeconway.ConwayGameOfLife</OriginalElement>
643
+          <nodes>
644
+            <node x="" y="">com.zipcodeconway.ConwayGameOfLife</node>
645
+          </nodes>
646
+          <notes />
647
+          <edges />
648
+          <settings layout="Hierarchic Group" zoom="1.0" x="376.0" y="-2.0" />
649
+          <SelectedNodes />
650
+          <Categories>
651
+            <Category>Constructors</Category>
652
+            <Category>Methods</Category>
653
+          </Categories>
654
+          <SCOPE>All</SCOPE>
655
+          <VISIBILITY>private</VISIBILITY>
656
+        </state>
651
       </provider>
657
       </provider>
652
     </entry>
658
     </entry>
653
-    <entry file="file://$PROJECT_DIR$/src/main/java/GameofLife.java">
659
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodeconway/SimpleWindow.java">
654
       <provider selected="true" editor-type-id="text-editor">
660
       <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 />
661
+        <state relative-caret-position="459">
662
+          <caret line="45" column="44" lean-forward="false" selection-start-line="45" selection-start-column="37" selection-end-line="45" selection-end-column="44" />
658
         </state>
663
         </state>
659
       </provider>
664
       </provider>
660
     </entry>
665
     </entry>
661
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodeconway/SimpleWindow.java">
666
+    <entry file="file://$PROJECT_DIR$/src/test/java/com/zipcodeconway/ConwayGameOfLifeTest.java">
662
       <provider selected="true" editor-type-id="text-editor">
667
       <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" />
668
+        <state relative-caret-position="330">
669
+          <caret line="24" column="0" lean-forward="false" selection-start-line="24" selection-start-column="0" selection-end-line="24" selection-end-column="0" />
665
           <folding>
670
           <folding>
666
             <element signature="imports" expanded="true" />
671
             <element signature="imports" expanded="true" />
667
           </folding>
672
           </folding>
668
         </state>
673
         </state>
669
       </provider>
674
       </provider>
670
     </entry>
675
     </entry>
671
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodeconway/ConwayGameOfLife.java">
672
-      <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>
682
-        </state>
676
+    <entry file="file://$PROJECT_DIR$/ConwayLifeUML.png">
677
+      <provider selected="true" editor-type-id="images">
678
+        <state />
683
       </provider>
679
       </provider>
684
     </entry>
680
     </entry>
685
-    <entry file="file://$PROJECT_DIR$/src/test/java/com/zipcodeconway/ConwayGameOfLifeTest.java">
681
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodeconway/ConwayGameOfLife.java">
686
       <provider selected="true" editor-type-id="text-editor">
682
       <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" />
683
+        <state relative-caret-position="180">
684
+          <caret line="56" column="75" lean-forward="false" selection-start-line="56" selection-start-column="75" selection-end-line="56" selection-end-column="75" />
689
           <folding />
685
           <folding />
690
         </state>
686
         </state>
691
       </provider>
687
       </provider>

binární
Screen Shot 2018-03-12 at 4.07.11 PM.png Zobrazit soubor


+ 109
- 10
src/main/java/com/zipcodeconway/ConwayGameOfLife.java Zobrazit soubor

2
 
2
 
3
 public class ConwayGameOfLife {
3
 public class ConwayGameOfLife {
4
 
4
 
5
+    private int[][] currentGen;
6
+    private int[][] nextGen;
7
+    private SimpleWindow displayWindow;
8
+
5
     public ConwayGameOfLife(Integer dimension) {
9
     public ConwayGameOfLife(Integer dimension) {
6
-     }
10
+
11
+        currentGen = createRandomStart(dimension);
12
+        nextGen = new int[dimension][dimension];
13
+        this.displayWindow = new SimpleWindow(dimension);
14
+
15
+    }
7
 
16
 
8
     public ConwayGameOfLife(Integer dimension, int[][] startmatrix) {
17
     public ConwayGameOfLife(Integer dimension, int[][] startmatrix) {
18
+
19
+        currentGen = startmatrix;
20
+        nextGen = new int[dimension][dimension];
21
+        this.displayWindow = new SimpleWindow(dimension);
22
+
9
     }
23
     }
10
 
24
 
11
     public static void main(String[] args) {
25
     public static void main(String[] args) {
26
+
12
         ConwayGameOfLife sim = new ConwayGameOfLife(50);
27
         ConwayGameOfLife sim = new ConwayGameOfLife(50);
13
         int[][] endingWorld = sim.simulate(50);
28
         int[][] endingWorld = sim.simulate(50);
14
     }
29
     }
15
 
30
 
31
+    public int[][] simulate(Integer maxGenerations) {
32
+        int generations = 0;
33
+        //count has to be less than OR equal to maxGen because it has to be equal to the number of times it has to run
34
+        while (generations <= maxGenerations) {
35
+            //new display
36
+            displayWindow.display(currentGen, generations);
37
+            //update the currentGeneration to nextGen
38
+            for (int row = 0; row < currentGen.length; row++) {
39
+                //do not need [row] because it is a cube but it would require that if it wasnt one.
40
+                for (int column = 0; column < currentGen[row].length; column++) {
41
+                    nextGen[row][column] = isAlive(row, column, currentGen);
42
+                }
43
+            }
44
+
45
+            copyAndZeroOut(nextGen, currentGen);
46
+            displayWindow.sleep(125);
47
+            generations++;
48
+
49
+        }
50
+        return currentGen;
51
+    }
52
+
16
     // Contains the logic for the starting scenario.
53
     // Contains the logic for the starting scenario.
17
     // Which cells are alive or dead in generation 0.
54
     // Which cells are alive or dead in generation 0.
18
     // allocates and returns the starting matrix of size 'dimension'
55
     // allocates and returns the starting matrix of size 'dimension'
19
     private int[][] createRandomStart(Integer dimension) {
56
     private int[][] createRandomStart(Integer dimension) {
20
-        return new int[1][1];
57
+        //have to create a random array!!! define with dimension parameter!
58
+        int[][] newRandomArray = new int[dimension][dimension];
59
+        for (int row = 0; row < newRandomArray.length ; row++) {
60
+            for (int column = 0; column < newRandomArray[row].length; column++) {
61
+                newRandomArray[row][column] = (int)(Math.random() * 2);
62
+            }
63
+        }
64
+        return newRandomArray;
21
     }
65
     }
22
 
66
 
23
-    public int[][] simulate(Integer maxGenerations) {
24
-        return new int[1][1];
25
-    }
26
 
67
 
27
     // copy the values of 'next' matrix to 'current' matrix,
68
     // copy the values of 'next' matrix to 'current' matrix,
28
     // and then zero out the contents of 'next' matrix
69
     // and then zero out the contents of 'next' matrix
29
-    public void copyAndZeroOut(int [][] next, int[][] current) {
70
+    public void copyAndZeroOut(int[][] next, int[][] current) {
71
+
72
+        for (int row = 0; row < current.length; row++)
73
+            for (int column = 0; column < current[row].length; column++) {
74
+                //Copying current to next
75
+                current[row][column] = next[row][column];
76
+                //wipe out next
77
+                next[row][column] = 0;
78
+            }
30
     }
79
     }
31
 
80
 
81
+
82
+
32
     // Calculate if an individual cell should be alive in the next generation.
83
     // Calculate if an individual cell should be alive in the next generation.
33
     // Based on the game logic:
84
     // Based on the game logic:
34
-	/*
85
+
86
+    private int isAlive(int row, int col, int[][] world) {
87
+
88
+        //set instance variables to figure out location around cell
89
+        int north = col - 1;
90
+        int south = col + 1;
91
+        int east = row + 1;
92
+        int west = row -1;
93
+        int count = 0;
94
+
95
+
96
+        //boundries loops around if neighbor is against wall
97
+        if(north < 0) {
98
+            north = world[row].length - 1;
99
+        }
100
+        if(south == world[row].length) {
101
+            south = 0;
102
+        }
103
+        if(east == world[col].length) {
104
+            east = 0;
105
+        }
106
+        if(west < 0) {
107
+            west = world[col].length - 1;
108
+        }
109
+
110
+        //checking how many cells around it are alive
111
+        //by rows first
112
+        if(world[east][north] == 1) count++;
113
+        if(world[east][south] == 1) count++;
114
+        if(world[east][col] == 1) count++;
115
+
116
+        if(world[west][north] == 1) count++;
117
+        if(world[west][south] == 1) count++;
118
+        if(world[west][col] == 1) count++;
119
+        //rows
120
+        if(world[row][north] == 1) count++;
121
+        if(world[row][south] == 1) count++;
122
+
123
+        //check rules and determine if it stays alive or dies.
124
+        /*
35
 		Any live cell with fewer than two live neighbours dies, as if by needs caused by underpopulation.
125
 		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.
126
 		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.
127
 		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.
128
 		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;
129
+	    */
130
+
131
+        //underpopulation
132
+        if(count < 2 || count > 3 ) {
133
+            return 0;
134
+            //3 neighbors brings it to life so = 1.
135
+        }else if(count == 3) {
136
+            return 1;
137
+        }else
138
+            //return the cell UNCHANGED as it is JUST incase...... instead of returning 1.
139
+            return world[row][col];
140
+
42
     }
141
     }
43
 }
142
 }

+ 2
- 2
src/main/java/com/zipcodeconway/SimpleWindow.java Zobrazit soubor

39
             for (int j = 0; j < array[0].length; j++) {
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, 10, 10);
41
                 if (array[i][j] == 0) {
41
                 if (array[i][j] == 0) {
42
-                    g.setColor(Color.WHITE);
42
+                    g.setColor(Color.DARK_GRAY);
43
                     g.fillRect(i * BOX_DIM, j * BOX_DIM, 10, 10);
43
                     g.fillRect(i * BOX_DIM, j * BOX_DIM, 10, 10);
44
                 }
44
                 }
45
                 if (array[i][j] == 1) {
45
                 if (array[i][j] == 1) {
46
-                    g.setColor(Color.BLACK);
46
+                    g.setColor(Color.MAGENTA);
47
                     g.fillRect(i * BOX_DIM, j * BOX_DIM, 10, 10);
47
                     g.fillRect(i * BOX_DIM, j * BOX_DIM, 10, 10);
48
                 }
48
                 }
49
             }
49
             }