Kaynağa Gözat

changes to files and added screenshot

ghost1497 6 yıl önce
ebeveyn
işleme
964cfbd9ca

+ 80
- 53
.idea/workspace.xml Dosyayı Görüntüle

@@ -2,11 +2,6 @@
2 2
 <project version="4">
3 3
   <component name="ChangeListManager">
4 4
     <list default="true" id="3cec3003-c8fa-4876-bce6-47ea58dfac1c" name="Default" comment="">
5
-      <change beforePath="$PROJECT_DIR$/.idea/Game-Of-Life-Java.iml" afterPath="" />
6
-      <change beforePath="$PROJECT_DIR$/.idea/misc.xml" afterPath="$PROJECT_DIR$/.idea/misc.xml" />
7
-      <change beforePath="$PROJECT_DIR$/.idea/modules.xml" afterPath="$PROJECT_DIR$/.idea/modules.xml" />
8
-      <change beforePath="$PROJECT_DIR$/.idea/uiDesigner.xml" afterPath="" />
9
-      <change beforePath="$PROJECT_DIR$/.idea/vcs.xml" afterPath="$PROJECT_DIR$/.idea/vcs.xml" />
10 5
       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
11 6
       <change beforePath="$PROJECT_DIR$/src/main/java/com/zipcodeconway/ConwayGameOfLife.java" afterPath="$PROJECT_DIR$/src/main/java/com/zipcodeconway/ConwayGameOfLife.java" />
12 7
     </list>
@@ -19,22 +14,22 @@
19 14
     <option name="LAST_RESOLUTION" value="IGNORE" />
20 15
   </component>
21 16
   <component name="FileEditorManager">
22
-    <leaf>
23
-      <file leaf-file-name="ConwayGameOfLifeTest.java" pinned="false" current-in-tab="true">
17
+    <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
18
+      <file leaf-file-name="ConwayGameOfLifeTest.java" pinned="false" current-in-tab="false">
24 19
         <entry file="file://$PROJECT_DIR$/src/test/java/com/zipcodeconway/ConwayGameOfLifeTest.java">
25 20
           <provider selected="true" editor-type-id="text-editor">
26
-            <state relative-caret-position="60">
21
+            <state relative-caret-position="23">
27 22
               <caret line="6" column="13" lean-forward="false" selection-start-line="6" selection-start-column="13" selection-end-line="6" selection-end-column="13" />
28 23
               <folding />
29 24
             </state>
30 25
           </provider>
31 26
         </entry>
32 27
       </file>
33
-      <file leaf-file-name="ConwayGameOfLife.java" pinned="false" current-in-tab="false">
28
+      <file leaf-file-name="ConwayGameOfLife.java" pinned="false" current-in-tab="true">
34 29
         <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodeconway/ConwayGameOfLife.java">
35 30
           <provider selected="true" editor-type-id="text-editor">
36
-            <state relative-caret-position="1200">
37
-              <caret line="80" column="29" lean-forward="true" selection-start-line="80" selection-start-column="29" selection-end-line="80" selection-end-column="29" />
31
+            <state relative-caret-position="1500">
32
+              <caret line="100" column="25" lean-forward="false" selection-start-line="100" selection-start-column="25" selection-end-line="100" selection-end-column="25" />
38 33
               <folding />
39 34
             </state>
40 35
           </provider>
@@ -44,7 +39,7 @@
44 39
         <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodeconway/SimpleWindow.java">
45 40
           <provider selected="true" editor-type-id="text-editor">
46 41
             <state relative-caret-position="90">
47
-              <caret line="6" column="24" lean-forward="true" selection-start-line="6" selection-start-column="24" selection-end-line="6" selection-end-column="24" />
42
+              <caret line="6" column="24" lean-forward="false" selection-start-line="6" selection-start-column="24" selection-end-line="6" selection-end-column="24" />
48 43
               <folding>
49 44
                 <element signature="imports" expanded="true" />
50 45
               </folding>
