예제 #1
0
        public static void hallway()
        {
            Console.Clear();
            WriteLine("You start down the Hall.");
            WriteLine("The hall has a few spots where light bulbs would normally be set. However, only one bulb is in and lit, making the hall a bit gloomy.");
            WriteLine("You notice 3 separate doors on your left; they could be closets or storage spaces but all 3 doors are closed.");
            WriteLine("The hall ends at a 'T'-intersection with another hallway; where that hall ends, there is a door leading into another room.");
            WriteLine("Press 'Enter' to continue.");
            Console.ReadLine();

            WriteLine("|       -------------\\---------");
            WriteLine("|                               ");
            WriteLine("|       -----------        -----");
            WriteLine("|       | Util.    \\       |    ");
            WriteLine("|       -----------        |    ");
            WriteLine("|       |         \\        |    ");
            WriteLine("|       | Closet2 |        |    ");
            WriteLine("|       -----------        |    ");
            WriteLine("|       |         \\  Hall  |    ");
            WriteLine("|       | Closet1 |        |    ");
            WriteLine("|       ----------|        |----|");
            WriteLine("|       |           Entry       |");

            WriteLine("What would you like to do?");
            WriteLine("Enter '0' to Quit the program\nEnter '1' to check the nearest Door\nEnter '2' to check the Middle Door\nEnter '3' to check the Far Door\nEnter '4' to continue to the End of the Hall");

            var hallChoice = Int32.Parse(Console.ReadLine());

            switch (hallChoice)
            {
            case 1:
                Encounters.hallCloset2();
                break;

            case 2:
                ItemSearches.nothing();
                break;

            case 3:
                ItemSearches.nothing();             // change/update
                break;

            case 4:
                Backhouse.tHall();
                break;

            default:
                WriteLine("You have exited the program.");
                break;
            }
        }