Advertisement
Guest User

Untitled

a guest
Nov 24th, 2015
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.75 KB | None | 0 0
  1. // Not-Dave Goldsmith
  2. // RHS
  3. // Programming 1
  4. // November 24 2015
  5. // Probably a Classwork
  6.  
  7.  
  8. #include "stdafx.h"
  9. #include "iostream"
  10. #include "string"
  11. #include "time.h"
  12. using namespace std;
  13. string Name, Start, Input;
  14. int Answer;
  15. bool death;
  16.  
  17. void main()
  18. {
  19. cout << "PLEASE RESPOND IN PROPER WAYS.\nHello there Adventurer! Before we begin, what's your name?\n\n";
  20. cin >> Name;
  21.  
  22. cout << "\nPleasant to meet you, " << Name << ", shall we get started?\n\nKeep in mind the rules of this game, please reply in ways that are requested, such as (YES/NO). Failure to comply to these rules shall terminate the program. Here we go!\n\n";
  23.  
  24. cout << "You awake to find yourself in a dark building with two doors. Do you take the one on the left or the right?\n\nLEFT/RIGHT: ";
  25. cin >> Start;
  26.  
  27. if (tolower(Start[0]) == 'l')
  28. {
  29. cout << "You take the door on the left, as any smart person would. Inside, there's a book. Look inside?\n\nYES/NO: ";
  30. cin >> Input;
  31. Answer = 1;
  32. }
  33. else
  34. {
  35. cout << "By all means, the right choice would be the right door! You fling it open and find a dark staircase leading down. Go down or turn back?\n\nGO/BACK: ";
  36. cin >> Input;
  37. Answer = 2;
  38. }
  39.  
  40. if (Answer == 1)
  41. {
  42. if (tolower(Input[0]) == 'y')
  43. {
  44. cout << "You flip to a random page, and all you find are random scribblings and something that looks ominously like a pentagram. Touch the pentagram?\n\nYES/NO: ";
  45. cin >> Input;
  46. Answer = 1666;
  47. }
  48. else
  49. {
  50. cout << "Too dangerous, it might have a pentagram of something in it. Below you, a trapdoor. Proceed down it?\n\nYES/NO: ";
  51. cin >> Input;
  52. Answer = 11;
  53. }
  54. }
  55.  
  56.  
  57. if (Answer == 1666)
  58. {
  59. if (tolower(Input[0]) == 'y')
  60. {
  61. cout << "You burst into flames and turn to dust in a second." << Name << "'s journey ends here.\nYou made it to 3 steps!\n\n";
  62. }
  63. else
  64. {
  65. cout << "You decide that touching the mark of pure evil is probably not the best idea. There's a trap door below you, head down it?\n\nYES/NO: ";
  66. cin >> Input;
  67. Answer = 11;
  68. }
  69. }
  70.  
  71. if (Answer == 11)
  72. {
  73. if (tolower(Input[0]) == 'y')
  74. {
  75. cout << "Time to explore. You fling open the trapdoor and climb down it. There's a lever on the wall and a closed door. Try and open the door or hit the lever?\n\nDOOR/LEVER: ";
  76. cin >> Input;
  77. Answer = 22;
  78. }
  79. else
  80. {
  81. cout << "TEXT\n\nANSWER: ";
  82. cin >> Input;
  83. Answer = X;
  84. }
  85. }
  86.  
  87.  
  88. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement