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