-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmulti.cpp
More file actions
245 lines (237 loc) · 8.93 KB
/
Copy pathmulti.cpp
File metadata and controls
245 lines (237 loc) · 8.93 KB
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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
#include <chrono>
#include <iostream>
#include <thread>
#include <string>
#include <cstdlib>
int code;
void rpg_game();
void r10();
int CODERS_TTYPE();
void Guessing_game() {
std::cout << "Hello and welcome to the program!\n";
std::cout << "This is v.1.2\n";
int pass = 0;
while (true) {
std::cout << " \n \n \n \n Hello! Please enter the 4 character code...\n";
std::cin >> pass;
if (pass == 7699) {
std::cout << "Good job you did it!\n";
using namespace std::chrono_literals;
std::this_thread::sleep_for(4000ms); // Sleep for 100 milliseconds
break;
} else {
std::cout << "Try again\n";
std::this_thread::sleep_for(std::chrono::seconds(2));
system("clear");
}
}
}
void Users() {
std::string user;
std::cout << "Please enter your username:\n";
std::cin >> user;
if (user == "Owen2024dj" || user == "owen2024dj") {
std::cout << "Welcome Owen, Do you want to game?\n";
std::string y_n;
// This is for if they want to game.
std::cin >> y_n;
if (y_n == "y" || y_n == "yes" || y_n == "Yes") {
std::cout << "Then go to www.roblox.com or Minecraft.net\n";
using namespace std::chrono_literals;
std::this_thread::sleep_for(4000ms); // Sleep for 100 milliseconds
}
else {
std::cout << "WHAT'S WRONG WITH YOU!!!!\n";
using namespace std::chrono_literals;
std::this_thread::sleep_for(4000ms); // Sleep for 100 milliseconds
}
}
if (user == "Eli" || user == "eli") {
std::cout << "Welcome Eli do you want to play mathplayground?\n";
std::string yorn;
std::cout << "Select y or n\n";
std::cin >> yorn;
if (yorn == "Y" || yorn == "y") {
std::cout << "Then copy and paste this in your browser:\n";
std::cout << "https://www.mathplayground.com/\n";
using namespace std::chrono_literals;
std::this_thread::sleep_for(4000ms); // Sleep for 100 milliseconds
} else {
std::cout << "WHAT'S WRONG WITH YOU!!!\n";
using namespace std::chrono_literals;
std::this_thread::sleep_for(4000ms); // Sleep for 100 milliseconds
}
}
if (user == "braden" || user == "Braden") {
std::cout << "Hello and welcome...\n";
std::cout << "Would you a fact?\n";
std::cout << "Select y or n\n";
std::string q1;
std::cin >> q1;
if (q1 == "y" || q1 == "Y") {
std::cout << "Did you know that the moon is lemon shaped?\n";
std::cout << "y or n\n";
std::string q2;
std::cin >> q2;
if (q2 == "y" || q2 == "Y") {
std::cout << "I knew you know\n";
using namespace std::chrono_literals;
std::this_thread::sleep_for(4000ms); // Sleep for 100 milliseconds
}
if (q2 == "n" || q2 == "N") {
std::cout << "I am surprised\n";
using namespace std::chrono_literals;
std::this_thread::sleep_for(4000ms); // Sleep for 100 milliseconds
}
}
}
}
void eli() {
std::string eli;
std::cout << "HI elIi WE;llcome myoto thhhe ggamem!1/\n";
std::cout << "Warning do not type ELI!!!!\n";
std::cin >> eli;
if (eli == "ELI" || eli == "eli" || eli == "Eli") {
std::cout << "Sttoop TtHhhis Nnow wwwwnooowwww.1.1.1.1.1.1.1.1!\n";
std::cout << "WWWWARNNINNNG\n";
std::cout << "Ending software issuennnnn!\n";
std::cout << "Enter a response yes or no(y or n)\n";
std::string response;
std::cin >> response;
if (response == "y" || response == "Y") {
std::cout << "Software ended\n";
using namespace std::chrono_literals;
std::this_thread::sleep_for(4000ms); // Sleep for 100 milliseconds
} else {
std::cout << "Syetem error....\n";
std::cout << "WARNING THE FDA HAS ISSUED THIS PROGRAM WILL EXPLODE THE "
"UNIVERSE IF YOU ARE STILL ON IT. WARNING,,WARNING!!\n";
std::cout << "DO NOT PRESIST DO NOT PRESIST!\n";
std::this_thread::sleep_for(std::chrono::seconds(5));
std::cout << "ENTER SHUTDOWN CODE:\n";
int code;
std::cin >> code;
if (code == 8501) {
std::cout << "HAHAHHHBJB YYOOU FAIIOLLLED BBYE BYEEE "
"HAHAHAHHAHAHHAHAHAH@!!!\n";
using namespace std::chrono_literals;
std::this_thread::sleep_for(4000ms); // Sleep for 100 milliseconds
}
}
}
}
void tyler() {
std::string tyler;
std::cout << "Hi tyler don't type NUKE\n";
std::cin >> tyler;
if (tyler == "NUKE" || tyler == "nuke" || tyler == "Nuke") {
std::cout << "MAHHHHAHAHHA I WILLLL hhhAUNtt yoiu fororrrevr HHAHHAHAHHAHAHAHHA\n";
using namespace std::chrono_literals;
std::this_thread::sleep_for(4000ms);
} else {
std::cout << "Good boy\n";
using namespace std::chrono_literals;
std::this_thread::sleep_for(4000ms);
}
}
void why() {
std::cout << "Why why why does no one use this\n";
using namespace std::chrono_literals;
std::this_thread::sleep_for(4000ms); // Sleep for 100 milliseconds
}
void jason() {
std::cout << "Weeelcome Jaaason tooo theeee pproggram...\n";
std::this_thread::sleep_for(std::chrono::seconds(5));
std::cout << " Would you like to continue?\n";
std::string inpu53;
std::cin >> inpu53;
if (inpu53 == "Yes" || inpu53 == "yes" || inpu53 == "y" || inpu53 == "Y" ||
inpu53 == "Sure" || inpu53 == "sure") {
std::cout << "Ok then lets continue\n";
std::this_thread::sleep_for(std::chrono::seconds(2));
std::cout << "Do you like the color blue? Yes or no\n";
std::string inpu54;
std::cin >> inpu54;
if (inpu54 == "Yes" || inpu54 == "yes" || inpu54 == "y" || inpu54 == "Y" ||
inpu54 == "Sure" || inpu54 == "sure") {
std::cout << "I guess you are not like 5 perecters\n";
}
std::this_thread::sleep_for(std::chrono::seconds(2));
std::cout << "Good bye!\n";
using namespace std::chrono_literals;
std::this_thread::sleep_for(4000ms); // Sleep for 100 milliseconds
}
}
void gamer() {
std::cout << "Welcome to the newest and best game I made...\n";
std::this_thread::sleep_for(std::chrono::seconds(3));
rpg_game();
}
int main() {
// Write C++ code here
int game;
// Welcome Message
std::cout
<< R"( __ __ _ _ _ _ __ __________ __ __ __ __
/ / /\ \ \___| | ___ ___ _ __ ___ ___ | |_ ___ | |_| |__ ___ /\/\ /\ /\ / //__ \_ \/\ /\/__\/__\/ _\ /__\
\ \/ \/ / _ \ |/ __/ _ \| '_ ` _ \ / _ \ | __/ _ \ | __| '_ \ / _ \ / \/ / \ \/ / / /\// /\/\ \ / /_\ / \//\ \ /_\
\ /\ / __/ | (_| (_) | | | | | | __/ | || (_) | | |_| | | | __/ / /\/\ \ \_/ / /___/ //\/ /_ \ V //__/ _ \_\ \//__
\/ \/ \___|_|\___\___/|_| |_| |_|\___| \__\___/ \__|_| |_|\___| \/ \/\___/\____/\/ \____/ \_/\__/\/ \_/\__/\__/
)" << std::endl;
// Keep these as text for contrast to the title
std::cout << "This program consists with lots of games\n";
std::cout << "\n REMEMBER THAT THIS PROGRAM IS BETA\n";
std::cout << "CREATED BY OWENB135/OWEN0963\n";
std::cout
<< "Remember that this program doesn't use GUI, so type instead.\n\n";
using namespace std::chrono_literals;
std::this_thread::sleep_for(4000ms); // Sleep for 100 milliseconds
system("clear");
// Selection table
std::cout << "┌────────────────────────────────────────┐\n";
std::cout << "│ SELECT A PROGRAM MODULE │\n";
std::cout << "├────────────────────────────────────────┤\n";
std::cout << "│ [1] Guessing Game │\n";
std::cout << "│ [2] User Verification │\n";
std::cout << "│ [3] Eli's Crazy Program │\n";
std::cout << "│ [4] Tyler's Module │\n";
std::cout << "│ [5] Runtime System Error Sandbox │\n";
std::cout << "│ [6] Jason's Sandbox │\n";
std::cout << "│ [7] Text-Based RPG Engine │\n";
std::cout << "│ [8] Reptor Tasks │\n";
std::cout << "│ [9] Coder's Ttype │\n";
std::cout << "└────────────────────────────────────────┘\n\n";
std::cout << "Enter selection index: ";
std::cin >> game;
if (game == 1) {
system("clear");
std::cout << "Starting guessing game...\n";
Guessing_game();
} else if (game == 2) {
system("clear");
Users();
} else if (game == 3) {
system("clear");
eli();
} else if (game == 4) {
system("clear");
tyler();
} else if (game == 5) {
system("clear");
why();
} else if (game == 6) {
system("clear");
jason();
} else if (game == 7) {
system("clear");
gamer();
} else if (game == 8) {
system("clear");
r10();
} else if (game == 9) {
system("clear");
CODERS_TTYPE();
} else {
std::cout << "Invalid selection. Exiting program.\n";
}
}