Skip to content

Commit 5381f9d

Browse files
committed
Update ex35.py
Sunday, 17 March 2024 2156
1 parent 77f91e3 commit 5381f9d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

ex35.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
from sys import exit
22

33
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?")
55

66
choice = input(">")
77
if "0" in choice or "1" in choice:
88
how_much = int(choice)
99
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!")
1111

1212
if how_much < 50:
1313
print("Nice, you're not greedy, you win!")
@@ -21,18 +21,19 @@ def bear_room():
2121
print("The bear has a bunch of honey.")
2222
print("The fat bear is in front of another door.")
2323
print("How are you going to move the bear?")
24+
print(f"1. Take honey\n2. Taunt bear\n3. Open door")
2425
bear_moved = False
2526

2627
while True:
2728
choice = input("> ")
2829

29-
if choice == "take honey":
30+
if choice == "Take honey":
3031
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:
3233
print("The bear has moved from the door.")
3334
print("You can go through it now.")
3435
bear_moved = True
35-
elif choice == "taunt bear" and bear_moved:
36+
elif choice == "Taunt bear" and bear_moved:
3637
dead("The bear gets pissed off and chews your leg off.")
3738
elif choice == "open door" and bear_moved:
3839
gold_room()

0 commit comments

Comments
 (0)