ソースを参照

Merge 43769c359fb10f412f9835c8a4a6018a089dbed9 into 2286bf332a6a66859fa1ab1a7063f5e3ecc912fc

kfennimore 6 年 前
コミット
1caca69760
コミット者のEメールアドレスに関連付けられたアカウントが存在しません

+ 7
- 0
.idea/dictionaries/karoushafennimore.xml ファイルの表示

@@ -0,0 +1,7 @@
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 ファイルの表示

@@ -1,7 +1,10 @@
1 1
 <?xml version="1.0" encoding="UTF-8"?>
2 2
 <project version="4">
3 3
   <component name="ChangeListManager">
4
-    <list default="true" id="e282cee1-bfe9-42a3-9794-9633eb4654d1" name="Default" comment="" />
4
+    <list default="true" id="e282cee1-bfe9-42a3-9794-9633eb4654d1" name="Default" comment="">
5
+      <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" 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 8
     <ignored path="$PROJECT_DIR$/target/" />
6 9
     <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
7 10
     <option name="TRACKING_ENABLED" value="true" />
@@ -11,77 +14,32 @@
11 14
     <option name="LAST_RESOLUTION" value="IGNORE" />
12 15
   </component>
13 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 19
         <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodeconway/ConwayGameOfLife.java">
29 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 24
             </state>
63 25
           </provider>
64 26
         </entry>
65 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 32
           </provider>
77 33
         </entry>
78 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 36
         <entry file="file://$PROJECT_DIR$/src/test/java/com/zipcodeconway/ConwayGameOfLifeTest.java">
81 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 43
             </state>
86 44
           </provider>
87 45
         </entry>
@@ -126,8 +84,8 @@
126 84
         <option value="$PROJECT_DIR$/src/main/java/ConwayGameOfLife.java" />
127 85
         <option value="$PROJECT_DIR$/src/main/java/Life.java" />
128 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 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 89
         <option value="$PROJECT_DIR$/src/main/java/com/zipcodeconway/ConwayGameOfLife.java" />
132 90
       </list>
133 91
     </option>
@@ -139,10 +97,9 @@
139 97
     <sorting>DEFINITION_ORDER</sorting>
140 98
   </component>
141 99
   <component name="ProjectFrameBounds">
142
-    <option name="x" value="82" />
143
-    <option name="y" value="32" />
100
+    <option name="y" value="23" />
144 101
     <option name="width" value="1440" />
145
-    <option name="height" value="821" />
102
+    <option name="height" value="797" />
146 103
   </component>
147 104
   <component name="ProjectView">
148 105
     <navigator currentView="ProjectPane" proportions="" version="1">
@@ -159,55 +116,61 @@
159 116
       <foldersAlwaysOnTop value="true" />
160 117
     </navigator>
161 118
     <panes>
119
+      <pane id="Scope" />
162 120
       <pane id="ProjectPane">
163 121
         <subPane>
164 122
           <expand>
165 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 131
             </path>
169 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 135
               <item name="src" type="462c0819:PsiDirectoryNode" />
173 136
             </path>
174 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 140
               <item name="src" type="462c0819:PsiDirectoryNode" />
178 141
               <item name="main" type="462c0819:PsiDirectoryNode" />
179 142
             </path>
180 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 146
               <item name="src" type="462c0819:PsiDirectoryNode" />
184 147
               <item name="main" type="462c0819:PsiDirectoryNode" />
185 148
               <item name="java" type="462c0819:PsiDirectoryNode" />
186 149
             </path>
187 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 153
               <item name="src" type="462c0819:PsiDirectoryNode" />
191 154
               <item name="main" type="462c0819:PsiDirectoryNode" />
192 155
               <item name="java" type="462c0819:PsiDirectoryNode" />
193 156
               <item name="zipcodeconway" type="462c0819:PsiDirectoryNode" />
194 157
             </path>
195 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 161
               <item name="src" type="462c0819:PsiDirectoryNode" />
199 162
               <item name="test" type="462c0819:PsiDirectoryNode" />
200 163
             </path>
201 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 167
               <item name="src" type="462c0819:PsiDirectoryNode" />
205 168
               <item name="test" type="462c0819:PsiDirectoryNode" />
206 169
               <item name="java" type="462c0819:PsiDirectoryNode" />
207 170
             </path>
208 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 174
               <item name="src" type="462c0819:PsiDirectoryNode" />
212 175
               <item name="test" type="462c0819:PsiDirectoryNode" />
213 176
               <item name="java" type="462c0819:PsiDirectoryNode" />
@@ -217,10 +180,9 @@
217 180
           <select />
218 181
         </subPane>
219 182
       </pane>
220
-      <pane id="PackagesPane" />
221 183
       <pane id="AndroidView" />
222 184
       <pane id="Scratches" />
223
-      <pane id="Scope" />
185
+      <pane id="PackagesPane" />
224 186
     </panes>
225 187
   </component>
226 188
   <component name="PropertiesComponent">