@@ -85,11 +80,10 @@
85 80
     <detection-done>true</detection-done>
86 81
     <sorting>DEFINITION_ORDER</sorting>
87 82
   </component>
88
-  <component name="ProjectFrameBounds" fullScreen="true">
89
-    <option name="x" value="1280" />
90
-    <option name="y" value="-447" />
91
-    <option name="width" value="1920" />
92
-    <option name="height" value="1080" />
83
+  <component name="ProjectFrameBounds" extendedState="6">
84
+    <option name="y" value="22" />
85
+    <option name="width" value="1280" />
86
+    <option name="height" value="718" />
93 87
   </component>
94 88
   <component name="ProjectLevelVcsManager" settingsEditedManually="true">
95 89
     <ConfirmationsSetting value="1" id="Add" />
@@ -109,10 +103,6 @@
109 103
       <foldersAlwaysOnTop value="true" />
110 104
     </navigator>
111 105
     <panes>
112
-      <pane id="Scope" />
113
-      <pane id="AndroidView" />
114
-      <pane id="PackagesPane" />
115
-      <pane id="Scratches" />
116 106
       <pane id="ProjectPane">
117 107
         <subPane>
118 108
           <expand>
@@ -171,6 +161,10 @@
171 161
           <select />
172 162
         </subPane>
173 163
       </pane>
164
+      <pane id="AndroidView" />
165
+      <pane id="Scope" />
166
+      <pane id="Scratches" />
167
+      <pane id="PackagesPane" />
174 168
     </panes>
175 169
   </component>
176 170
   <component name="PropertiesComponent">
@@ -191,7 +185,7 @@
191 185
       </list>
192 186
     </option>
193 187
   </component>
194
-  <component name="RunManager" selected="JUnit.ConwayGameOfLifeTest">
188
+  <component name="RunManager" selected="Application.ConwayGameOfLife">
195 189
     <configuration default="true" type="Applet" factoryName="Applet">
196 190
       <option name="HTML_USED" value="false" />
197 191
       <option name="WIDTH" value="400" />
@@ -323,8 +317,8 @@
323 317
     </list>
324 318
     <recent_temporary>
325 319
       <list size="2">
326
-        <item index="0" class="java.lang.String" itemvalue="JUnit.ConwayGameOfLifeTest" />
327
-        <item index="1" class="java.lang.String" itemvalue="Application.ConwayGameOfLife" />
320
+        <item index="0" class="java.lang.String" itemvalue="Application.ConwayGameOfLife" />
321
+        <item index="1" class="java.lang.String" itemvalue="JUnit.ConwayGameOfLifeTest" />
328 322
       </list>
329 323
     </recent_temporary>
330 324
   </component>
@@ -341,7 +335,8 @@
341 335
       <option name="number" value="Default" />
342 336
       <option name="presentableId" value="Default" />
343 337
       <updated>1520867264394</updated>
344
-      <workItem from="1520867268180" duration="9778000" />
338
+      <workItem from="1520867268180" duration="10022000" />
339
+      <workItem from="1520887604854" duration="634000" />
345 340
     </task>
346 341
     <servers />
347 342
   </component>
@@ -352,41 +347,47 @@
352 347
     <history-entry file="ConwayGameOfLifeTest - 2018.03.12 at 13h 51m 50s.xml">
353 348
       <configuration name="ConwayGameOfLifeTest" configurationId="JUnit" />
354 349
     </history-entry>
350
+    <history-entry file="ConwayGameOfLifeTest - 2018.03.12 at 14h 35m 50s.xml">
351
+      <configuration name="ConwayGameOfLifeTest" configurationId="JUnit" />
352
+    </history-entry>
353
+    <history-entry file="ConwayGameOfLifeTest - 2018.03.12 at 16h 56m 27s.xml">
354
+      <configuration name="ConwayGameOfLifeTest" configurationId="JUnit" />
355
+    </history-entry>
355 356
   </component>
356 357
   <component name="TimeTrackingManager">
