Пример #1
0
        public static int FallInToPit()
        {
            Console.Clear();
            Console.WriteLine("============================================");
            Console.WriteLine("You fall into a buttomless pit...");
            Console.WriteLine("============================================");
            PrintEndINFO();
            Console.WriteLine("--------\nGameOver\n--------");
            Console.WriteLine("Press any key to continue...");
            Console.ReadKey();
            Console.Clear();
            VisitedPointOfInterest.Clear();
            VisitedTrace.Clear();
            EndMapInfo.Clear();
            MapInfo.Clear();

            return(99);
        }
Пример #2
0
        public static int WumpusEatsYou()
        {
            if (newMap[PlayerCurrentCol, PlayerCurrentRow].Wumpus == true)
            {
                Console.Clear();

                Console.WriteLine("==========================");
                Console.WriteLine("You got eaten by Wumpus!");
                Console.WriteLine("==========================");
                PrintEndINFO();
                Console.WriteLine("--------\nGameOver\n--------");
                Console.WriteLine("Press any key to continue...");
                Console.ReadKey();
                Console.Clear();
                VisitedPointOfInterest.Clear();
                VisitedTrace.Clear();
                EndMapInfo.Clear();
                MapInfo.Clear();

                return(99);
            }
            else
            {
                Console.Clear();

                Console.WriteLine("==========================");
                Console.WriteLine("You missed Wumpus...");
                Console.WriteLine("You got eaten by Wumpus!");
                Console.WriteLine("==========================");
                PrintEndINFO();
                Console.WriteLine("--------\nGameOver\n--------");
                Console.WriteLine("Press any key to continue...");
                Console.ReadKey();
                Console.Clear();
                VisitedPointOfInterest.Clear();
                VisitedTrace.Clear();
                EndMapInfo.Clear();
                MapInfo.Clear();


                return(99);
            }
        }
Пример #3
0
 public static int CheckIfWumpusDead(int updateCol, int updatedRow)
 {
     if (newMap[updateCol, updatedRow].Wumpus == true)
     {
         Console.WriteLine("=============================================");
         Console.WriteLine("You shot Wumpus dead in the head, you win!!");
         Console.WriteLine("=============================================");
         PrintEndINFO();
         Console.WriteLine("--------\nGameOver\n--------");
         Console.ReadKey();
         Console.Clear();
         VisitedPointOfInterest.Clear();
         VisitedTrace.Clear();
         EndMapInfo.Clear();
         MapInfo.Clear();
         return(100);
     }
     else
     {
         return(WumpusEatsYou());
     }
 }