public override CellState GetNextState(int neighborhoods) { if (neighborhoods == 2 || neighborhoods == 3) { return(this); } else { return(Dead.GetInstance()); } }
public static CellState GetDeadCell() => Dead.GetInstance();