예제 #1
0
        public void Run()
        {
            Console.WriteLine(contants.MainMenuOptions);

            string input = Console.ReadLine();

            bool isInValidInput = false;

            while (!isInValidInput)
            {
                switch (input)
                {
                case "1":
                {
                    playGame.PreGameSelection();
                    break;
                }

                case "2":
                {
                    deckCollectionManager.ManageDeckCollection();
                    break;
                }

                case "3":
                {
                    Console.WriteLine(contants.ShowCredits);
                    break;
                }

                case "4":
                {
                    Environment.Exit(0);
                    break;
                }

                default:
                {
                    Run();
                    break;
                }
                }
            }
        }