-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
51 lines (43 loc) · 1.46 KB
/
main.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
# response = None
#
# while not response ==
story = {
'Intro':
(
'''
Many generations ago, the evil warlord Tyra pillaged many villages and conquered many lands in
the name of evil. She was defeated by an uncommonly small hobbit named Tallin. This hobbit is your ancestor.
In the present day, thou art a small hobbit. You are reading up on the aspects of quantum physics, because the apple falls
uncommonly far from the tree in this universe. You hear a knock on the door. What do you do?
''',
["Go back to reading physics. It's getting to the good part!", 'Answer the door.']
),
'Answer the door.':
(
'''
It is a old man in a pointy hat. He yells at you unintelligibly while waving his hands wildly. Just as you are
about to close the door, an attractive she-hobbit sprinting down the lane calls to the both of you. "There you are,
grandfather!", she reaches you. "Thank you so much for finding him!"
''',
["Go back to reading physics. It's getting to the good part!"]
),
"Go back to reading physics. It's getting to the good part!":
(
'''
''',
None
)
}
response = 'Intro'
while not response == 'Quit':
body = story[response][0]
print body
response = raw_input('> ')
'''
Tell me something.
print> Fish are aquatic.
Fish are aquatic? How interesting! Why?
> Because they like to be.
Oh. Well that's boring.
>Yeah
'''