File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
1
from sys import exit
2
2
3
3
def gold_room ():
4
- print ("This room is full of gold. How much do you take?" )
4
+ print ("This room is full of gold coins . How much do you take?" )
5
5
6
6
choice = input (">" )
7
7
if "0" in choice or "1" in choice :
8
8
how_much = int (choice )
9
9
else :
10
- dead ("Man, learn to type a number." )
10
+ dead ("Man, learn to type a decimal number. There's no fraction around the gold coin! " )
11
11
12
12
if how_much < 50 :
13
13
print ("Nice, you're not greedy, you win!" )
@@ -21,18 +21,19 @@ def bear_room():
21
21
print ("The bear has a bunch of honey." )
22
22
print ("The fat bear is in front of another door." )
23
23
print ("How are you going to move the bear?" )
24
+ print (f"1. Take honey\n 2. Taunt bear\n 3. Open door" )
24
25
bear_moved = False
25
26
26
27
while True :
27
28
choice = input ("> " )
28
29
29
- if choice == "take honey" :
30
+ if choice == "Take honey" :
30
31
dead ("The bear looks at you then slaps your face off." )
31
- elif choice == "taunt bear" and not bear_moved :
32
+ elif choice == "Taunt bear" and not bear_moved :
32
33
print ("The bear has moved from the door." )
33
34
print ("You can go through it now." )
34
35
bear_moved = True
35
- elif choice == "taunt bear" and bear_moved :
36
+ elif choice == "Taunt bear" and bear_moved :
36
37
dead ("The bear gets pissed off and chews your leg off." )
37
38
elif choice == "open door" and bear_moved :
38
39
gold_room ()
You can’t perform that action at this time.
0 commit comments