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