Handle additional edge cases
This commit is contained in:
@@ -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."])
|
||||
|
Reference in New Issue
Block a user