-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCYA.cpp
140 lines (108 loc) · 3.28 KB
/
CYA.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
#include <iostream>
using namespace std;
#include <stdlib.h>
void cave() {
cout<<"Congrats! you have made it into the cave and have found the orange diamond go back and play again to find more!" <<endl;
exit (1);
}
int main() {
char day[10];
char name[12];
char shower;
char shirt;
char right;
char left;
char direction;
char chasm;
char cave1;
char lavapit;
char water;
char pups;
char allgood;
char yousure;
cout<<"Ok so first I will warn you this will waste your time and take a while to finish so get confortable and you have been warned" <<endl;
cout<<"Ok all good with that?" <<endl;
cout<<"***Use 'Y' for yes and 'N' for no.***" <<endl;
cin >> allgood;
if (allgood == 'Y' || allgood == 'y')
{
cout<<"Alright good lets go" <<endl;
}
else if (allgood == 'N' || allgood == 'N')
{
cout<<"Too bad you arnt ready come back when your ready" <<endl;
exit (1);
}
cout<<"Welcome to the quest for the diamoond" <<endl;
cout<<"Before we start what is your first name?" <<endl;
cin >> name;
cout<<"Alright lets get started which way should we go first?" <<endl;
cout<<"Use either R or L to choose direction" <<endl;
cin >> direction;
if (direction == 'R' || direction == 'r')
{
cout<<"Right it is!" <<endl;
}
else if (direction == 'L' || direction == 'l')
{
cout<<"Alright left than!" <<endl;
}
cout<<"Oh no! you have encountered a chasm! How will you get across?" <<endl;
cout<<"***Use R for rope and J for jump***" <<endl;
cin >> chasm;
if (chasm == 'R' || chasm == 'r')
{
cout<<"You made it! Good job!" <<endl;
}
else if (chasm == 'J' || chasm == 'j')
{
cout<<"You fell and died! Better luck next time." <<endl;
exit (1);
}
{
cout<<"Great you made it now you have come across a cave do you go thruough or keep away from it?" <<endl;
cout<<"***Use Y to go in N to keep going***" <<endl;
cin >> cave1;
if (cave1 == 'Y' || cave1 == 'y')
{
cout<<"You go into the gave" <<endl;
cave ();
}
else if (cave1 == 'N' || cave1 == 'n')
{
cout<<"You keep going and walk past the cave" <<endl;
}
{
cout<<"Yikes! You've come across a lava pit what do you use to get across?" <<endl;
cout<<"***Use B for boat, D for bridge and J for jump***" <<endl;
cin >> lavapit;
if (lavapit == 'B' || lavapit == 'b')
{
cout<<"Nice try you boat was made of wood and burned! Better luck next time" <<endl;
exit (1);
}
else if (lavapit == 'D' || lavapit == 'd')
{
cout<<"Good you noticed the bridge but you got unlucky and it broke better luck next time!" <<endl;
exit (1);
}
else if (lavapit == 'J' || lavapit == 'j')
{
cout<<"You figured it out i never said the lava pit was big!" <<endl;
}
cout<<"Alright so you got this far you probably think this is pretty boring dont you? well if you do than now is a good place tp stop and no you progress wont be saved so yeah." <<endl;
cout<<"***Press 'G' to keep going and 'S' to stop.***" <<endl;
cin >> yousure;
if (yousure == 'G' || yousure == 'g')
{
cout<<"Ok well lets go i guess" <<endl;
}
else if (yousure == 'S' || yousure == 's')
{
cout<<"Ok good choice..." <<endl; system("rm thegame");
exit (1);
}
cout<<"Alright well lets keep going here *sigh*" <<endl;
}
}
}