예제 #1
0
파일: Rules.cs 프로젝트: Gh0stWalk3r/GDCR
 public bool Survival(Cell cell)
 {
     var activeNeighbours = cell.AliveNeighbourCount;
     return cell.IsAlive && (activeNeighbours == 2 || activeNeighbours == 3);
 }
예제 #2
0
파일: Rules.cs 프로젝트: Gh0stWalk3r/GDCR
 public bool Overcrowd(Cell cell)
 {
     var activeNeighbours = cell.AliveNeighbourCount;
     return cell.IsAlive && activeNe
 }
예제 #3
0
파일: Rules.cs 프로젝트: Gh0stWalk3r/GDCR
 public bool UnderPopulation(Cell cell)
 {
     return cell.IsAlive && cell.AliveNeighbourCount < 2;
 }