Beispiel #1
0
        static void Main(string[] args)
        {
            Tools tools = new Tools();

            string Start = "Welcome to my text based game on the classic pokemon games \n" +
                           "here are the rules of the game \n" +
                           "1) write in full sectences \n" +
                           "2) if the cursor is not moving press 'enter' once \n" +
                           "3) wait for 'input' to put your answer \n" +
                           "Are you ready to start your adventure \n" +
                           "input answer \n";

            tools.TypeWriter(Start);

            while (true)
            {
                string StartGame = (Console.ReadLine()).ToLower();

                if (StartGame.Contains("yes"))
                {
                    Console.Clear();
                    intro go = new intro();
                }

                else if (StartGame.Contains("no"))
                {
                    Console.WriteLine("There will be no  adventure today ,good bye");
                    Console.ReadKey();
                    System.Environment.Exit(0);
                }

                else
                {
                    Console.WriteLine("invalid input try again, input your new choice");
                }
            }


            //Path2 a = new Path2();
            //intro a = new intro();
        }
Beispiel #2
0
        public void p5()
        {
            Console.WriteLine("coming soon!!! thanks for playing ");

            Console.Write("press 1 to restart the program \n" +
                          "press 2 to exit the program \n" +
                          "input selection--->");

            string path0 = (Console.ReadLine()).ToLower();

            if (path0.Contains("1"))
            {
                Console.WriteLine("you have select  to restart ");
                Console.Clear();
                intro go = new intro();
            }

            else
            {
                Console.WriteLine("you have select to exit the program ");
                Console.ReadLine();
                System.Environment.Exit(0);
            }
        }