Ver código fonte

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

master
Josh Hofing 12 anos atrás
pai
commit
fff9117576
1 arquivos alterados com 3 adições e 9 exclusões
  1. +3
    -9
      src/rules/Conway.java

+ 3
- 9
src/rules/Conway.java Ver arquivo

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


Carregando…
Cancelar
Salvar