瀏覽代碼

add comment

Bastien Sevajol 7 年之前
父節點
當前提交
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(