예제 #1
0
        public void Play()
        {
            while (true)
            {
                DisplayMessage.Games();

                var userInput = Console.ReadLine();

                StartGame(SelectedGame(userInput));

                DisplayMessage.WantToPlayAgain();
                var input = Console.ReadLine();

                switch (input)
                {
                case "y":
                case "Y":
                    Console.Clear();
                    continue;

                case "n":
                case "N":
                    Console.Clear();
                    DisplayMessage.EndGame();
                    break;

                default:
                    Console.Clear();
                    continue;
                }

                break;
            }
        }