소스 검색

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

master
Josh Hofing 11 년 전
부모
커밋
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
}


불러오는 중...
취소
저장