All pastes #514523 Raw Edit

Stuff

public text v1 · immutable
#514523 ·published 2007-05-27 19:57 UTC
rendered paste body
using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApplication7
{
    class Program
    {
        static void Main()
            // Ask user input. q - Quit, w - Walk, i - Inspect. Console interprets from string "theirInput"
        {
            Console.WriteLine("You awake dizzy and confused on a small path, what would you like to do? quit(quit), (walk)-walk down the path, (inspect)-inspect your surroundings.");
            string theirInput;
            Console.ReadLine();

            if (theirInput == "quit")

                // quit entry. Console tells them what to do.
            {
                Console.WriteLine("Quitting application. Hit Enter to exit.");
                Console.ReadLine();
            }
            if (theirInput == "walk")

            //Walking down path to beach. Console writes what they see.
            {
                Console.WriteLine("You walk down the path to a beachfront, you can feel the ocean breeze against your skin and you can smell the salt in the air.");
                Console.ReadLine();
            }
            if (theirInput == "inspect")
            //Inspecting themselves and the surroundings. Console writes what they see.

            {
                Console.WriteLine("You inspect the area around you to find open plains with many rocks scattered about. There are livestock in the fields grazing.");
                Console.ReadLine();
            }
            else
                //Wrong entry, console tells them to enter a correct value.
            {
                Console.WriteLine("Please enter a correct value");
                Console.ReadLine();
            }



            

        }
    }
}