public override bool TryExecute(Cell cell, out AddNewCellToList resultingCell)
 {
     if (CountNeighbours(cell) == 3)
     {
         resultingCell = new AddNewCellToList(cell.Point, CellState.Live);
         return true;
     }
     resultingCell = null;
     return false;
 }
示例#2
0
 public abstract bool TryExecute(Cell cell, out AddNewCellToList resultingCell);