Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Not-Dave Goldsmith
- // RHS
- // Programming 1
- // November 24 2015
- // Probably a Classwork
- #include "stdafx.h"
- #include "iostream"
- #include "string"
- #include "time.h"
- using namespace std;
- string Name, Start, Input;
- int Answer;
- bool death;
- void main()
- {
- cout << "PLEASE RESPOND IN PROPER WAYS.\nHello there Adventurer! Before we begin, what's your name?\n\n";
- cin >> Name;
- 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";
- 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: ";
- cin >> Start;
- if (tolower(Start[0]) == 'l')
- {
- cout << "You take the door on the left, as any smart person would. Inside, there's a book. Look inside?\n\nYES/NO: ";
- cin >> Input;
- Answer = 1;
- }
- else
- {
- 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: ";
- cin >> Input;
- Answer = 2;
- }
- if (Answer == 1)
- {
- if (tolower(Input[0]) == 'y')
- {
- 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: ";
- cin >> Input;
- Answer = 1666;
- }
- else
- {
- cout << "Too dangerous, it might have a pentagram of something in it. Below you, a trapdoor. Proceed down it?\n\nYES/NO: ";
- cin >> Input;
- Answer = 11;
- }
- }
- if (Answer == 1666)
- {
- if (tolower(Input[0]) == 'y')
- {
- 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";
- }
- else
- {
- 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: ";
- cin >> Input;
- Answer = 11;
- }
- }
- if (Answer == 11)
- {
- if (tolower(Input[0]) == 'y')
- {
- 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: ";
- cin >> Input;
- Answer = 22;
- }
- else
- {
- cout << "TEXT\n\nANSWER: ";
- cin >> Input;
- Answer = X;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement