-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbridgekeeper1
More file actions
executable file
·44 lines (34 loc) · 1.24 KB
/
bridgekeeper1
File metadata and controls
executable file
·44 lines (34 loc) · 1.24 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
#!/usr/bin/env python3
import colors as c
print(c.clear + c.red + '''Who would cross the bridge of death,
must answer me these questions 3,
ere the other side he see.
''' + c.reset)
def prompt(question):
print(question)
answer = input(c.blue + "> " + c.reset).strip().lower()
return answer
def die():
print(c.red + 'you have been cast into the pit of eternal peril!' + c.reset)
def live():
print(c.green + 'Ok off you go.' + c.reset)
name = prompt(c.yellow + "What is your name?" + c.reset)
quest = prompt(c.yellow + "What is your quest?" + c.reset)
if name == "lanceolot" or name == "galihad":
color = prompt(c.yellow + "What is you faovrite colour?" + c.reset)
if color == "blue":
live()
else:
die()
elif "robin" in name:
capital = prompt(c.red + "What is the capital of Yemmen? heh heh heh." + c.reset)
if capital == "that doesnt exist":
print(c.green + "fuwee ok off you pop then." + c.reset)
else:
die()
elif "arthur" in name:
swallow = prompt(c.yellow + "what is the air speed volocity of an unladen swallow." + c.reset)
if "african or european" in swallow:
print(c.red + "What i dont know that. pppechheew ahhhhh!!")
elif "24mph" in swallow:
live()