浏览代码

updated the threaded part of conway, in case we decide to use it

master
Josh Hofing 12 年前
父节点
当前提交
fff9117576
共有 1 个文件被更改,包括 3 次插入9 次删除
  1. +3
    -9
      src/rules/Conway.java

+ 3
- 9
src/rules/Conway.java 查看文件

@@ -62,15 +62,9 @@ public class Conway extends RuleSet {
//for (int j = 0; j < _original.getHeight(); j++) {
//Patch[] neighbors = _original.getPatch(_rowNum, j).get8Neighbors();
//int numAlive = 0;
//System.out.println(_original.getPatch(_rowNum, j).getX() + "," + _original.getPatch(_rowNum, j).getY());
//for (Patch p : neighbors) {
//System.out.print(p.getState());
//if (p.getState() == 1) {
//numAlive++;
//}
//}
//System.out.println();
//Patch p = _original.getPatch(_rowNum,j).clone();
//for (Patch p : neighbors)
//if (p.getState() == 1) numAlive++;
//Patch p = _original.getPatch(_rowNum,j).clone(_newGrid);
//if (numAlive < 2) {
//p.setState(0); //Dies by underpopulation
//}


正在加载...
取消
保存