forked from LukeBrazil/fun_fair_danger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroom_1.py
56 lines (48 loc) · 1.88 KB
/
room_1.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
from helper import enter
from fortune_telling import fortune_topic
from exit_key import exit_key
from pip._vendor.colorama import Fore, Back, Style
## Welcome lines
welcome = '''Welcome to the FunFair!
You are on an adventure in a world of magic and danger. Keep your wits about you.
Upon entering each room you will need to find a secret code. Don’t forget it; you will need it to exit the FunFair at the end.
Good luck, don’t forget your snacks, water, and fairy dust. Presse enter to continue!'''
### Enter wizard room
wizard_room = "You have entered a dimly lit room. A wizened figure sits in a corner clad in silver robes. She beckons you over to her chair."
## main function
'''
Wizard room start
'''
def run_fortune_teller():
enter(welcome)
enter(wizard_room)
# print(welcome)
# print(wizard_room)
game_on = False
ask_question = 'N'
while ask_question != 'Y' and ask_question != 'y':
ask_question = enter('''"May I ask you some questions?
As a warning, you will not exit this room until you speak with me.\" (enter Y or N)''')
if ask_question != 'Y' and ask_question != 'y':
game_on = False
else:
game_on = True
name = ""
while game_on == True:
if name == "":
name = enter('"Tell me your name my dear"\n')
if name == "":
print("Name cannot be empty!")
continue
birth_year = enter('"And what is your birth year?"\n')
if birth_year == "":
print("Birth Year cannot be empty!")
continue
fortune_topic()
enter(''' "You can now exit my room!"\n
But wait... as she heads toward the door she takes a stumble on the sash of her
robe. It's a hard fall. When she arises she is completely incomprehensible.
''')
exit_key()
game_on = False
run_fortune_teller()