-
Notifications
You must be signed in to change notification settings - Fork 402
/
adventure_game.py
135 lines (133 loc) · 6.83 KB
/
adventure_game.py
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
from time import *
print("Hello! Welcome to the game")
choice = input("Do you want to start the game? Y/N: ").upper()
if choice == 'Y':
print("Let's Go!!")
else:
print("Let's play next time ☹")
sleep(20)
print("""In which path you want to go
A- Concrete road
B- Road in middle of forest
C- Swimming through the ocean\n""")
choice = input("Enter your choice: ").upper()
if choice == 'A':
ch = input("\nThere is a building in the front would u want to enter it? Y/N: ").upper()
if ch == 'Y':
print("\nYou entered the building....")
ch1 = input("Would you like to take the lift (type Y) or go from the stairs (type N)? ").upper()
if ch1 == 'Y':
print("\nYou took the lift and the lift stopped working and it crashed, you died")
sleep(20)
elif ch1 == 'N':
ch2 = input("\nYou reached the terrace u saw a parachute would you like to take it? Y/N: ").upper()
if ch2 == 'Y':
print("\nYou took the parachute and landed on a playground.")
print("You went home empty handed. ")
sleep(20)
elif ch2 == 'N':
print("\nYou can't do anything the building security guard caught you and handed you to the police. ")
print("You failed")
sleep(20)
elif ch == 'N':
ch1 = input("\nYou passed the building and now there is a restaurant would you like to go and have lunch? Y/N: ").upper()
if ch1 == 'Y':
print("\nYou entered the restaurant....")
ch2 = input("You had lunch, would you like to pay the bill(type Y) or run away(type N)? ").upper()
if ch2 == 'Y':
print("\nYou paid the bill but you had no money so the manager called the police and you got arrested")
sleep(20)
elif ch2 == 'N':
print("\nYou ran away... but somehow the police found you so u are arrested")
sleep(20)
elif ch1 == 'N':
print("\nYou were just walking randomly and fell into a manhole...U died")
sleep(20)
elif choice == 'B':
print("\nYou are lost in the forest...")
ch = input("There is a cave in front would you like to enter it? Y/N: ").upper()
if ch == 'Y':
print("\nYou entered the cave there was a giant inside...he wants to become your friend")
ch1 = input("Would you like to become is friend? Y/N: ").upper()
if ch1 == 'Y':
print("\nYou both became friends and he took you to his kingdom made you the price of the kingdom...")
print("You both live a happy life...")
sleep(20)
if ch1 == 'N':
print("\nGiant became angry and ate you raw....RIP")
sleep(20)
elif ch =='N':
print("\nYou ignored the cave and continued your journey")
ch1 = input("You see something buried underground would you like to dig and remove it? Y/N: ").upper()
if ch1 == 'Y':
print("\nLucky you! It was a map and it lead to something ")
ch2 = input("Would you like to follow the map? Y/N: ").upper()
if ch2 == 'Y':
print("\nYou are following the map and you ended up under a big tree and theres a \"X\" mark")
ch3 = input("Would you like to dig it? Y/N: ").upper()
if ch3 == 'Y':
print("\nYou found nothing...")
print("And you got lost in the forest and now you died due to starvation")
sleep(20)
elif ch3 == 'N':
print("\nAnd you got lost in the forest and now you died due to starvation")
sleep(20)
elif ch2 == 'N':
print("\nYou didn't follow the map and went ahead...")
ch3 = input("You saw a \"X\" mark in the ground would you like to dig and see whats there? Y/N: ").upper()
if ch3 == 'Y':
print("\nYou found and treasure worth billions...You realised that the map was a distraction")
print("You are now a billionaire and living your life peacefully")
sleep(20)
elif ch3 == 'N':
print("\nYou went too deep in the forest")
print("You got lost and now you died due to starvation")
sleep(20)
elif ch1 == 'N':
print("\nYou continued your journey and came across a river")
ch2 = input("Would you like to swim and cross the river? Y/N: ").upper()
if ch2 == 'Y':
print("\nYou jumped in the river and there was a crocodile...and you know what happened next lol ")
sleep(20)
elif ch2 == 'N':
print("\nYou went ahead and found a bridge and you crossed the river")
ch3 = input("There are two ways would you like to go right or left? R/L: ").upper()
if ch3 == 'R':
print("\nYou chose the right path and you reached the city and safely went back home!")
sleep(20)
elif ch3 == 'L':
print("\nYou went along the left path...")
print("You saw a cave but you realise that it is the same cave you found at beginning...")
print("And now you are in a infinite loop...Bye Have Fun ")
sleep(20)
elif choice == 'C':
print("\nYou are swimming in the ocean")
ch1 = input("You found an island would like to go there? Y/N: ").upper()
if ch1 == 'Y':
print("\nYou are now walking in the island...")
print("You find that the island is full of cannibals 💀")
ch2 = input("Do you want to run away(type Y) or be friends with them(type N)? ").upper()
if ch2 == 'Y':
print("\nYou are running and there was a bear trap and you stepped on it")
print("They found you....")
sleep(20)
elif ch2 == 'N':
print("\nYou tried to be their friend but you forgot that they don't understand your language...")
print("They thought you were teasing them and they had tasty lunch 🍴")
sleep(20)
elif ch1 == 'N':
print("\nYou ignored the island and swam ahead")
print("You found 2 fisherman in a boat")
ch2 = input("Would you like to join them? Y/N: ").upper()
if ch2 == 'Y':
print("\nThey were very good and they took you with them and you safely made to the land")
print("You are now at home chilling 😎")
sleep(20)
elif ch2 == 'N':
print("\nYou told them that you won't come with them")
print("You are now swimming ahead and you are in middle of nowhere...")
print("You died....")
sleep(20)
else:
print("\nSelect correction option!! ")
sleep(20)