Esempio n. 1
0
        static void Main(string[] args)
        {
            var tutor = new Tutor();

            while (true)
            {
                var word = tutor.GetRandomEngWord();
                Console.WriteLine($"Как переводится слово: {word}?");
                var userAnswer = Console.ReadLine();
                if (tutor.CheckWord(word, userAnswer))
                {
                    Console.WriteLine("Правильно!");
                }
                else
                {
                    var correctAnswer = tutor.Translate(word);
                    Console.WriteLine($"Неверно. Правильный ответ: {correctAnswer}");
                }
            }
        }