generated from Code-Institute-Org/python-essentials-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpath.py
251 lines (207 loc) · 12.9 KB
/
path.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
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
"""
Game Paths
"""
# Third Floor Winning Game Path (Path 1)
p1_correct_path = {
"p1": """\nYou enter and find an empty room with three doors, side
\rby side. The first and third look ordinary and unassuming,
\rhowever the second has a trail of tiny spiders walking
\rtowards and underneath it. They look as if they are fleeing
\rfrom something.\n""",
"p2": """\nYou enter into a dimly lit room illuminated by a crack in the
\rroof. As you close the door the ceiling collapses, trapping
\ryou inside. You look around to find a lone door ahead, with
\rno way back or alternate path. You have no choice but to
\renter.\n
\rYou walk inside and struggle to see anything. You remember
\rthe damaged switch board and begin to worry. Could the rest
\rof your journey be in virtual darkness? While walking around
\ryou trip over an object. You go back to inspect it. By a
\rstroke of luck, you find a flash light. You will finally be
\rable to see. There are three doors in front of you.\n""",
"p3": """\nYou open the first door to find a library filled with books
\rthat are covered in dust and cobwebs. As you search through
\rthe literature, you lift a biographic novel.\n""",
"p3i": """\nYou enter the room and find three doors side by side. The
\rfirst has a blacked-out window next to it. You try and look
\rthrough but cannot discern anything. As you scramble,
\rdesperate to gather your surroundings you find a tiny
\rscratched off surface and look through. You realise you ares
\rthree stories above a garden. You try to look for more clues
\rand see what appears to be the beginnings of staircase
\rhandle connected to the first door.\n""",
"p4": """\nYou open the door to find a long hallway leading one direction,
\rthis looks promising. You start your journey trying to
\rlocate the end......It feels like you have been walking for
\rhours. You finally reach a cross roads which departs to
\rthree doors.\n""",
"p5": """\nAs you open the door you walk through a thick layer of cobwebs.
\rYou see three doors, the first looks untouched, the second
\rappears to be covered in fang marks and the third has a
\rstrange light beaming underneath it.\n""",
"p6": """\nYou walk into an icy, cold room. As you look around your breath
\rstarts to produce condensation due to the extreme
\rtemperature. You see three doors all looking ordinary. As you
\rclosely inspect them you find the handle on the second door
\rto be covered in dry blood.\n""",
"p7": """\nYou enter to see a massive greenhouse sheltering large exotic
\rplants. As you walk through you hear scuttering all around
\ryou. You find a piece of paper titled “Experiment Report, By
\rDr. Charles Falken”.\n""",
"p8": """\nYou enter a room to find heaps of spider eggs and
\rexoskeletons the size of cars. You see three doors each with
\ra strange clear substance on them. As you touch and inspect
\rit your hand starts to burn. Could it be venom?\n""",
"p9": """\nAmid opening the door you are stupefied by the odour of
\rrotting matter dissipating within, though there is nothing
\rproducing it. As you walk around you hear a deafening
\rhissing noise coming from the first two doors in front of
\ryou while the third seems to be eminating the smell. Scared
\ryou think of heading back but realise this is the only way
\rout.\n""",
"p10": """\nYou enter the room, shocked and horrified by what you see.
\rSeveral silk cocoons, blood and human remains are scattered
\rthroughout. As you try to exit from where you entered, a
\rspider web shoots from across the room blocking the
\rdoor.\n
\rOH NO!!! IT IS A COLOSSAL TARANTULA THE SIZE OF A HOUSE. It
\rstarts running straight towards you. Petrified, you curl
\rinto a ball, clutching your flashlight. As you accept your
\rimpending doom your flashlight suddenly goes off. What? How
\rcould this be? The tarantula starts retreating swiftly. You
\rbegin to understand why the switch board was damaged and why
\rthe tiny spiders were fleeing once the light turned on in
\rthe attic.\n
\rYou aim the flashlight directly at the tarantula and slowly
\rstart making your way pass it and enter a door, running downs
\ra flight of stairs. Is this the end?\n"""
}
# Third Floor Winning Game Path, Additions (Path 1)
p1_correct_path_additions = {
"p3a": """\nLifting the novel triggers a mechanism, revealing a fake
\rbookcase with three doors behind it.\n""",
"p7a": """\nYou finish reading the report and realise you are being
\rwatched by hunderds of tarantulas. Their fangs dripping
\rwith venom, burning holes in the ground. Quick there are
\rthree doors in front of you.\n""",
}
# Third Floor Losing Game Path (Path 1)
p1_losing_path = {
"p1": """AS YOU OPEN THE DOOR YOU IMMEDIATELY START FALLING,
\rREALISING THE FLOOR WAS COMPLETELY MISSING""",
"p2": """THE PREVIOUS ROOMS MECHANISM TRIGGERS AN CROSSBOW AND ARROW,
\rPIERCING STRAIGHT THROUGH YOUR TORSO.""",
"p3": """YOU ENTER A PITCH-BLACK ROOM AND ARE UNABLE TO SEE.
\rUNEXPECTEDLY THE LIGHTS TURN ON AND A SWINGING GUILLOTINE
\rSLICES YOUR LEGS STRAIGHT OFF.""",
"p3i": """AS YOU OPEN THE DOOR YOU FEEL A BREEZE EMANATING FROM THE
\rOTHER SIDE. EXITED YOU QUICKLY WALK THROUGH TO FIND THE
\rSTAIRCASE WAS A DECOY WITH NO STEPS. YOU FALL DOWN THREE
\rSTOREIS""",
"p3ii": """YOU WALK INTO A BEDROOM THAT LOOKS RECENTLY LIVED IN. THIS
\rMEANS SOMEONE ELSE MIGHT BE NEARBY AND ABLE TO HELP.
\rSUDDENLY YOU HEAR A LOUD THUD AND NOTICE A CHANDELIER ABOVE
\rYOU. IT SWIFTLY BECOMES UNDONE AND FALLS, KNOCKING YOU
\rOUT......AS YOU FALL IN AND OUT OF CONSIOUNESS YOU NOTICE A
\rDARK FIGURE STANDING ABOVE YOU WITH A NEEDLE IN HAND.""",
"p4": """YOU WALK THROUGH THE DOOR AND ARE GREETED WITHIN AN INCLINING
\rPATH. AS YOU MAKE YOUR WAY THROUGH YOU HEAR A RUMBLING NOISE.
\rYOU NOTICE AN OBJECT HURTLING TOWARDS YOU. OH NO, IT’S A
\rMASSIVE BOULDER.""",
"p5": """YOU REACH A DEAD END WITH NO WAY OUT.""",
"p6": """YOU ENTER A ROOM COVERED IN GREEN SMOKE. AS SOON AS YOU TAKE
\rA BREATH YOU COLLAPSE AND LOSE CONSCIOUSNESS.""",
"p7": """AS YOU WALK INSIDE YOU NOITCE THAT THE FLOOR IS FLOODED AND
\rCONNECTED TO THE NEIGHBOURING ROOM. YOU BEGIN TO WALK TO THE
\rONLY DOOR INFRONT OF YOU. ALL THE SUDDEN A LOOSE, ACTIVE
\rWIRE FALLS TO THE GROUND ELECTROCUTING YOU.""",
"p8": """YOU WALK INTO A DARK ROOM, BARELY ABLE TO SEE. YOU DELVE
\rDEEPER INTO THE SPACE, TRYING TO FEEL FOR ANYTHING FAMILIAR.
\rBY A STROKE OF LUCK, YOU FIND A LIGHT SWITCH ATTACHED TO THE
\rWALL. YOU TURN ON THE LIGHT……AND FIND YOURSELF SURROUNDED BY
\rTHOUSANDS OF TARANTULAS, INSTANTLY ATTACKING YOU.""",
"p9": """YOU WALK INTO A TRAP AND FALL INTO A WATER HOLE. YOU'RE NOT
\rALONE. SUDDENLY YOU FEEL SOMETHING BITING YOUR LEG, DRAGGING
\rYOU UNDER.""",
}
# Third Floor Losing Game Path (Path 2)
p2_losing_path = {
"p1": """YOU ENTER A ROOM WITH FLICKERING LIGHTING. YOU LOOK AROUND
\rAND FIND A DISHEVELLED MAN STANDING IN THE CORNER,
\rHAUNTINGLY GLARING AT YOU......OH NO!!! HE STARTS RUNNING
\rTOWARDS YOU WITH A KNIFE IN HAND SCREAMING SPIDERS!
\rSPIDERS!."""
}
# Third Floor Gmae Path (Path 3)
p3_game_path = {
"p1": """\nAs you enter the room you start to feel your feet burning.
\rYou look down and see smoke arising from your shoes. You
\rrealise the clear liquid is some sort of corrosive substance.
\rYou quickly take your shoes off before it starts to burn you
\rskin. There are three doors in front of you.\n""",
"p2": """\nYou walk into the room and see several pieces of paper
\rscattered across the floor. You pick one up titled
\r“Experiment Notes”. You try to read the rest but cannot make
\rsense of its scientific content. There are three doors in
\rfront of you.\n""",
"p3": """\nYou walk into a space with a sign that says “Holding Room”.
\rYou are surrounded by hazmat suits. Things are getting
\rstrange. There are three doors in front of you.\n""",
"p4": """\nYou enter another holding room, but this time surrounded by
\rvarious medical equipment and empty battered cages. You look
\raround to find more of the spider venom in vials labelled
\r“CHEMICAL X”. Things are definitely getting strange. There
\rare three doors in front of you.\n""",
"p5": """\nAs you attempt to open the door you realise something is
\rdifferent. The door is extremely heavy. You use all your
\rstrength to prize it open. As you walk inside the door
\rswiftly shuts and locks behind you. You look back and
\rrealise it is some kind of vault, hooked to a mechanism,
\rmaking sure nothing inside got out. You see three of the
\rsame doors ahead.\n""",
"p6": """\nYou enter the room to hear a robotic voice speaking –
\r“ALERT! ALERT! EXPERIMENT 626 HAS ESCAPED” and red flashing
\rlights. As you look around you realise you are in a
\rlaboratory. You find several Hybrid creatures attached to
\rmachines screaming in agony. You find a document titled “The
\rChimera Project”.\n"""
}
# Third Floor Losing Game Path (Path 3)
p3_losing_path = {
"p1": """YOU ENTER THE ROOM AND ARE ATTACKED BY A MURDER OF CROWS.
\rTHEY START PECKING AT YOUR FLESH AS YOU ARE UNABLE TO STOP
\rTHEM.""",
"p1i": """AS YOU OPEN THE DOOR YOU ARE BOMBARDED BY A WAVE OF WATER,
\rDROWNING YOU.""",
"p2": """YOU WALK IN AND ARE IMMEDIATELY INTERCEPTED BY AN ABNORMALY
\rLARGE ANACONDA.""",
"p3": """YOU ENTER THE ROOM AND FIND SEVERAL MONKIES SCREAMING IN
\rAGONY. THE LONGER YOU LOOK THE MORE YOU REALISE THESE ARENT
\rNORMAL MONKIES. THEY SEEM TO HAVE BEEN GENETICALLY
\rENGNEERIED WITH SOME OTHER CREATURE. ONE OF THEM NOTICES AND
\rCHARGES AT YOU.""",
"p4": """YOU ENTER THE ROOM AND FIND A TELEPHONE. EXITED, YOU RUN
\rTOWARDS IT AND CALL 999. SUCCESS IT RINGS. YOU BEGIN TO
\rDESCRIBE YOUR CIRCUMSTANCE TO THE OPERATOR WHO REASSURES YOU.
\rTHEY ASK FOR YOU TO STAY ON THE LINE WHILE THEY TRACK YOUR
\rLOCATION. SUDDENLY YOU HEAR A LOUD GROWLING NOISE BEHINDE
\rYOU. IT’S A MASSIVE TIGER.""",
"p5": """AS YOU PUT THE BOOK DOWN YOU FEEL A TAP ON YOUR SHOULDER. YOU
\rLOOK BACK STARTLED TO FIND A HALF MAN HALF SPIDER HYBRID
\rSTARING AT YOU WITH GLEE. BEFORE YOU COULD EVEN THINK YOU
\rARE IMMEDIATELY INJECTED WITH CHEMICAL X."""
}
# General Losing Path (Paths 1 & 3)
losing_p = {
"lp": """YOU FALL INTO A PIT OF A CORROSIVE SUBSTANCE. IT SLOWLY
\rSTARTS EATING AWAY AT YOUR FLESH, BEFORE YOU DIE A NOTE
\rDRIFTS TOWARDS YOU TITLED “Chemical X”."""
}
# Second Floor
second_floorp = {
"outro": """You successfully make it through the obstacles. As you
\rexit the final door you find yourself in front of another
\rflight of stairs. Exhausted you start to breakdown, worried
\rif more obstacles await. You quickly snap out of it,
\rreminding yourself of how far you’ve come."""
}