Esempio n. 1
0
 public void LevelComplete()
 {
     Console.ResetColor();
     Console.WriteLine("\n\n\n\n");
     Console.ForegroundColor = ConsoleColor.Red;
     GamePrints.PrintLevelComplete();
     CenterText.WriteCenter("Press a key to continue");
     Console.Read();
     Console.Clear();
 }
Esempio n. 2
0
        public bool AskPlayAgain()
        {
            CenterText.WriteCenter("Try again? [Y/N] ");
            string input  = Console.ReadLine().ToUpper();
            bool   answer = true;

            switch (input)
            {
            case "Y":
            case "YES":
                answer = true;
                break;

            case "N":
            case "NO":
                answer = false;
                break;
            }
            return(answer);
        }
        public bool AskPlayAgain()
        {
            Console.ResetColor();
            Console.BackgroundColor = ConsoleColor.White;
            CenterText.WriteCenter("Give it another try? [N/Y] ");
            string input  = Console.ReadLine().ToUpper();
            bool   answer = true;

            switch (input)
            {
            case "Y":
            case "YES":
                answer = true;
                break;

            case "N":
            case "NO":
                answer = false;
                break;
            }
            return(answer);
        }