357
-    <option name="totallyTimeSpent" value="9778000" />
358
+    <option name="totallyTimeSpent" value="10656000" />
358 359
   </component>
359 360
   <component name="ToolWindowManager">
360
-    <frame x="1280" y="-447" width="1920" height="1080" extended-state="0" />
361
+    <frame x="0" y="22" width="1280" height="718" extended-state="6" />
361 362
     <editor active="true" />
362 363
     <layout>
363
-      <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" />
364
+      <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" />
364 365
       <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" />
365
-      <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32969216" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
366
-      <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" />
367
-      <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" />
368
-      <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" />
369
-      <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" />
370
-      <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" />
371
-      <window_info id="Run" active="true" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.32969216" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
372
-      <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" />
373
-      <window_info id="Terminal" 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" />
374
-      <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" />
375
-      <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" />
376
-      <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.24973376" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
377
-      <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" />
366
+      <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.3287483" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
367
+      <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" />
368
+      <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" />
369
+      <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" />
370
+      <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" />
371
+      <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" />
372
+      <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.3836276" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
373
+      <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" />
374
+      <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.3287483" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
375
+      <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" />
376
+      <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" />
377
+      <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.2536349" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
378
+      <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" />
378 379
       <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" />
379 380
       <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" />
380
-      <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" />
381
-      <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" />
381
+      <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" />
382
+      <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" />
382 383
       <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.39920557" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
383
-      <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" />
384
+      <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" />
384 385
       <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" />
385
-      <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" />
386 386
       <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" />
387 387
       <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" />
388
-      <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" />
388
+      <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" />
389 389
       <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" />
390
+      <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" />
390 391
     </layout>
391 392
   </component>
392 393
   <component name="TypeScriptGeneratedFilesManager">
@@ -402,6 +403,32 @@
402 403
     <watches-manager />
403 404
   </component>
404 405
   <component name="editorHistoryManager">
406
+    <entry file="file://$PROJECT_DIR$/src/test/java/com/zipcodeconway/ConwayGameOfLifeTest.java">
407
+      <provider selected="true" editor-type-id="text-editor">
408
+        <state relative-caret-position="0">
409
+          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
410
+          <folding />
411
+        </state>
412
+      </provider>
413
+    </entry>
414
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodeconway/ConwayGameOfLife.java">
415
+      <provider selected="true" editor-type-id="text-editor">
416
+        <state relative-caret-position="1200">
417
+          <caret line="80" column="29" lean-forward="true" selection-start-line="80" selection-start-column="29" selection-end-line="80" selection-end-column="29" />
418
+          <folding />
419
+        </state>
420
+      </provider>
421
+    </entry>
422
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodeconway/SimpleWindow.java">
423
+      <provider selected="true" editor-type-id="text-editor">
424
+        <state relative-caret-position="90">
425
+          <caret line="6" column="24" lean-forward="true" selection-start-line="6" selection-start-column="24" selection-end-line="6" selection-end-column="24" />
426
+          <folding>
427
+            <element signature="imports" expanded="true" />
428
+          </folding>
429
+        </state>
430
+      </provider>
431
+    </entry>
405 432
     <entry file="file://$PROJECT_DIR$/ConwayLifeUML.png">
406 433
       <provider selected="true" editor-type-id="images">
407 434
         <state />
@@ -410,25 +437,25 @@
410 437
     <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodeconway/SimpleWindow.java">
411 438
       <provider selected="true" editor-type-id="text-editor">
412 439
         <state relative-caret-position="90">
413
-          <caret line="6" column="24" lean-forward="true" selection-start-line="6" selection-start-column="24" selection-end-line="6" selection-end-column="24" />
440
+          <caret line="6" column="24" lean-forward="false" selection-start-line="6" selection-start-column="24" selection-end-line="6" selection-end-column="24" />
414 441
           <folding>
415 442
             <element signature="imports" expanded="true" />
416 443
           </folding>
417 444
         </state>
418 445
       </provider>
