Exemple #1
0
 private int CountAliveNeighbourCells(int x, int y)
 {
     aliveNeighbours = 0;
     if (config.aliveBorders)
     {
         copy.Visit8Unbounded(x, y, visitAliveBorders);
     }
     else
     {
         copy.Visit8(x, y, visitDeadBorders);
     }
     return aliveNeighbours;
 }