Bastien Sevajol преди 8 години
родител
ревизия
abbf82d7f3
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3 1
      sandbox/life_game/simulation.py

+ 3 - 1
sandbox/life_game/simulation.py Целия файл

@@ -18,7 +18,9 @@ class CellDieBehaviour(Behaviour):
18 18
         around_count = len(data[CellProximityMechanism])
19 19
         if around_count in [2, 3]:
20 20
             return False
21
-        return True  # If we return around_count, when around_count is 0
21
+        # If we return around_count, when around_count is 0,
22
+        # cycle manager will consider as False
23
+        return True
22 24
 
23 25
     def action(self, data):
24 26
         new_empty = Empty(