Advertisement
Guest User

Codinge

a guest
Nov 15th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.83 KB | None | 0 0
  1. namespace ethics
  2. {
  3. public class Program
  4.  
  5. {
  6.  
  7. public static string typedCommand;
  8.  
  9. private Room[] allRooms;
  10.  
  11. private Room currentRoom;
  12.  
  13. public static int PharoahSide = 0;
  14.  
  15. public static int GhostSide = 0;
  16.  
  17. public static int PharoahAndHasinaRelationship = 0;
  18. public static int EarlyDeath = 0;
  19.  
  20.  
  21. static void FirstDecision()
  22. {
  23. Console.WriteLine("Do you want to accept his request?");
  24. typedCommand = Console.ReadLine();
  25. if (typedCommand.Equals("Yes"))
  26. {
  27. Console.WriteLine("You agree imediately, maybe you didn't want to disappoint him, or maybe you just didn't care. It's not like it matters, right? Wrong, let me introduce you to a young girl and then, we'll see what you really think.");
  28. PharoahSide++;
  29. }
  30. else if (typedCommand.Equals("No"))
  31. {
  32. Console.WriteLine("You refuse, angering the pharoah, he feels you've betrayed him, he doesn't see why he should keep such a disobedient servant. Maybe you were right, maybe that was the right thing to do, maybe you made someone very happy. Unfortunately, no decisions make everyone happy.I'm afraid you'll have to pay the price for this and now, you'll never meet Hasina.");
  33. GhostSide++;
  34. Environment.Exit(0);
  35. }
  36. }
  37.  
  38. static void Directions()
  39. {
  40. Console.WriteLine("After accepting the Pharoah's request, you make your way back to the corridor and look both ways, to the left, is the destination of the book, to the right, your way out.");
  41. Console.WriteLine("Hey! Stop, I know what you're doing stop it right now!");
  42. Console.WriteLine("Infront of you appears to be a floating girl in distress");
  43. Console.WriteLine("Queation/Walk away");
  44.  
  45. typedCommand = Console.ReadLine();
  46.  
  47. if (typedCommand.Equals ("Question") || typedCommand.Equals ("question"))
  48. {
  49. Console.WriteLine("Sorry, I don't understand, I'm only doing my job, the pharoah sent me to erase the dead princess's name.");
  50. Console.WriteLine("At this, the girl seems even more worried.");
  51. Console.WriteLine("NO! I mean, why would you do that? What did she do to deserve it?");
  52. Console.WriteLine("Do you understand the issue here?");
  53. Console.WriteLine("Yes/No");
  54. typedCommandEquals = Console.ReadLine();
  55. if (typedCommand.Equals("Yes") || typedCommand.Equals("No"))
  56. {
  57. Console.WriteLine("Sorry, I don't know what you mean, it's just a name.");
  58. }
  59. }
  60.  
  61.  
  62.  
  63. Console.WriteLine("Which way do you want to go?");
  64. Console.WriteLine("Right/Left");
  65. typedCommand = Console.ReadLine();
  66.  
  67. if(typedCommand.Equals("Right") || typedCommand.Equals("right"))
  68. {
  69. PharoahSide--;
  70. Console.WriteLine("You head Right, ignoring the pharoah's request and siding with the ghost, she doesn't deserve this.")
  71.  
  72. }
  73. }
  74.  
  75. public static void Main()
  76.  
  77. {
  78.  
  79. Console.WriteLine("Welcome to My Dilemma ");
  80.  
  81. Program newGame = new Program();
  82.  
  83.  
  84.  
  85. newGame.allRooms = new Room[]{
  86.  
  87. new Room(0,"Nowhere","You can not go this way",new int[] {1,1,1,1}),
  88.  
  89. new Room(1,"The Past","A small room cast in shadows. A girl sits in the middle of the room, eyes cast to the ground. The room around her is dark, gloomy, empty. She's alone. Alone in a seemingly endless darkness.",new int[] {2,0,0,0}),
  90.  
  91. new Room(2,"Streets","A bustling, loud, chaotic street. Buildings tower high over. Hasina smiles at the liveliness of this place, she finally feels at home.",new int[] {4,1,3,5}),
  92.  
  93. new Room(3,"Poor man's house","A house in the middle of the bustling street, overshadowed by the many bigger houses around it. She enters the house with the boy. The room is small, almost completely empty and yet it is so much better than her own, it has something she'snever seen, joy.",new int[] {0,0,0,2}),
  94.  
  95. new Room(4,"Corridor","It's long corridor, you stand in the middle. A statue stands before you, face shattered to pieces, missing an arm. It's of a girl, a very familiar girl, someone so very important, she's gone now.",new int[] {0,2,0,0}),
  96.  
  97. new Room(5,"Throne Room","You walk into an enormous, open room, it seems to strecth on forever, stopping at a large throne. The man on it stares down at you, donned in gold and jewels.",new int[] {0,0,2,0}),
  98.  
  99. new Room(6,"Outside","Just beyond the doors of the pharoah's house, other people may feel privilleged to be here. Not you.", new int[] {})
  100.  
  101. };
  102.  
  103. newGame.currentRoom = newGame.allRooms[1];
  104.  
  105. Console.WriteLine("Here we are in " + newGame.currentRoom.roomName);
  106.  
  107. Console.WriteLine(newGame.currentRoom.roomIntro);
  108.  
  109. newGame.playGame();
  110.  
  111. }
  112.  
  113.  
  114.  
  115.  
  116.  
  117. public void playGame()
  118. {
  119.  
  120.  
  121. System.Threading.Thread.Sleep(3000);
  122. Console.WriteLine("The girl sits there for what seems like hours. She may be deep in thought or just staring blankly at the floor.");
  123. System.Threading.Thread.Sleep(3000);
  124. Console.WriteLine("The sound of sniffling fills the room and it suddenly becomes apparent that she is crying. Eyes red and puffy, hair dangling limply infront of her face, the tears trickle down, dampening her dress.");
  125. System.Threading.Thread.Sleep(3000);
  126. Console.WriteLine("She hears the door creak and hastilly wipes her eyes before a man enters the room.");
  127. Console.ForegroundColor = ConsoleColor.DarkBlue;
  128. System.Threading.Thread.Sleep(2000);
  129. Console.WriteLine("Hasina, beautiful, I've come to visit you, did you miss me?");
  130. Console.ForegroundColor = ConsoleColor.White;
  131. Console.WriteLine("Do you want to greet him? (Yes/No)");
  132.  
  133.  
  134. typedCommand = Console.ReadLine();
  135.  
  136.  
  137. if (typedCommand.Equals("Yes") || typedCommand.Equals("yes"))
  138. {
  139. PharoahAndHasinaRelationship++;
  140. Console.WriteLine("She rushes forward to the man, arms wrapping around him.");
  141. System.Threading.Thread.Sleep(2000);
  142. Console.WriteLine("The man smiles, hugging her back.");
  143. System.Threading.Thread.Sleep(2000);
  144. Console.ForegroundColor = ConsoleColor.Magenta;
  145. Console.WriteLine("Daddy, please, help me, get me out of here... Please, I want to go home. I'll be good.");
  146. System.Threading.Thread.Sleep(2000);
  147. Console.ForegroundColor = ConsoleColor.White;
  148. Console.WriteLine("He frowns down at her, pushing her off of him gently.");
  149. System.Threading.Thread.Sleep(2000);
  150. Console.ForegroundColor = ConsoleColor.DarkBlue;
  151. Console.WriteLine("Hasina! We've talked about this, you are home and you're staying. This is for your own good, it's to protect you.");
  152. System.Threading.Thread.Sleep(2000);
  153. Console.ForegroundColor = ConsoleColor.White;
  154. Console.WriteLine("Hasina turned away from him and returned to her spot on the floor, ignoring him.");
  155. System.Threading.Thread.Sleep(2000);
  156. Console.ForegroundColor = ConsoleColor.DarkBlue;
  157. Console.WriteLine("Fine... I'll just leave, I'm only doing this because I care about you. I hope you realise that.");
  158. System.Threading.Thread.Sleep(2000);
  159.  
  160. }
  161. else if (typedCommand.Equals("No") || typedCommand.Equals("no") || typedCommand.Equals("nah"))
  162. {
  163. PharoahAndHasinaRelationship--;
  164. Console.WriteLine("She sat there, back facing him.");
  165. Console.ForegroundColor = ConsoleColor.DarkBlue;
  166. Console.WriteLine("Hasina! Don't ignore me.");
  167. System.Threading.Thread.Sleep(2000);
  168. Console.ForegroundColor = ConsoleColor.White;
  169. Console.WriteLine("She remained silent, not even daring to glance at him");
  170. System.Threading.Thread.Sleep(2000);
  171. Console.ForegroundColor = ConsoleColor.DarkBlue;
  172. Console.WriteLine("Hasina, this is pathetic, ignoring me? Like a child! Stop it.");
  173. System.Threading.Thread.Sleep(2000);
  174. Console.ForegroundColor = ConsoleColor.White;
  175. Console.WriteLine("Her fists clenched and she turned to face him, anger flooding her face.");
  176. System.Threading.Thread.Sleep(2000);
  177. Console.ForegroundColor = ConsoleColor.Magenta;
  178. Console.WriteLine("I AM A CHILD! I should be outside, playing, making friends but you've locked me in here! Why? Why would you do this? I should be with my family... I want to be free!");
  179. System.Threading.Thread.Sleep(2000);
  180. Console.ForegroundColor = ConsoleColor.DarkBlue;
  181. Console.WriteLine("DON'T SPEAK BACK TO ME! This is for your own good! You're staying here and that's final.");
  182. System.Threading.Thread.Sleep(2000);
  183. Console.ForegroundColor = ConsoleColor.White;
  184. Console.WriteLine("Do you want to let him leave?");
  185. System.Threading.Thread.Sleep(2000);
  186. Console.WriteLine("(Yes/No)");
  187.  
  188.  
  189. typedCommand = Console.ReadLine();
  190. if (typedCommand.Equals("Yes") || typedCommand.Equals("yes"))
  191. {
  192. PharoahAndHasinaRelationship++;
  193. Console.WriteLine("Hasina turns back to sit on the floor, ignoring the man as he exits the room, sparing a final glance.");
  194. }
  195. else if (typedCommand.Equals("No") || typedCommand.Equals("no"))
  196. {
  197. Console.WriteLine("How will you stop him, if that's your goal.");
  198. Console.WriteLine("(Shout/Run)");
  199. typedCommand = Console.ReadLine();
  200. if (typedCommand.Equals("Shout") || typedCommand.Equals("shout"))
  201. {
  202. Console.WriteLine("Hasina didn't want him to go. How could he treat her like this?");
  203. System.Threading.Thread.Sleep(2000);
  204. Console.ForegroundColor = ConsoleColor.Magenta;
  205. Console.WriteLine("DON'T YOU DARE LEAVE!");
  206. System.Threading.Thread.Sleep(2000);
  207. Console.ForegroundColor = ConsoleColor.White;
  208. Console.WriteLine("He turned to her, a look of fury on his face, with a hand around her neck, he lifted her off the ground and threw her back.");
  209. System.Threading.Thread.Sleep(2000);
  210. Console.ForegroundColor = ConsoleColor.DarkBlue;
  211. Console.WriteLine("You will stay here! I'll make sure of it, you will never leave this room!");
  212. System.Threading.Thread.Sleep(2000);
  213. Console.ForegroundColor = ConsoleColor.White;
  214. Console.WriteLine("That was the last thing she heard and the last thing she saw was the darkness of her room as the door, her last hope, closed.");
  215. System.Threading.Thread.Sleep(2000);
  216. PharoahAndHasinaRelationship--;
  217. PharoahAndHasinaRelationship--;
  218. PharoahAndHasinaRelationship--;
  219. EarlyDeath++;
  220. }
  221. else if (typedCommand.Equals("Run"))
  222. {
  223. Console.WriteLine("Instead of trying to stop him, Hasina runs for it, darting past him.");
  224. System.Threading.Thread.Sleep(2000);
  225. Console.WriteLine("Hasina runs far and fast, she isn't seen again, not by the royal family at least. They searched for a long time. She remained hidden.");
  226. System.Threading.Thread.Sleep(2000);
  227. Console.ForegroundColor = ConsoleColor.Red;
  228. Console.WriteLine("You... You found a way to prevent the future.... NO! That's not allowed! That isn't supposed to happen! Go back, GO BACK!");
  229. Console.ForegroundColor = ConsoleColor.White;
  230. playGame();
  231. }
  232. }
  233.  
  234. }
  235.  
  236.  
  237.  
  238.  
  239.  
  240. if (EarlyDeath = 0) ;
  241. {
  242. Console.ForegroundColor = ConsoleColor.White;
  243. Console.WriteLine("10 years later");
  244. currentRoom = allRooms[6];
  245. Console.WriteLine(currentRoom.roomIntro);
  246.  
  247. Console.WriteLine("It is a bright day, despite the events that had taken place earlier, you're outside, awaiting any further commands, this is the first break you've had in a long time, often overworked by a ruler who cares little for his people. You're summoned to the throne room.");
  248. System.Threading.Thread.Sleep(2000);
  249. Console.WriteLine("You wander through the corridor and stop for a second.");
  250. currentRoom = allRooms[4];
  251. Console.WriteLine(currentRoom.roomIntro);
  252. Console.WriteLine("You don't have time to reminisce.");
  253. System.Threading.Thread.Sleep(2000);
  254. currentRoom = allRooms[5];
  255. Console.WriteLine("He's waiting there. Looming over you, a dark expression on his face, you know it must be serious. He stares down at you and suddenly you feel small, nothing in comparison to him.");
  256. System.Threading.Thread.Sleep(2000);
  257. Console.ForegroundColor = ConsoleColor.DarkBlue;
  258. Console.WriteLine("I need you to do something for me, servant. My daughter, the traitor, you are to remove her name from the book, as if she never existed.");
  259. System.Threading.Thread.Sleep(2000);
  260. Console.ForegroundColor = ConsoleColor.White;
  261. Console.WriteLine("Think this through player, it may be more important than you think.");
  262.  
  263. FirstDecision();
  264. }
  265.  
  266.  
  267. typedCommand = typedCommand.ToLower(); //useful line of code
  268.  
  269. checkCommand(typedCommand);
  270.  
  271.  
  272. if (2 < GhostSide)
  273. {
  274. Console.WriteLine("The pharoah struggled to trust you, constantly faced with your disobedience, after the last betrayal, he ordered for your execution. Hasina tried her best to save you, unforunately due to her lack of physical body, she could not prevent this and after a few days, her name was erased by another servant. Some stories don't have a happy ending and they never will. This is one of those stories.");
  275. }
  276.  
  277. }
  278.  
  279.  
  280.  
  281. public void checkCommand(string Command)
  282. {
  283.  
  284.  
  285.  
  286. if (typedCommand.Equals("restart"))
  287. {
  288.  
  289. Console.WriteLine("Thank you for playing");
  290.  
  291. }
  292.  
  293.  
  294. }
  295.  
  296.  
  297.  
  298. public class Room
  299. {
  300.  
  301. public int roomID;
  302.  
  303. public string roomName;
  304.  
  305. public string roomIntro;
  306.  
  307. public int[] navigationArray;
  308.  
  309.  
  310.  
  311. public Room(int _ID, string _RName, string _rIntro, int[] _setupArray)
  312. {
  313.  
  314. roomID = _ID;
  315.  
  316. roomName = _RName;
  317.  
  318. roomIntro = _rIntro;
  319.  
  320. navigationArray = _setupArray;
  321.  
  322. }
  323.  
  324. }
  325. }
  326. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement