-
Notifications
You must be signed in to change notification settings - Fork 0
/
doremongamefinal.cpp
543 lines (493 loc) · 21.7 KB
/
doremongamefinal.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
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
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <unistd.h>
#include <cstdlib>
// FUNCTION OF DOREMON.
void Doraemon() {
printf(" /\\_/\\ \n");
printf(" ( o.o ) \n");
printf(" > ^ < \n");
printf(" / | \\ \n");
printf(" |__|__| \n");
printf(" (__|__) \n");
}
// FUNCTION OF AXE WHICH IS 1ST GADGET.
void axe(){
printf("\t\t\t\t\t\t\t\t /\\ \n");
printf("\t\t\t\t\t\t\t\t /..\\ \n");
printf("\t\t\t\t\t\t\t\t /....\\ \n");
printf("\t\t\t\t\t\t\t\t==============|------|\n");
printf("\t\t\t\t\t\t\t\t \\..../ \n");
printf("\t\t\t\t\t\t\t\t \\../ \n");
printf("\t\t\t\t\t\t\t\t \\/ \n");
}
// FUNCTION OF RIVER WHICH IS 2ND HURDLE.
void water() {
printf("============================================================================================================================================================\n");
printf("~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ \n");
printf("~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ \n");
printf("~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~RIVER~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ \n");
printf("~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ \n");
printf("~`~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ \n");
printf("~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ \n");
printf("============================================================================================================================================================\n");
}
// FUNCTION OF SHIP WHICH IS 2ND GADGET.
void ship(){
printf("\t\t\t========================================================================================\n");
printf("\t\t\t\\- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - /\n");
printf("\t\t\t \\ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -/\n");
printf("\t\t\t \\- - - - - - - - - - - - - - - - - - - -SHIP- - - - - - - - - - - - - - - - - - - /\n");
printf("\t\t\t \\ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - /\n");
printf("\t\t\t \\- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -/\n");
printf("\t\t\t \\ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - /\n");
printf("\t\t\t \\=========================================================================/\n");
printf("\t\t\t \\=======================================================================/\n");
}
//FUNCTION OF DINOSAUR WHICH IS 3RD HURDLE.
void dinosaur(){
printf("\t\t\t ___\n");
printf("\t\t\t /oo_)\n");
printf("\t\t\t / / \n");
printf("\t\t\t / / \n");
printf("\t\t\t _.----._/ /\n");
printf("\t\t\t / /\n");
printf("\t\t\t __/ ( | ( |\n");
printf("\t\t\t/__.-'|_|---|__|\n");
}
// FUNCTION OF 3rd GADGET.
void torch(){
printf("\t\t\t\t\t\t\t\t _______\n");
printf("\t\t\t\t\t\t\t\t|:::::::\\''''''''''\n");
printf("\t\t\t\t\t\t\t\t|:::::::|>''''''''''\n");
printf("\t\t\t\t\t\t\t\t|_______/''''''''''\n");
}
// FUNCTION OF NOBITA.
void NOBITA() {
printf(" O\n");
printf(" /|\\ \n");
printf(" / \\ \n");
}
//FUNCTION OF LEVEL 1.
int level1() {
srand(time(NULL));
int guess, secnum, atmpts;
sleep(3);
printf("\n\n\t\t\t\t\t\t\t\t\tNOBITA!\n \t\t\t\t\t\t\t\tHERE COMES THE LEVEL 1\n \nTry your best to guess the secret number.\n\nYou have 5 chances to win this level in an attempt.\n\t Best of luck Nobita\n");
sleep(6);
printf("\n\n\t Get ready in! 3! 2! 1!\n");
sleep(3);
do {
secnum = rand() % 100 + 1;
atmpts = 0;
do {
printf("\nNOBITA! Enter the number you are guessing:");
scanf("%d", &guess);
atmpts++;
if (guess < secnum) {
printf("Uh.. Huh.. this number is TOO LOW\n");
} else if (guess > secnum) {
printf("Umm.. No.. this number is TOO HIGH\n");
} else {
printf("\nHurray Nobita!!You have got the secret number in %d attempts\n", atmpts);
return 0; // Exit the function if Nobita guesses the number
}
} while (atmpts < 5); // Exit the inner loop after 5 attempts
printf("\nOh no Nobita, you've reached the maximum number of attempts. The secret number was %d\n TRY AGAIN (T-T)\n", secnum);
sleep(3);
} while (1); // Infinite outer loop for playing again
return 0;
}
// FUNCTION OF 2ND LEVEL.
int Anagrams(char[], char[]);
void level2() {
while(1){
char str1[50], str2[50];
printf("\n\nNOBITA! The first word is: ");
scanf("%s", str1);
printf("\nNOBITA! The second word is: ");
scanf("%s", str2);
int check = Anagrams(str1, str2);
if (check == 1){
printf("\nYesss NOBITA! \"%s\" and \"%s\" are Anagrams.\n", str1, str2);
break;
}
else
printf("\nUh huh... NOBITA! \"%s\" and \"%s\" are not Anagrams.\n\tTRY AGAIN! YOU CAN DO THIS\n", str1, str2);
}
}
int Anagrams(char s1[], char s2[]) {
int first_str[256] = {0};
int second_str[256] = {0};
int i = 0;
while (s1[i] != '\0') {
first_str[(unsigned char)s1[i]]++;
i++;
}
i = 0;
while (s2[i] != '\0') {
second_str[(unsigned char)s2[i]]++;
i++;
}
for (i = 0; i < 256; i++) {
if (first_str[i] != second_str[i])
return 0;
}
return 1;
}
// BASE FUNCTION OF LEVEL 3
// Function to generate a random choice for the dinosaur.
char getDinosaurChoice() {
char choices[] = {'R', 'P', 'S'};
int index = rand() % (sizeof(choices) / sizeof(choices[0]));
return choices[index];
}
// Function to determine the winner of the game
int determineWinner(char Nobita, char Dinosaur) {
if (Nobita == Dinosaur) {
return 0; // It's a tie
} else if ((Nobita == 'R' && Dinosaur == 'S') ||
(Nobita == 'P' && Dinosaur == 'R') ||
(Nobita == 'S' && Dinosaur == 'P')) {
return 1; // NOBITA wins
} else {
return -1; // Dinosaur wins
}
}
// FUNCTION OF LEVEL 3
level3(){
srand(time(NULL));
while (1) {
char NobitaChoice;
printf("\nNOBITA! your choice:\nPress 'R' for rock.\nPress 'P' for paper.\nPress 'S' for scissors.\n");
scanf(" %c", &NobitaChoice);
if (NobitaChoice == 'Q' || NobitaChoice == 'q') {
printf("Thanks for playing! Goodbye.\n");
break;
}
if (NobitaChoice != 'R' && NobitaChoice != 'P' && NobitaChoice != 'S') {
printf("Invalid choice. Try again.\n");
continue;
}
char DinosaurChoice = getDinosaurChoice();
printf("\nDinosaur's choice: %c\n", DinosaurChoice);
int result = determineWinner(NobitaChoice, DinosaurChoice);
if (result == 0) {
printf("\nNoooo! It's a tie!\n");
} else if (result == 1) {
printf("\nYayyyyy NOBITA! You did it!\n");
break; // Terminate the loop if NOBITA wins
} else {
printf("HAHAHA! I WON! (Dinosaur wins)\n");
printf("\nTRY AGAIN!");
sleep(4);
}
}
}
// FUNTION FOR BELL
void bell(){
printf("\n\a\a tringgg!");
sleep(3);
printf("\n\t\a\a tringgg!!");
sleep(3);
printf("\n\t\t\a\a tringgg!!!\n");
sleep(3);
}
int main() {
printf("\t\t\t\t\t\t\t\t NOBITA'S WILD ADVENTURE\n");
printf("\t\t\t\t\t\t\t\t -----------------------");
printf("\n\n");
sleep(3);
printf("\n\t\t\t\t\t\t\t O \t\t\t /\\_/\\ \n");
printf("\t\t\t\t\t\t\t/|\\ ---->NOBITA\t\t\t( o.o ) ---->DORAEMON\n");
printf("\t\t\t\t\t\t\t/ \\ \t\t\t > ^ < \n");
printf("\t\t\t\t \t\t\t\t\t/ | \\ \n");
printf("\t\t\t\t \t\t\t\t\t|__|__| \n");
printf("\t\t\t\t \t\t\t\t\t(__|__) \n");
printf("\n~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`\n");
sleep(3);
system("pause");
system("cls");
printf("\t\t\t\t\t\t\t\t WELCOME NOBITA!\n");
printf("\t\t\t\t\t\t\t\t ~~~~~~~~~~~~~~~\n");
sleep(3);
printf("\t\t\t\t\t\t\t OH NO! NOBITA GOT LOST IN JUNGLE (T-T)");
printf("\n\t\t\t\t\t\t\t --------------------------------------\n");
sleep(3);
printf("\t\t\t\t\t\t\t GET READY FOR AN EXCITING JUNGLE ADVENTURE\n");
printf("\t\t\t\t\t\t\t ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n");
printf("\n");
sleep(3);
printf("\t\t\t\t\t\t\t\tHELP HIM FIND HIS WAY HOME\n");
printf("\t\t\t\t\t\t\t\txxxxxxxxxxxxxxxxxxxxxxxxxx\n\n");
sleep(3);
printf("\t\t\t\t\t\t\t\t LETS BEGIN THE JOURNEY\n\t\t\t\t\t\t\t\t ~`~`~`~`~`~`~`~`~`~`~`\n\t\t\t\t\t\t\t\t\tGOODLUCK!\n");
sleep(3);
system("pause");
system("cls");
printf("\n\n");
NOBITA();
printf("\nWHAT IS THIS???");
sleep(2);
printf("\n\n A Note?");
sleep(2);
printf("\n ______________");
printf("\n| NOTE |");
printf("\n|______________|\n");
sleep(3);
printf("\nLets read this...");
sleep(1);
printf("\n ___________________________________________________________________________________________________________________________");
printf("\n| Sup, Nobita! Time to roll back home, but guess what? Three epic levels are throwing some serious shade on your path. |");
printf("\n|Show 'em who's boss, crack those levels, and home sweet home will be waiting for you like a boss waiting for a high-five! |");
printf("\n|___________________________________________________________________________________________________________________________|");
sleep(10);
system("pause");
system("cls");
printf("\n\n\n\t\t\t\t\t\t\t\t *****LEVEL 1*****");
printf("\n\t\t\t\t\t\t\t\t ~~~~~~~~~~~~~~~~~\n\n");
sleep(2);
NOBITA();
printf("\t\t\tOh yes! I remember the map of my house was in my BACKPACK but where is my BACKPACK??\n");
sleep(3);
printf("\n\n");
NOBITA();
printf("\t\t\tbackpack..\n\n");
sleep(3);
printf("\t\t\tbackpack...\n\n");
sleep(3);
printf("\t\t\tWhere are you.. My Backpack?\n\n");
sleep(3);
printf("\t\t\t\t\t\t\t\t //\\\\ \n");
printf("\t\t\t\t\t\t\t\t // \\\\ \n");
printf("\t\t\t\t\t\t\t\t // \\\\ \n");
printf("\t\t\t\t\t\t\t\t //______\\\\ \n");
printf("\t\t\t\t\t\t\t\t | | \n");
printf("\t\t\t\t\t\t\t\t | | \n");
printf("\t\t\t\t\t\t\t\t | TREE | \n");
printf("\t\t\t\t\t\t\t\t | | \n");
printf("\t\t\t\t\t\t\t\t |________| \n");
printf("\t\t\t\t\t\t\t\t ||| \n");
printf("\t\t\t\t\t\t\t\t ||| \n");
printf("\t\t\t\t\t\t\t\t ___|||___ \n");
printf("\t\t\t\t\t\t\t\t | ||| | \n");
printf("\t\t\t\t\t\t\t\t | BACKPACK| \n");
printf("\t\t\t\t\t\t\t\t | ||| | \n");
printf("\t\t\t\t\t\t\t\t | ||| | \n");
printf("\t\t\t\t\t\t\t\t |_|||_|||_| \n");
sleep(2);
printf("\n\n");
NOBITA();
printf("\n\t\t\tWHAT!!! A TREE FELL ON MY BACKPACK! \n\t\t\tWHAT SHOULD I DO NOW?\n");
sleep(4);
bell();
NOBITA();
printf("\n\a\a\t\t\tWait! Where is that sound coming from??\n\n");
sleep(4);
printf("\a\a\t\t\tNOBITA! You have to win this level in order to call DORAEMON so that he can help you.\n\n");
sleep(4);
NOBITA();
printf("\n\a\t\t\tBut what should I do??\n");
sleep(4);
printf("\n\a\a\t\t\tYou have to guess the secret number so that you can call DORAEMON.\n");
sleep(4);
NOBITA();
printf("\n\t\t\tI'll try my best!!\n\n");
printf("~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`\n");
system("pause");
system("cls");
level1();
sleep(2);
printf("\n\n");
NOBITA();
printf("\t\t\t\a\aDORAEMON!");
sleep(3);
printf("\n\n");
NOBITA();
printf("\t\t\t\a\aDORAEMON!!!");
printf("\n\n");
sleep(4);
printf("\n\n");
Doraemon();
printf("\t\t\t\a\aNOBITA! I AM HERE.\n");
sleep(3);
printf("\n\n");
NOBITA();
printf("\t\t\tDORAEMON! My BACKPACK!.\n\t\t\tMy BACKPACK is beneath the tree. Help me!\n");
sleep(4);
printf("\n\n");
Doraemon();
printf("\t\t\tDon't worry NOBITA!. Here, take this MAGICAL AXE and get your BACKPACK back.\n\n");
sleep(3);
axe();
sleep(3);
printf("\n\n");
NOBITA();
printf("\t\t\tYAYYY!!! I got my BACKPACK and PASSED THE LEVEL 1\n");
sleep(5);
system("pause");
system("cls");
printf("\n\n\n\t\t\t\t\t\t\t\t *****LEVEL 2*****");
printf("\n\t\t\t\t\t\t\t\t ~~~~~~~~~~~~~~~~~\n\n");
sleep(2);
printf("\n\n");
water();
sleep(2);
printf("\n\n");
NOBITA();
printf("\t\t\t\a\aOh no! A RIVER!! There is no bridge to cross it (T-T)\n\t\t\t How am I suppose to cross this river?\n\n");
sleep(4);
bell();
printf("\n\n");
NOBITA();
printf("\a\a\t\t\tWait! This is the same sound that was coming in level 1!!\n\n");
sleep(4);
printf("\a\a\t\t\tWELL DONE NOBITA! You won LEVEL 1.\n\t\t\tNow you have to win LEVEL 2 in order to call DORAEMON so that he can help you.\n\n");
sleep(4);
printf("\n\n");
NOBITA();
printf("\a\t\t\tBut what should I do??\n");
sleep(3);
printf("\n\a\a\t\t\tYou have to put two words that are ANAGRAMS.\n\n");
sleep(4);
NOBITA();
printf("\t\t\thehehe! I don't know.. what ANAGRAMS means\n\n");
sleep(4);
printf("\t\t\t\a\aNobitaaaaa...\n\n \t\t\t\aANAGRAM is a word or phrase formed by rearranging the letters of another word\n\n");
sleep(4);
NOBITA();
printf("\t\t\tI'll try my best to win this level too!!\n\n");
printf("\a\a\a\a\a\a\a\a\a\a\a\a\a\a");
printf("\n~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`\n");
sleep(3);
printf("\n\t\t\tGet Ready! 3! 2! 1!\n\n");
system("pause");
system("cls");
level2();
printf("\n\n");
NOBITA();
printf("\t\t\t\a\aDORAEMON!");
sleep(3);
printf("\n\n");
NOBITA();
printf("\t\t\t\a\aDORAEMON!!!");
printf("\n\n");
sleep(4);
printf("\n\n");
Doraemon();
printf("\t\t\t\a\aNOBITA! I AM HERE.\n\n");
sleep(3);
NOBITA();
printf("\t\t\tDORAEMON! There is a RIVER! help me.\n\t\t\tI want to cross this RIVER.\n\n");
sleep(3);
Doraemon();
printf("\t\t\t\a\a\aDon't worry NOBITA! Here, take this SUPER SHIP and cross the river safely.\n\n\n");
sleep(4);
ship();
sleep(4);
printf("\n\n");
NOBITA();
printf("\t\t\tDORAEMON!! I PASSED THE LEVEL 2 TOO. WE WILL GO HOME SOON!!\n");
sleep(5);
system("pause");
system("cls");
printf("\n\n\n\t\t\t\t\t\t\t\t *****LEVEL 3*****");
printf("\n\t\t\t\t\t\t\t\t ~~~~~~~~~~~~~~~~~\n\n");
sleep(2);
dinosaur();
sleep(3);
printf("\n\n");
NOBITA();
printf("\t\t\tWHATT!! A DINOSAUR!\n\n");
sleep(3);
dinosaur();
printf("\n\n\t\t\tRAURRRRR~ RAURRRRRRR~~ RAURRRRRRR~~~\n");
sleep(3);
printf("\t\t\tNOBITAAA! IF YOU WANT TO GO HOME YOU HAVE TO DEFEAT ME FIRST.\n\n");
sleep(4);
NOBITA();
printf("\t\t\tDefeat You? Defeat You in what?\n\n");
printf("\t\t\tHAHAHAHA, IN Rock Paper And Scissor\n\n");
NOBITA();
printf("\t\t\tA CHALLENGE? CHALLENGE ACCEPTED!\n");
printf("\n~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`\n");
sleep(3);
printf("\n\t\t\tGet Ready! 3! 2! 1!\n\n");
system("pause");
system("cls");
level3();
printf("\n\n");
NOBITA();
printf("\t\t\t\a\aDORAEMON!");
sleep(3);
printf("\n\n");
NOBITA();
printf("\t\t\t\a\aDORAEMON!!!");
printf("\n\n");
sleep(4);
printf("\n\n");
Doraemon();
printf("\t\t\t\a\aNOBITA! I AM HERE.\n\n");
sleep(3);
NOBITA();
printf("\t\t\tDORAEMON!! I defeated that DINOSAUR but he is not moving from my way.. (T-T)\n\n");
sleep(4);
Doraemon();
sleep(3);
printf("\t\t\t\a\a\aDon't worry NOBITA! Here, take this SMALL LIGHT and make this dinosaur small.\n\n");
sleep(4);
torch();
printf("\n\n");
NOBITA();
sleep(3);
printf("\t\t\tFINALLYYYYYYYYYYYYYYYY I WON!!!\n\n");
sleep(5);
int ch;
NOBITA();
printf("\t\t\tNOW I CAN FINALLY GO HOME!\n\n");
sleep(5);
NOBITA();
printf("\t\t\t\tDOORS???\n\n");
printf("\t\t---------------- -------------------- --------------------\n");
printf("\t\t| | | | | |\n");
printf("\t\t| | | | | |\n");
printf("\t\t| | | | | |\n");
printf("\t\t| | | | | |\n");
printf("\t\t| | | | | |\n");
printf("\t\t| | | | | |\n");
printf("\t\t| O | | O | | O |\n");
printf("\t\t| | | | | |\n");
printf("\t\t| | | | | |\n");
printf("\t\t| | | | | |\n");
printf("\t\t| | | | | |\n");
printf("\t\t| | | | | |\n");
printf("\t\t| | | | | |\n");
printf("\t\t---------------- -------------------- --------------------\n");
printf(" 1 2 3\n");
sleep(5);
printf("\nNOBITA! YOU DID VERY WELL!\n\n Now Carefully choose ONE DOOR.\n\n In these THREE DOORS, one leads you to your HOME!");
scanf("%d", &ch);
if (ch == 1) {
printf("\tOH NOOO! NOBITA!\n\n\t\t SADLY Nobitaaa.. fate took a WILD TURN!\n\n\t\t\tHE BECOMES A LION MEAL (T-T)\n\n\n");
printf("\t #### #### M M ####### ##### V V ####### ######\n");
printf("\t # # # MM MM # # # V V # # #\n");
printf("\t # #### # # M M M M ###### # # V V ####### # #\n");
printf("\t # # ###### M M M M # # # V V # ######\n");
printf("\t # # # # M M M # # # V V # # #\n");
printf("\t ##### # # M M ####### ##### V ####### # #\n");
} else if (ch == 2) {
printf("\t\t\t\t\t\t\t YEHHHHH! YOU SELECTED THE RIGHT DOOR NOBITA!\n\n\t\t\t\t\t\t\t YOU REACHED YOUR HOME NOBITA!\n\n\n\t\t\t\t\t\t\t\t NOBITA: MOMMMMMMMMMMMM!!!\n\n\n\t\t\t\t\t\t\t\t\t THE END ");}
else if (ch == 3) {
printf("\tOH NOOO! WRONG DOOR NOBITA! \n\n\t\t SADLY Nobitaaa.. fate took a WILD TURN!\n\n\t\t\tHE BECOMES A LION MEAL (T-T)\n\n\n");
printf(" #### #### M M ####### ##### V V ####### ######\n");
printf(" # # # MM MM # # # V V # # #\n");
printf(" # #### # # M M M M ###### # # V V ####### # #\n");
printf(" # # ###### M M M M # # # V V # ######\n");
printf(" # # # # M M M # # # V V # # #\n");
printf(" ##### # # M M ####### ##### V ####### # #\n");
} else {
printf("INVALID OPTION\n");
}
return 0;
}