-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample_project.py
More file actions
55 lines (52 loc) · 2.14 KB
/
example_project.py
File metadata and controls
55 lines (52 loc) · 2.14 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
def fireLinkInputHelper():
i = input("Where would you like to go? ")
while i != "Upper Londo" and i != "Catacombs" and i != "Upper Undead Burg" and i != "Firelink Altar" and i != "Undead Asylum" and i != "Undead Parish" and i != "Lower Undead Burg":
i = input("This is not a valid location! ")
return i
def upperUndeadBurgInputHelper():
i = input("Where would you like to go? ")
while i != "Lower Undeadburg" and i != "Undead Parish" and i != "Darkroot Basin" and i != "Firelink Shrine":
i = input("This is not a valid location! ")
return i
def undeadParishInputHelper():
i = input("Where would you like to go?")
while i != "Upper Undeadburg" and i != "Darkroot Basin" and i != "Firelink Shrine" and i != "Sen's Fortress":
i = input("This is not a valid location!")
FIRELINK_SHRINE_FLAVOR_TEXT = """
The somber shrine has a central bonfire,
with a Crestfallen Warrior sitting nearby.
Down below is an elevator to 'Upper Londo'.
A second elevator leads to 'Undead Parish'.
Pass the Shrine is a graveyard, leading to
the dreaded 'Catacombs'. Upwards is the aquaduct
to 'Upper Undead Burg' and 'Lower Undead Burg'.
A pit leads to 'Firelink Altar'. A crow will
take you to 'Undead Asylum'.
"""
UPPER_UNDEAD_BURG_FLAVOR_TEXT = """
This once great city is nothing more than a
shell of itself. Warriors of old are grouped
through the grim streets, ready to fight.
The aquaduct can take you back to
'Firelink Shrine' or 'Lower Undeadburg'.
A tall prison tower leads down to
'Darkroot Basin'. A bridge leads to
'Undead Parish'.
"""
UNDEAD_PARISH_BURG_FLAVOR_TEXT = """
"""
# TODO: Finish this up
current_location = "Firelink Shrine"
while current_location != "Painted World":
if current_location == "Firelink Shrine":
print(FIRELINK_SHRINE_FLAVOR_TEXT)
current_location = fireLinkInputHelper()
elif current_location == "Upper Undead Burg":
print(UPPER_UNDEAD_BURG_FLAVOR_TEXT)
current_location = upperUndeadBurgInputHelper()
elif current_location == "Darkroot Basin":
print(UNDEAD_PARISH_BURG_FLAVOR_TEXT)
current_location = undeadParishInputHelper()
else:
print("buffer")
current_location = input("error, pick a location")