public override Cell Tick(Neighbours neighbours) { var aliveNeighbours = neighbours.CountAlive(); return(aliveNeighbours < 2 || aliveNeighbours > 3 ? new DeadCell() as Cell : this); }
public override Cell Tick(Neighbours neighbours) { return(neighbours.CountAlive() == 3 ? new LiveCell() as Cell : this); }