All pastes #514571 Raw Edit

Anonymous

public text v1 · immutable
#514571 ·published 2007-05-27 20:29 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 = "quit, walk, inspect";
            Console.ReadLine();
           

            if (theirInput == "quit")


                // quit entry. Console tells them what to do.
            {
                Console.WriteLine("Quitting.");
                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.Write("You inspect the area around you to find open plains with many rocks scattered about. There are livestock in the fields grazing.");
            }
            else
                //Wrong entry, console tells them to enter a correct value.
            {
                Console.Write("Please enter a correct value");
                Console.ReadLine();
            }



            

        }
    }
}