Advertisement
Guest User

Untitled

a guest
Dec 6th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.93 KB | None | 0 0
  1. // asdasdasd.cpp : Defines the entry point for the console application.
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include <iostream>
  6. #include <iomanip>
  7. #include <string>
  8. #include <Windows.h>
  9. using namespace std;
  10.  
  11. int main()
  12. {
  13. cout << endl;
  14. cout << "~~~~~~~~~====+++????????++++++???IIIIIIII?????????=~::::=I77777777777777GIT77777" << endl;
  15. cout << "~~~~===+++????????+++++===+++??IIIIIIIIII????????++=~~::=7777777777777777GUD7777" << endl;
  16. cout << "==++++?????++????+======++??IIII???IIIII??????????++++=~+77777777777777777777777" << endl;
  17. cout << "???????+++=+++???+===+?IIIIIII????????????????+++++++++=+77777777777777777777777" << endl;
  18. cout << "???????+=~==+????++??IIIIIIII????+++++++++++++++++++++++?I7777777777777777777777" << endl;
  19. cout << "???????+=~==+????IIIIIIIIIII???+++++++++++++++==++=++++++?I777777777777777777777" << endl;
  20. cout << "???????+===+?IIIIIIIIIIIII???++++++=+++=====++======+++++++I777777777777I'M77777" << endl;
  21. cout << "???????++??IIIIIIIIIIIIII??++++=========================++++?7777777TRIGGERED777" << endl;
  22. cout << "?????????IIIIIIIIIIII????++++=+=============================+?777777777777777777" << endl;
  23. cout << "????????IIIIIIIII???????++++==================================?77777777777777777" << endl;
  24. cout << "???????IIIIIIIII???????++++=================================~==I7777777777777777" << endl;
  25. cout << "??????IIIIIIIIIII??????+++++==+=++===++========================+?777777777777777" << endl;
  26. cout << "?????II77IIII?????????++++++++++++++++++++===+++======+========++I77777777777777" << endl;
  27. cout << "????IIIIIII?????????+++++++++++++++++++?++++++++++===++====+=+++++I7777777777777" << endl;
  28. cout << "???????II??++++???+++++????+++++++++++++++++++++++===+=++==++++?+++7777777777777" << endl;
  29. cout << "??????????+++++++++++???????+++??????????++?+++++++=====+==++++++++?777777777777" << endl;
  30. cout << "?????+???+++++++++++?++?????++?+???+??????+++++++++=++======++++++++?77777777777" << endl;
  31. cout << "??????++++++++++++++++?????????????++??+++???+++++++++=++++++++++++++?7777777777" << endl;
  32. cout << "?????????+++++++++++++??????+????+++++++++++?++++++?+++++++++++++++++?7777777777" << endl;
  33. cout << "?????????++=======+++++++++++++++++===++++=++?+?++??+++++++++++++++++?I777777777" << endl;
  34. cout << "??????????========+++++++++++++=~:::=~::~~===++++????++??+++++++++==+++777777777" << endl;
  35. cout << "??????????+=============+++++++=+++==:::~======++??????++++++++++++++++777777777" << endl;
  36. cout << "??????????+==============+?=++???++=====~~======+++++++++++++++++++++++I77777777" << endl;
  37. cout << "??????????+===+=======+??~==++??+++====~~~~====~==+++++++++++++++++=++?777777777" << endl;
  38. cout << "???????????=========+?=~~==++++++++=====~~~====~~==++++++++++++++=====+777777777" << endl;
  39. cout << "???????????=~::~==+~~~~====+++++++++++++:~=====~~~===++++++++++===~~~~::::~77777" << endl;
  40. cout << "???????????+~~~+~::::~~~====+=++++++++++=~=====:~====+++++++++==~:::::,,,,,~7777" << endl;
  41. cout << "???????????+~~::~~~~~~~==++++====++++++==~+====:~=======+=====~~:::,,,....,,,~?I" << endl;
  42. cout << "????????????+~~~~~::~~===+++=======+++++======~~~===========~~:::,,,.,..,,,:~~~~" << endl;
  43. cout << "?????????????+~~~~::~~==============+++++++++=:~==========~~::,,,,,,,,,,,::~~~~:" << endl;
  44. cout << "??????????????=~~=~~~================++++++==~~~=========~::,,,,,,,,,:::::::::::" << endl;
  45. cout << "?????????????+==~~~=~=================++==~~~~==========~::,,,,,,:::~:~~~~~~::::" << endl;
  46. cout << "?????????????+===========================~~~===========~:,,,,,:~~~~~~~~~~~~~~~~~" << endl;
  47. cout << "?????????????+=====~==================================~,,,,:~~~~~~~~~~~~~~~~~~~~" << endl;
  48. cout << "????????I??I?+=====~=================================~::~~~~~~~~~~~~~~~~~~~~~~~~" << endl;
  49. cout << "?????????????======~~~==============================~~~~~~::::::~~~:::::::::::::" << endl;
  50. cout << "I????????????====~:::~~~~=========~~=~~~~~~=======~~~~~:::::::::::::::::::::::::" << endl;
  51. cout << "??????+??????+=~:::~~~=~~~=~======~~~~~~~~======~~~:::::::::::::::::::::::::::::" << endl;
  52. cout << "?I???+++?????+=+++==~=======~~====~~~~~~~===~==~::::::::::::::::::::::::::::::::" << endl;
  53. cout << "????+~++?????==++=~==~~~~~~===~==~~~~=~=====~~::::::::::,,::::::::::::::::::::::" << endl;
  54. cout << "????+:=+?????+=+++++=::::~~~~~~~~~~=======~~:::::::::::,,,:::::::::::::::::::,::" << endl;
  55. cout << "?????=+??????++???????+~~~~~~~~~~~~~====~~~:::::::::::::::::::::,::::::::::,:,,," << endl;
  56. cout << "??????????????????????+~~~~~~~~::~~~~=~~~~::::::::::::::::::::::,:,,,:::,,,,,,::" << endl;
  57. cout << "+?????????????++???????+=~~:~~~~::~~~~~~~:::,,::,::,,,,,,:::::::,,,,,,,,,,,,,,,:" << endl;
  58. cout << "?III????????+=++??????????+~~~~~~::~~~~~:::::::::::,::,,:::,,,,::,,,,,,,,,,,,,,," << endl;
  59. cout << "??IIII??????++=+?II????????==~~~~::~~~~::,:::::::::,::::::::,,,,,::,,,,,,,,,,,,," << endl;
  60. cout << "????III?++??+=++?I??????????=~~~~::~~~:,,,::::::::,::::::::,,,,,,,,,,,,,,,,,,,,," << endl;
  61. cout << "++????I+=+??+=++?????????????+~:::,:~:::,:::::::,,,::::,,,,,,,,,,,,,,,,:,,,,,,,," << endl;
  62. cout << "+++??+?+=+?????????????I???????II??+~:,,::::::,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,," << endl;
  63. cout << "++++=+?==??????????????I?????????????,,,:::::,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,," << endl;
  64. cout << "++++++?++???===+???????I????????????~,,::::::,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,," << endl;
  65.  
  66.  
  67.  
  68. cout << " __ __ ___ .__ __. __ ___ .__ __. _______ " << endl;
  69. cout << "| | | | / \\ | \\ | | | | / \\ | \\ | | | \\ " << endl;
  70. cout << "| |__| | / ^ \\ | \\| | | | / ^ \\ | \\| | | .--. |" << endl;
  71. cout << "| __ | / /_\\ \\ | . ` | | | / /_\\ \\ | . ` | | | | |" << endl;
  72. cout << "| | | | / _____ \\ | |\\ | | `----./ _____ \\ | |\\ | | '--' |" << endl;
  73. cout << "|__| |__| /__/ \\__\\ |__| \\__| |_______/__/ \\__\\ |__| \\__| |_______/ " << endl;
  74.  
  75. cout << " Press any key to continue" << endl;
  76. system("pause");
  77.  
  78. system("cls");
  79.  
  80. string choice;
  81. bool status = true;
  82. char c;
  83. int gstate, p;
  84. int counter1 = 0;
  85.  
  86. gstate = 0;
  87. p = 0;
  88.  
  89. while (status)
  90. {
  91. switch(gstate)
  92. {
  93. case 0:
  94. cout << "You are standing at the front door of an old abandoned house with \"crazy-eyed\" windows. " << endl;
  95. cout << "What do you do? (f, b, p, h)" << endl;
  96.  
  97. cin >> choice;
  98. c = choice[0];
  99.  
  100. if (c == 'f')
  101. {
  102. cout << "You're brave .... but stupid. Entering the house ..." << endl;
  103. gstate = 1;
  104. p = p + 1;
  105. }
  106. else if ( c == 'b')
  107. {
  108. cout << "Something deep in the house starts making chicken noises." << endl;
  109. }
  110. else if ( c == 'p')
  111. {
  112. cout << "You have " << p << " points." << endl;
  113. }
  114. else if ( c == 'h')
  115. {
  116. cout << "Help is not available here. You\'re on your own!" << endl;
  117. }
  118. else cout << "???" << " " << gstate << endl;
  119. break;
  120. case 1:
  121. cout << "You are standing in the foyer of the house. It\'s dark and a little creepy." << endl;
  122. cout << "What do you do? (l,r,b,u,p,h)" << endl;
  123.  
  124.  
  125. cin >> choice;
  126. c = choice[0];
  127.  
  128. if ( c == 'b')
  129. {
  130. cout <<"Something deep in the house starts making chicken sounds." << endl;
  131. gstate = 0;
  132. }
  133. else if (c == '1')
  134. {
  135. cout << "You entered the powder, but unfortunately there's no floor." << endl;
  136. cout << "You impale yourself on some rusty plumbing and die a slow painful death." << endl;
  137. cout << "Bummer." << endl;
  138. gstate = 999;
  139. }
  140. else if (c == 'r')
  141. {
  142. cout << "Entering the library." << endl;
  143. gstate = 2;
  144. p = p + 1;
  145. }
  146. else if (c == 'u')
  147. {
  148. cout << "The stairs are blocked with broken furniture" << endl;
  149. }
  150. else if (c == 'p')
  151. {
  152. cout << "You have " << p << "points." << endl;
  153. }
  154. else if (c == 'h')
  155. {
  156. cout <<"Help is not available here. You\'re on your own!" << endl;
  157. }
  158. else cout << "???" << " " << c << endl;
  159.  
  160. break;
  161. case 2:
  162. cout << "You entered the library. The room consists entirely of floor to ceiling" << endl;
  163. cout << "bookshelves filled with dusty books. You start sneezing immediately and" << endl;
  164. cout << "uncontrollaby. What do you do? (b, f, p, h)" << endl;
  165.  
  166.  
  167. cin >> choice;
  168. c = choice[0];
  169.  
  170. if(c == 'f')
  171. {
  172. cout << "Not a good idea. You can't catch your breath because of sneezing" << endl;
  173. cout << "and you pass out" << endl;
  174. gstate = 3;
  175. }
  176. else if(c == 'b')
  177. {
  178. cout << "something deep in the house starts making chicken sounds" << endl;
  179. gstate = 1;
  180. }
  181. else if(c == 'p')
  182. {
  183. cout << "you have " << p << " points" << endl;
  184. }
  185. else if(c == 'h')
  186. {
  187. cout << "Help is not available here. you're on your own" << endl; }
  188. else cout << "??? " << " " << c << endl;
  189. break;
  190.  
  191. cout << "You are in a dark, dank place" << endl;
  192. cout << "You hear the sound of someone trying to start a chainsaw" << endl;
  193. cout << "What do you do? (s, p, h)" << endl;
  194.  
  195. cin >> choice;
  196. c = choice[0];
  197.  
  198. if(c == 's')
  199. {
  200. cout << "You start screaming and something in the house starts laughing" << endl;
  201. counter1++;
  202. if (counter1 = 5)
  203. {
  204. cout << "Something hits you hard upside the head, and everything goes really dark" << endl;
  205. gstate = 2;
  206. counter1 = 0;
  207. }
  208. }
  209. else if (c == 'p')
  210. {
  211. cout << "Who cares how many points you have?" << endl;
  212. }
  213. else if (c == 'h')
  214. {
  215. cout << "Screaming for help seems appropriate" << endl;
  216. }
  217.  
  218. break;
  219.  
  220. case 999:
  221. cout << "You died with " << p << " points" << endl;
  222. cout << "Would you like to play a game of chess? " << endl;
  223. status = false;
  224. break;
  225. default:
  226. cout << "gstate = " << gstate << endl << "There's a hole in your game logic. Plug it!" << endl;
  227. }
  228. }
  229.  
  230. cout << endl << endl;
  231.  
  232. system("pause");
  233. return 0;
  234. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement