Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace dogrun
- {
- class Program
- {
- static void Main(string[] args)
- {
- string narrative()
- {
- Console.Clear();
- Console.WriteLine("Running out of the house you run into the mailman walking up the driveway");
- Console.WriteLine("1. Run pass him");
- Console.WriteLine("2. greet him with a \"hello\"");
- return Console.ReadLine();
- }
- string narativesnooze()
- {
- Console.WriteLine("you Press snooze but wake up 9 min later with a even stronger craving for a gas station hotdog");
- Console.WriteLine("1. Press Snooz again");
- Console.WriteLine("2. Get dressed quickly and take off.");
- return Console.ReadLine();
- }
- string name;
- string choice;
- Console.WriteLine("Welcome to the craving!");
- Console.WriteLine("Please ener name:");
- name = Console.ReadLine();
- Console.Clear();
- Console.WriteLine("Hello {0}!", name);
- Console.WriteLine("Press enter to start");
- Console.ReadLine();
- Console.Clear();
- Console.WriteLine("You open your eyes not remembering the dream you were just experiencing. You have a crazy craving for a gas station hot dog.");
- Console.WriteLine("1. Get dressed quickly and take off.");
- Console.WriteLine("2. Go back to sleep.");
- choice = Console.ReadLine(); //needed a variable choice to record input
- if (choice == "1")
- {
- choice = narrative();
- }
- if (choice == "2")
- {
- choice = narativesnooze();
- }
- Console.ReadLine();
- }
- }
- }
Add Comment
Please, Sign In to add comment