private void CreateChallenges() { for (int i = 0; i < challenges.Length; i++) { challenges[i] = new SumChallenge(); } }
private void PrepareNextChallenge() { progressChallenges.Value = game.GetCurrentChallengeNumber(); if (!game.IsFinished()) { Console.WriteLine("Preparing challenge"); countDownValue = TIME_FOR_SOLVING_CHALLENGE; SumChallenge currentChallenge = game.NextChallenge(); leftValue.Text = currentChallenge.LeftOperand().ToString(); rightValue.Text = currentChallenge.RightOperand().ToString(); userSolution.Text = ""; userSolution.Focus(); } else { StopCurrentGame(); ShowOverviewScreen(); } }