Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // asdasdasd.cpp : Defines the entry point for the console application.
- //
- #include "stdafx.h"
- #include <iostream>
- #include <iomanip>
- #include <string>
- #include <Windows.h>
- using namespace std;
- int main()
- {
- cout << endl;
- cout << "~~~~~~~~~====+++????????++++++???IIIIIIII?????????=~::::=I77777777777777GIT77777" << endl;
- cout << "~~~~===+++????????+++++===+++??IIIIIIIIII????????++=~~::=7777777777777777GUD7777" << endl;
- cout << "==++++?????++????+======++??IIII???IIIII??????????++++=~+77777777777777777777777" << endl;
- cout << "???????+++=+++???+===+?IIIIIII????????????????+++++++++=+77777777777777777777777" << endl;
- cout << "???????+=~==+????++??IIIIIIII????+++++++++++++++++++++++?I7777777777777777777777" << endl;
- cout << "???????+=~==+????IIIIIIIIIII???+++++++++++++++==++=++++++?I777777777777777777777" << endl;
- cout << "???????+===+?IIIIIIIIIIIII???++++++=+++=====++======+++++++I777777777777I'M77777" << endl;
- cout << "???????++??IIIIIIIIIIIIII??++++=========================++++?7777777TRIGGERED777" << endl;
- cout << "?????????IIIIIIIIIIII????++++=+=============================+?777777777777777777" << endl;
- cout << "????????IIIIIIIII???????++++==================================?77777777777777777" << endl;
- cout << "???????IIIIIIIII???????++++=================================~==I7777777777777777" << endl;
- cout << "??????IIIIIIIIIII??????+++++==+=++===++========================+?777777777777777" << endl;
- cout << "?????II77IIII?????????++++++++++++++++++++===+++======+========++I77777777777777" << endl;
- cout << "????IIIIIII?????????+++++++++++++++++++?++++++++++===++====+=+++++I7777777777777" << endl;
- cout << "???????II??++++???+++++????+++++++++++++++++++++++===+=++==++++?+++7777777777777" << endl;
- cout << "??????????+++++++++++???????+++??????????++?+++++++=====+==++++++++?777777777777" << endl;
- cout << "?????+???+++++++++++?++?????++?+???+??????+++++++++=++======++++++++?77777777777" << endl;
- cout << "??????++++++++++++++++?????????????++??+++???+++++++++=++++++++++++++?7777777777" << endl;
- cout << "?????????+++++++++++++??????+????+++++++++++?++++++?+++++++++++++++++?7777777777" << endl;
- cout << "?????????++=======+++++++++++++++++===++++=++?+?++??+++++++++++++++++?I777777777" << endl;
- cout << "??????????========+++++++++++++=~:::=~::~~===++++????++??+++++++++==+++777777777" << endl;
- cout << "??????????+=============+++++++=+++==:::~======++??????++++++++++++++++777777777" << endl;
- cout << "??????????+==============+?=++???++=====~~======+++++++++++++++++++++++I77777777" << endl;
- cout << "??????????+===+=======+??~==++??+++====~~~~====~==+++++++++++++++++=++?777777777" << endl;
- cout << "???????????=========+?=~~==++++++++=====~~~====~~==++++++++++++++=====+777777777" << endl;
- cout << "???????????=~::~==+~~~~====+++++++++++++:~=====~~~===++++++++++===~~~~::::~77777" << endl;
- cout << "???????????+~~~+~::::~~~====+=++++++++++=~=====:~====+++++++++==~:::::,,,,,~7777" << endl;
- cout << "???????????+~~::~~~~~~~==++++====++++++==~+====:~=======+=====~~:::,,,....,,,~?I" << endl;
- cout << "????????????+~~~~~::~~===+++=======+++++======~~~===========~~:::,,,.,..,,,:~~~~" << endl;
- cout << "?????????????+~~~~::~~==============+++++++++=:~==========~~::,,,,,,,,,,,::~~~~:" << endl;
- cout << "??????????????=~~=~~~================++++++==~~~=========~::,,,,,,,,,:::::::::::" << endl;
- cout << "?????????????+==~~~=~=================++==~~~~==========~::,,,,,,:::~:~~~~~~::::" << endl;
- cout << "?????????????+===========================~~~===========~:,,,,,:~~~~~~~~~~~~~~~~~" << endl;
- cout << "?????????????+=====~==================================~,,,,:~~~~~~~~~~~~~~~~~~~~" << endl;
- cout << "????????I??I?+=====~=================================~::~~~~~~~~~~~~~~~~~~~~~~~~" << endl;
- cout << "?????????????======~~~==============================~~~~~~::::::~~~:::::::::::::" << endl;
- cout << "I????????????====~:::~~~~=========~~=~~~~~~=======~~~~~:::::::::::::::::::::::::" << endl;
- cout << "??????+??????+=~:::~~~=~~~=~======~~~~~~~~======~~~:::::::::::::::::::::::::::::" << endl;
- cout << "?I???+++?????+=+++==~=======~~====~~~~~~~===~==~::::::::::::::::::::::::::::::::" << endl;
- cout << "????+~++?????==++=~==~~~~~~===~==~~~~=~=====~~::::::::::,,::::::::::::::::::::::" << endl;
- cout << "????+:=+?????+=+++++=::::~~~~~~~~~~=======~~:::::::::::,,,:::::::::::::::::::,::" << endl;
- cout << "?????=+??????++???????+~~~~~~~~~~~~~====~~~:::::::::::::::::::::,::::::::::,:,,," << endl;
- cout << "??????????????????????+~~~~~~~~::~~~~=~~~~::::::::::::::::::::::,:,,,:::,,,,,,::" << endl;
- cout << "+?????????????++???????+=~~:~~~~::~~~~~~~:::,,::,::,,,,,,:::::::,,,,,,,,,,,,,,,:" << endl;
- cout << "?III????????+=++??????????+~~~~~~::~~~~~:::::::::::,::,,:::,,,,::,,,,,,,,,,,,,,," << endl;
- cout << "??IIII??????++=+?II????????==~~~~::~~~~::,:::::::::,::::::::,,,,,::,,,,,,,,,,,,," << endl;
- cout << "????III?++??+=++?I??????????=~~~~::~~~:,,,::::::::,::::::::,,,,,,,,,,,,,,,,,,,,," << endl;
- cout << "++????I+=+??+=++?????????????+~:::,:~:::,:::::::,,,::::,,,,,,,,,,,,,,,,:,,,,,,,," << endl;
- cout << "+++??+?+=+?????????????I???????II??+~:,,::::::,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,," << endl;
- cout << "++++=+?==??????????????I?????????????,,,:::::,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,," << endl;
- cout << "++++++?++???===+???????I????????????~,,::::::,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,," << endl;
- cout << " __ __ ___ .__ __. __ ___ .__ __. _______ " << endl;
- cout << "| | | | / \\ | \\ | | | | / \\ | \\ | | | \\ " << endl;
- cout << "| |__| | / ^ \\ | \\| | | | / ^ \\ | \\| | | .--. |" << endl;
- cout << "| __ | / /_\\ \\ | . ` | | | / /_\\ \\ | . ` | | | | |" << endl;
- cout << "| | | | / _____ \\ | |\\ | | `----./ _____ \\ | |\\ | | '--' |" << endl;
- cout << "|__| |__| /__/ \\__\\ |__| \\__| |_______/__/ \\__\\ |__| \\__| |_______/ " << endl;
- cout << " Press any key to continue" << endl;
- system("pause");
- system("cls");
- string choice;
- bool status = true;
- char c;
- int gstate, p;
- int counter1 = 0;
- gstate = 0;
- p = 0;
- while (status)
- {
- switch(gstate)
- {
- case 0:
- cout << "You are standing at the front door of an old abandoned house with \"crazy-eyed\" windows. " << endl;
- cout << "What do you do? (f, b, p, h)" << endl;
- cin >> choice;
- c = choice[0];
- if (c == 'f')
- {
- cout << "You're brave .... but stupid. Entering the house ..." << endl;
- gstate = 1;
- p = p + 1;
- }
- else if ( c == 'b')
- {
- cout << "Something deep in the house starts making chicken noises." << endl;
- }
- else if ( c == 'p')
- {
- cout << "You have " << p << " points." << endl;
- }
- else if ( c == 'h')
- {
- cout << "Help is not available here. You\'re on your own!" << endl;
- }
- else cout << "???" << " " << gstate << endl;
- break;
- case 1:
- cout << "You are standing in the foyer of the house. It\'s dark and a little creepy." << endl;
- cout << "What do you do? (l,r,b,u,p,h)" << endl;
- cin >> choice;
- c = choice[0];
- if ( c == 'b')
- {
- cout <<"Something deep in the house starts making chicken sounds." << endl;
- gstate = 0;
- }
- else if (c == '1')
- {
- cout << "You entered the powder, but unfortunately there's no floor." << endl;
- cout << "You impale yourself on some rusty plumbing and die a slow painful death." << endl;
- cout << "Bummer." << endl;
- gstate = 999;
- }
- else if (c == 'r')
- {
- cout << "Entering the library." << endl;
- gstate = 2;
- p = p + 1;
- }
- else if (c == 'u')
- {
- cout << "The stairs are blocked with broken furniture" << endl;
- }
- else if (c == 'p')
- {
- cout << "You have " << p << "points." << endl;
- }
- else if (c == 'h')
- {
- cout <<"Help is not available here. You\'re on your own!" << endl;
- }
- else cout << "???" << " " << c << endl;
- break;
- case 2:
- cout << "You entered the library. The room consists entirely of floor to ceiling" << endl;
- cout << "bookshelves filled with dusty books. You start sneezing immediately and" << endl;
- cout << "uncontrollaby. What do you do? (b, f, p, h)" << endl;
- cin >> choice;
- c = choice[0];
- if(c == 'f')
- {
- cout << "Not a good idea. You can't catch your breath because of sneezing" << endl;
- cout << "and you pass out" << endl;
- gstate = 3;
- }
- else if(c == 'b')
- {
- cout << "something deep in the house starts making chicken sounds" << endl;
- gstate = 1;
- }
- else if(c == 'p')
- {
- cout << "you have " << p << " points" << endl;
- }
- else if(c == 'h')
- {
- cout << "Help is not available here. you're on your own" << endl; }
- else cout << "??? " << " " << c << endl;
- break;
- cout << "You are in a dark, dank place" << endl;
- cout << "You hear the sound of someone trying to start a chainsaw" << endl;
- cout << "What do you do? (s, p, h)" << endl;
- cin >> choice;
- c = choice[0];
- if(c == 's')
- {
- cout << "You start screaming and something in the house starts laughing" << endl;
- counter1++;
- if (counter1 = 5)
- {
- cout << "Something hits you hard upside the head, and everything goes really dark" << endl;
- gstate = 2;
- counter1 = 0;
- }
- }
- else if (c == 'p')
- {
- cout << "Who cares how many points you have?" << endl;
- }
- else if (c == 'h')
- {
- cout << "Screaming for help seems appropriate" << endl;
- }
- break;
- case 999:
- cout << "You died with " << p << " points" << endl;
- cout << "Would you like to play a game of chess? " << endl;
- status = false;
- break;
- default:
- cout << "gstate = " << gstate << endl << "There's a hole in your game logic. Plug it!" << endl;
- }
- }
- cout << endl << endl;
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement