Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.IO;
- namespace src
- {
- public class YourInfo
- {
- public static string name;
- public static bool nameCorrect = false;
- public static string sex;
- public static bool sexCorrect = false;
- public static string gender;
- public static bool male = true;
- public static string subjective = "he";
- public static string objective = "him";
- public static string possessive = "his";
- public static string reflexive = "himself";
- public static string hair;
- public static bool hairCorrect = false;
- public static string eyes;
- public static bool eyesCorrect = false;
- public static string confirm;
- public static void Check()
- {
- // switch (confirm)
- // {
- // case "2" && nameCorrect:
- if (confirm == "2" && nameCorrect)
- {
- Console.WriteLine("Maybe I didn't hear you correctly. Let's try again.");
- Console.ReadLine();
- Console.WriteLine(confirm, nameCorrect);
- // break;
- }
- // case "2" && sexCorrect:
- else if (confirm == "2" && sexCorrect)
- {
- CreateSex();
- // break;
- }
- // case "2" && (hairCorrect):
- else if (confirm == "2" && hairCorrect)
- {
- CreateHair();
- // break;
- }
- // case "2" && (eyesCorrect):
- else if (confirm == "2" && eyesCorrect)
- {
- CreateEyes();
- // break;
- }
- /* default:
- {
- break;
- } */
- }
- public static void Pronouns()
- {
- if (!male)
- {
- subjective = "she";
- objective = "her";
- possessive = "hers";
- reflexive = "herself";
- }
- }
- public static void CreateName()
- {
- Console.Clear();
- Console.WriteLine("Please enter your FIRST name, then press 'Enter'.");
- name = Console.ReadLine();
- Console.WriteLine("");
- Console.WriteLine($"So your name is {name}?");
- Console.WriteLine($"1. That's right. 2. Oh, did I say, {name}...");
- Console.WriteLine("");
- confirm = Console.ReadLine();
- Check();
- nameCorrect = true;
- CreateSex();
- }
- public static void CreateSex()
- {
- Console.WriteLine("");
- Console.WriteLine($"Now, {name}, I'm going to ask you a few questions about yourself.");
- Console.WriteLine("Please tell me if you are male, or female.");
- Console.WriteLine("1. Male 2. Female");
- sex = Console.ReadLine();
- switch (sex)
- {
- case "1":
- {
- sex = "male";
- gender = "boy";
- Pronouns();
- break;
- }
- default:
- {
- sex = "female";
- gender = "girl";
- //Pronous();
- break;
- }
- }
- Console.WriteLine("");
- Console.WriteLine($"I see, {name}, you are {sex}.");
- Console.WriteLine($"1. Yes, I'm a {gender}. 2. Are you even listening?");
- confirm = Console.ReadLine();
- Check();
- sexCorrect = true;
- CreateHair();
- }
- public static void CreateHair()
- {
- Console.WriteLine("");
- Console.WriteLine("Now, I'd like to know what color your hair and eyes are.");
- Console.ReadLine();
- Console.WriteLine($"Tell me first about your hair color, {name}.");
- Console.WriteLine("Please enter your HAIR color, then press 'Enter' to continue.");
- hair = Console.ReadLine();
- Console.WriteLine("");
- Console.WriteLine($"Oh, I really enjoy, {hair} hair.");
- Console.WriteLine($"1. Thanks! 2. I didn't say my hair was {hair}.");
- confirm = Console.ReadLine();
- Check();
- hairCorrect = true;
- CreateEyes();
- }
- public static void CreateEyes()
- {
- Console.WriteLine("");
- Console.WriteLine("We're almost done.");
- Console.WriteLine("Now, please tell me about your eyes.");
- Console.WriteLine("Please enter your EYE color, then press 'Enter' to continue");
- eyes = Console.ReadLine();
- Console.WriteLine("");
- Console.WriteLine($"And such beautiful {eyes} eyes they are, {name}.");
- Console.WriteLine($"1. I agree. 2. Who said they were {eyes}?");
- confirm = Console.ReadLine();
- Check();
- hairCorrect = true;
- }
- public static void ConfirmCreate()
- {
- Console.Clear();
- Console.WriteLine($"Alright, {name}, does it look like I got all of this right?");
- Console.WriteLine($@"Your name is {name} and you are {sex}.
- You have {hair} hair, and lovely {eyes} eyes.");
- Console.WriteLine("1. You are too kind. 2. Almost...");
- confirm = Console.ReadLine();
- Check();
- eyesCorrect = true;
- Console.Clear();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement