File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
1
from sys import exit
2
2
3
+ prompt = "==> "
4
+
3
5
def gold_room ():
4
6
"""Describe gold room and take user input."""
5
7
print "This room is full of gold. How much do you take?"
6
8
7
- next = raw_input ("> " )
9
+ next = raw_input (prompt )
8
10
9
11
if "0" in next or "1" in next :
10
12
how_much = int (next )
@@ -27,7 +29,7 @@ def bear_room():
27
29
bear_moved = False
28
30
29
31
while True :
30
- next = raw_input ("> " )
32
+ next = raw_input (prompt )
31
33
32
34
if next == "take honey" :
33
35
dead ("The bear looks at you and then pimp slaps your face off." )
@@ -47,7 +49,7 @@ def cthulu_room():
47
49
print "He, it, whatever stares at you and you go insane."
48
50
print "Do you flee for your life or eat your head?"
49
51
50
- next = raw_input ("> " )
52
+ next = raw_input (prompt )
51
53
52
54
if "flee" in next :
53
55
start ()
@@ -68,7 +70,7 @@ def start():
68
70
print "There is a door to your right and left."
69
71
print "Which one do you take?"
70
72
71
- next = raw_input ("> " )
73
+ next = raw_input (prompt )
72
74
73
75
if next == "left" :
74
76
bear_room ()
You can’t perform that action at this time.
0 commit comments