Пример #1
0
        public static void GameInProgress(int cpuRange)
        {
            int cpuAttempts = GameLogic.NumOfAttempts(cpuRange);

            Print($"{texts[(int)Str.Num_of_attempts]} {cpuAttempts}");
            Attempts(cpuRange, cpuAttempts);

            if (correctAnswer)
            {
                Print(texts[(int)Str.CPU_Win]);
            }

            if (!correctAnswer)
            {
                Print(texts[(int)Str.User_Win]);
            }

            GuessTheNumber.EndGame();
        }
Пример #2
0
        public static void GameInProgress()
        {
            var numIHadInMind = GameLogic.Randomize(0, GameLogic.InputRange);
            var numOfAttempts = GameLogic.NumOfAttempts(numIHadInMind);

            Print(texts[(int)Str.CPU_Conceive_The_Number]);
            Print($"{texts[(int)Str.Input_The_Nunmber]} {numOfAttempts}");
            Attempts(numOfAttempts, numIHadInMind);

            if (correctAnswer)
            {
                Print(texts[(int)Str.You_Win]);
            }

            if (!correctAnswer)
            {
                Print(texts[(int)Str.You_Lose]);
            }

            EndGame();
        }