瀏覽代碼

Conway4 needed to change for the new patch.clone()

master
Josh Hofing 12 年之前
父節點
當前提交
0f3a74d974
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      src/rules/Conway4.java

+ 1
- 1
src/rules/Conway4.java 查看文件

@@ -15,7 +15,7 @@ public class Conway4 extends RuleSet {
int numAlive = 0;
for (Patch p : neighbors)
if (p.getState() == 1) numAlive++;
Patch p = g.getPatch(i,j).clone();
Patch p = g.getPatch(i,j).clone(newGrid);
if (numAlive < 2) {
p.setState(0); //Dies by underpopulation
}


Loading…
取消
儲存