Esempio n. 1
0
        public Dinosaur opponentSelect()
        {
            Console.WriteLine("Choose your worthy opponent: ");
            Console.ForegroundColor = ConsoleColor.Red;
            Dinosaur dinosaur = dino1.dinoInit();

            Console.ResetColor();
            return(dinosaur);

            //int userSelect = int.Parse(Console.ReadLine());
            //if(userSelect == 1)
            //{
            //    Console.WriteLine("You have chosen Barney, while goofy a very worthy opponent!" );
            //    Console.ReadLine();
            //}else if (userSelect == 2)
            //{
            //    Console.WriteLine("You have chosen the terror of Jurrasic Park T-Rex as your opponent!");
            //    Console.ReadLine();
            //}else if(userSelect == 3)
            //{
            //    Console.WriteLine("You have chosen the pride of Bedrock, Dino the dinosaur dog!");
            //    Console.ReadLine();
            //}
            //else
            //{
            //    //need authentication
            //}
        }
Esempio n. 2
0
        public void gameOptions()
        {
            if (userInput == "y" || userInput == "yes")
            {
                Console.WriteLine("Awesome, please enter (1) to do battle a robot or (2) kick butt as a dinosaur: ");
                selectCharacter = Console.ReadLine();
                switch (selectCharacter)
                {
                case "1":
                    Console.WriteLine($"Excellent choice you are a Robot!!!");
                    Console.ForegroundColor = ConsoleColor.Blue;
                    robot    = fleet.robotInit();
                    dinosaur = fleet.opponentSelect();
                    break;

                case "2":
                    Console.WriteLine($"Excellent choice you are a Dinosaur");
                    Console.ForegroundColor = ConsoleColor.Red;
                    dinosaur = herd.dinoInit();
                    break;

                default:
                    Console.WriteLine($"Sorry that is not option....");
                    gameOptions();
                    break;
                }
            }
            else if (userInput == "n" || userInput == "no")
            {
                Console.WriteLine("Aww that's too bad, maybe next time. BYE");
                Console.WriteLine("Press Enter to exit.");
                Console.ReadLine();
                Environment.Exit(0);
            }
            else
            {
                Console.WriteLine("Please enter either yes or no");
                gameInit();
            }
        }