Ejemplo n.º 1
0
 public bool Survival(Cell cell)
 {
     var activeNeighbours = cell.AliveNeighbourCount;
     return cell.IsAlive && (activeNeighbours == 2 || activeNeighbours == 3);
 }
Ejemplo n.º 2
0
 public bool Overcrowd(Cell cell)
 {
     var activeNeighbours = cell.AliveNeighbourCount;
     return cell.IsAlive && activeNe
 }
Ejemplo n.º 3
0
 public bool UnderPopulation(Cell cell)
 {
     return cell.IsAlive && cell.AliveNeighbourCount < 2;
 }