예제 #1
0
        public void RestartGame()
        {
            UserInterface.PlayAgainPrompt();
            string response = Console.ReadLine().Trim().ToLower();

            if (response == "yes")
            {
                Console.Clear();
                RunGame();
            }
            else
            {
                UserInterface.ThanksForPlayingPrompt();
            }
        }