Пример #1
0
 private int CountLiveNeighbours(Cell cell)
 {
     return cell.NeighbourCells(Width(), Height()).Count(c => cells[c.X, c.Y]);
 }