@@ -233,19 +195,20 @@
233 195
     <property name="project.structure.proportion" value="0.15" />
234 196
     <property name="project.structure.side.proportion" value="0.2" />
235 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 199
   </component>
237 200
   <component name="RecentsManager">
238 201
     <key name="CreateTestDialog.RecentsKey">
239 202
       <recent name="com.zipcodeconway" />
240 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 206
     </key>
244 207
     <key name="CreateTestDialog.Recents.Supers">
245 208
       <recent name="" />
246 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 212
     </key>
250 213
   </component>
251 214
   <component name="RunDashboard">
@@ -503,26 +466,31 @@
503 466
       <option name="presentableId" value="Default" />
504 467
       <updated>1519668901598</updated>
505 468
       <workItem from="1519668902904" duration="14517000" />
469
+      <workItem from="1520626446270" duration="11644000" />
470
+      <workItem from="1520885677652" duration="1381000" />
506 471
     </task>
507 472
     <servers />
508 473
   </component>
509 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 476
       <configuration name="ConwayGameOfLifeTest" configurationId="JUnit" />
512 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 479
       <configuration name="ConwayGameOfLifeTest" configurationId="JUnit" />
515 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 482
       <configuration name="ConwayGameOfLifeTest" configurationId="JUnit" />
518 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 485
       <configuration name="ConwayGameOfLifeTest" configurationId="JUnit" />
521 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 488
       <configuration name="ConwayGameOfLifeTest" configurationId="JUnit" />
524 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 494
       <configuration name="ConwayGameOfLifeTest" configurationId="JUnit" />
527 495
     </history-entry>
528 496
     <history-entry file="ConwayGameOfLifeTest_runTest - 2018.02.26 at 15h 41m 14s.xml">
@@ -536,39 +504,39 @@
536 504
     </history-entry>
537 505
   </component>
538 506
   <component name="TimeTrackingManager">
539
-    <option name="totallyTimeSpent" value="14517000" />
507
+    <option name="totallyTimeSpent" value="27542000" />
540 508
   </component>
541 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 511
     <editor active="true" />
544 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 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 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 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 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 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 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 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 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 540
     </layout>
573 541
   </component>
574 542
   <component name="TypeScriptGeneratedFilesManager">
@@ -584,26 +552,40 @@
584 552
     <watches-manager />
585 553
   </component>
586 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 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 559
           <folding />
592 560
         </state>
593 561
       </provider>
594 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 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 570
         </state>
601 571
       </provider>
602 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 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 589
           <folding />
608 590
         </state>
609 591
       </provider>
@@ -614,11 +596,11 @@
614 596
           <ID>JAVA</ID>
615 597
           <OriginalElement>com.zipcodeconway.ConwayGameOfLife</OriginalElement>
616 598
           <nodes>
617
-            <node x="-54.0" y="-179.0">com.zipcodeconway.ConwayGameOfLife</node>
599
+            <node x="" y="">com.zipcodeconway.ConwayGameOfLife</node>
618 600
           </nodes>
619 601
           <notes />
620 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 604
           <SelectedNodes />
623 605
           <Categories>
624 606
             <Category>Constructors</Category>
@@ -629,63 +611,77 @@
629 611
         </state>
630 612
       </provider>
631 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 621
         </state>
641 622
       </provider>
642 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 630
       </provider>
647 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 657
       </provider>
652 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 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 663
         </state>
659 664
       </provider>
660 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 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 670
           <folding>
666 671
             <element signature="imports" expanded="true" />
667 672
           </folding>
668 673
         </state>
669 674
       </provider>
670 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 679
       </provider>
684 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 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 685
           <folding />
690 686
         </state>
691 687
       </provider>

バイナリ
Screen Shot 2018-03-12 at 4.07.11 PM.png ファイルの表示


+ 109
- 10
src/main/java/com/zipcodeconway/ConwayGameOfLife.java ファイルの表示

@@ -2,42 +2,141 @@ package com.zipcodeconway;
2 2
 
3 3
 public class ConwayGameOfLife {
4 4
 
5
+    private int[][] currentGen;
6
+    private int[][] nextGen;
7
+    private SimpleWindow displayWindow;
8
+
5 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 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 25
     public static void main(String[] args) {
26
+
12 27
         ConwayGameOfLife sim = new ConwayGameOfLife(50);
13 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 53
     // Contains the logic for the starting scenario.
17 54
     // Which cells are alive or dead in generation 0.
18 55
     // allocates and returns the starting matrix of size 'dimension'
19 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 68
     // copy the values of 'next' matrix to 'current' matrix,
28 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 83
     // Calculate if an individual cell should be alive in the next generation.
33 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 125
 		Any live cell with fewer than two live neighbours dies, as if by needs caused by underpopulation.
36 126
 		Any live cell with more than three live neighbours dies, as if by overcrowding.
37 127
 		Any live cell with two or three live neighbours lives, unchanged, to the next generation.
38 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 ファイルの表示

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