public override CellState GetNextState(int neighborhoods) { if (neighborhoods == 3) { return(Alive.GetInstance()); } else { return(this); } }
public static CellState GetAliveCell() => Alive.GetInstance();