Handle additional edge cases

This commit is contained in:
Chris Proctor
2024-08-25 22:24:30 -04:00
parent d83291a0b3
commit ef76c34adc
3 changed files with 24 additions and 9 deletions

View File

@@ -31,6 +31,8 @@ MONSTER1 = [
MONSTER2 = [
"*rumble* *rumble* *rumble*",
"A SEA MONSTER APPEARS FROM THE REEF!",
]
INSTRUCTIONS = [
"The sea monster must have seen you open the chest! There's no time to squander. You grab the treasure from the chest without taking a closer look! Quick, make a bag and store your treasure inside, using the following commands:",
"mkdir bag",
"mv treasure.jpg bag",
@@ -47,7 +49,8 @@ if guess.strip() == SECRET:
print_fancy(CHEST_OPENS)
os.system('cp ./../../../.assets/fork.jpg treasure.jpg')
Timer(1.0, print_fancy, [TREASURE]).start()
Timer(3.0, print_fancy, [MONSTER1]).start()
Timer(5.0, print_fancy, [MONSTER2]).start()
Timer(5.0, print_fancy, [MONSTER1]).start()
Timer(9.0, print_fancy, [MONSTER2]).start()
Timer(13.0, print_fancy, [INSTRUCTIONS]).start()
else:
print_fancy(["nothing happens. Maybe next time."])