Start() private method

private Start ( ) : void
return void
Esempio n. 1
0
        public static void Start()
        {
            Playing = true;
            int currentPhase = 1;

            MainMenuView.Start();

            while (Playing)
            {
                GameController.Phase(currentPhase);
                if (currentPhase == 6)
                {
                    PrintMessageView.PrintMessage("Would you like to continue playing? yes/No ");
                    string command = Console.ReadLine().Trim().ToLower();
                    if (command == "yes" || command == "y")
                    {
                        currentPhase = 0;
                        ResetGame();
                    }
                    else
                    {
                        Playing = false;
                    }
                }
                currentPhase++;
            }
        }