419 446
     </entry>
420
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodeconway/ConwayGameOfLife.java">
447
+    <entry file="file://$PROJECT_DIR$/src/test/java/com/zipcodeconway/ConwayGameOfLifeTest.java">
421 448
       <provider selected="true" editor-type-id="text-editor">
422
-        <state relative-caret-position="1200">
423
-          <caret line="80" column="29" lean-forward="true" selection-start-line="80" selection-start-column="29" selection-end-line="80" selection-end-column="29" />
449
+        <state relative-caret-position="23">
450
+          <caret line="6" column="13" lean-forward="false" selection-start-line="6" selection-start-column="13" selection-end-line="6" selection-end-column="13" />
424 451
           <folding />
425 452
         </state>
426 453
       </provider>
427 454
     </entry>
428
-    <entry file="file://$PROJECT_DIR$/src/test/java/com/zipcodeconway/ConwayGameOfLifeTest.java">
455
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodeconway/ConwayGameOfLife.java">
429 456
       <provider selected="true" editor-type-id="text-editor">
430
-        <state relative-caret-position="60">
431
-          <caret line="6" column="13" lean-forward="false" selection-start-line="6" selection-start-column="13" selection-end-line="6" selection-end-column="13" />
457
+        <state relative-caret-position="1500">
458
+          <caret line="100" column="25" lean-forward="false" selection-start-line="100" selection-start-column="25" selection-end-line="100" selection-end-column="25" />
432 459
           <folding />
433 460
         </state>
434 461
       </provider>

BIN
Screen Shot 2018-03-12 at 4.56.51 PM.png Dosyayı Görüntüle


+ 10
- 26
src/main/java/com/zipcodeconway/ConwayGameOfLife.java Dosyayı Görüntüle

@@ -72,49 +72,33 @@ public class ConwayGameOfLife {
72 72
 	*/
73 73
     private int isAlive(int row, int col, int[][] world) {
74 74
         int aliveCount = 0;
75
-        int up = (row == 0 ? row : row - 1);
76
-        int down = (row == world.length - 1 ? row : row + 1);
77
-        int left = (col == 0 ? col : col - 1);
78
-        int right = (col == world[row].length - 1 ? col : col + 1);
75
+        int up = (row == 0 ? world.length-1 : row - 1);
76
+        int down = (row == world.length - 1 ? 0 : row + 1);
77
+        int left = (col == 0 ? world[row].length-1 : col - 1);
78
+        int right = (col == world[row].length - 1 ? 0 : col + 1);
79 79
         if (world[up][col] == 1) {
80
-            if (up != row) {
81 80
                 aliveCount++;
82
-            }
83 81
         }
84 82
         if (world[up][left] == 1) {
85
-            if (up != row && left != col) {
86 83
                 aliveCount++;
87
-            }
88 84
         }
89 85
         if (world[up][right] == 1) {
90
-            if (up != row && right != col) {
91
-                aliveCount++;
92
-            }
86
+            aliveCount++;
93 87
         }
94 88
         if (world[row][left] == 1) {
95
-            if (left != col) {
96
-                aliveCount++;
97
-            }
89
+            aliveCount++;
98 90
         }
99 91
         if (world[row][right] == 1) {
100
-            if (right != col) {
101
-                aliveCount++;
102
-            }
92
+            aliveCount++;
103 93
         }
104 94
         if (world[down][col] == 1) {
105
-            if (down != row) {
106
-                aliveCount++;
107
-            }
95
+            aliveCount++;
108 96
         }
109 97
         if (world[down][left] == 1) {
110
-            if (down != row && left != col) {
111
-                aliveCount++;
112
-            }
98
+            aliveCount++;
113 99
         }
114 100
         if (world[down][right] == 1) {
115
-            if (down != row && right != col) {
116
-                aliveCount++;
117
-            }
101
+            aliveCount++;
118 102
         }
119 103
         if (aliveCount < 2 || aliveCount > 3) {
120 104
             return 0;