First version ready
This commit is contained in:
BIN
adventure/seafloor/coral_reef/.chest.py.swp
Normal file
BIN
adventure/seafloor/coral_reef/.chest.py.swp
Normal file
Binary file not shown.
18
adventure/seafloor/coral_reef/chest.py
Normal file
18
adventure/seafloor/coral_reef/chest.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# This is a Python program. You should run it by typing "chest.py"
|
||||
|
||||
from urllib.request import urlretrieve
|
||||
|
||||
secret = "381"
|
||||
|
||||
print(" You approach the chest and see that the lock is surprisingly free of rust.")
|
||||
print(" In fact, the code dials turn smoothly. Try entering a code.")
|
||||
|
||||
guess = input(" > ")
|
||||
|
||||
if guess == secret:
|
||||
print(" The chest snaps open, releasing several huge air bubbles.")
|
||||
print(" You look into the chest and see...")
|
||||
urlretrieve("http://chrisproctor.net/images/fork.png", "treasure.png")
|
||||
else:
|
||||
print(" nothing happens. Maybe next time.")
|
||||
|
4
adventure/seafloor/coral_reef/reef.txt
Normal file
4
adventure/seafloor/coral_reef/reef.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
You are standing at the edge of a beautiful coral reef. Schools of fish are
|
||||
swirling around you in every direction. In front of you is a deep chasm
|
||||
where you see larger fish sliding through the shadows. There is a chest
|
||||
half-buried in the seafloor.
|
Reference in New Issue
Block a user