Browse Source

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

master
Josh Hofing 11 years ago
parent
commit
fff9117576
1 changed files with 3 additions and 9 deletions
  1. +3
    -9
      src/rules/Conway.java

+ 3
- 9
src/rules/Conway.java View File

@@ -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
//}


Loading…
Cancel
Save