Merge branch 'master' of https://github.com/the-isf-academy/lab_00_terminal_adventure
This commit is contained in:
commit
c2c897589a
|
@ -1,3 +1,4 @@
|
|||
bag
|
||||
treasure.png
|
||||
key.txt
|
||||
.timer
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
bag
|
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
2019-08-19 18:48:22.004554
|
|
@ -10,19 +10,20 @@ def treasure():
|
|||
|
||||
def monster1():
|
||||
print(" *rumble* *rumble* *rumble* \n")
|
||||
print(" You look around the reef, but nothing seems out of place.\n")
|
||||
print(" Around the reef, nothing seems out of place.\n")
|
||||
|
||||
def monster2():
|
||||
print(" *rumble* *rumble* *rumble* \n")
|
||||
print(" A SEA MONSTER APPEARS FROM THE REEF! \n")
|
||||
print(" Without looking you grab the treasure from the chest.")
|
||||
print(" The sea monster must have seen you open the chest!")
|
||||
print(" There's no time to squander. You grab the treasure from the chest without taking a closer look!")
|
||||
print(" Quick, use mkdir to make a \"bag\" directory and mv to")
|
||||
print(" hide the treasure in the bag. ")
|
||||
print(" Then get back to the surface ASAP! The moster is coming! \n")
|
||||
print(" Don't forget to take your treasure bag with you!")
|
||||
print(" hide the treasure.png in the bag. ")
|
||||
print(" Then get back to the surface ASAP! The monster is coming! \n")
|
||||
print(" Don't forget to take your treasure bag with you up to the top directory!")
|
||||
now = datetime.datetime.now()
|
||||
with open(".timer", "w") as keyfile:
|
||||
keyfile.write(str(now))
|
||||
with open(".timer", "w") as timerfile:
|
||||
timerfile.write(str(now))
|
||||
|
||||
|
||||
secret = "318"
|
||||
|
|
Binary file not shown.
|
@ -26,7 +26,7 @@ def win():
|
|||
print(" You are swimming as fast as you can towards the boat but you can")
|
||||
print(" feel the water begin to pull you back as the sea monster opens its")
|
||||
print(" giant mouth.")
|
||||
print(" You kick with all your might, sure that you are about to breath your")
|
||||
print(" You kick with all your might, sure that you are about to breathe your")
|
||||
print(" last breath.")
|
||||
print(" ")
|
||||
print(" ")
|
||||
|
@ -35,6 +35,7 @@ def win():
|
|||
print(" time to avoid the sea monster's vicious maw.")
|
||||
print(" You're safe at last!")
|
||||
print(" Now you can finally show off the treasure you risked your life for...")
|
||||
print(" Use open treasure.png to take a peek.")
|
||||
|
||||
|
||||
now = datetime.now()
|
||||
|
|
Loading…
Reference in New Issue