public void Resolve() { if (CurrentCalculation.CanBeOperated()) { CalculatedNumbers.Add(new CalculatedNumber(CurrentCalculation)); CalculationList.Add(new Calculation(CurrentCalculation)); RemoveValuesFromLists(CurrentCalculation); CurrentCalculation.Restart(); SetMessage(); } }
public void RestartGame() { foreach (var number in Numbers) { number.Enable(); } CalculatedNumbers.Clear(); Message = new Message(Objetive); CurrentCalculation.Restart(); CalculationList.Clear(); }