First version ready

This commit is contained in:
Chris Proctor
2019-08-16 13:54:46 -04:00
parent edb6987a5c
commit d0b8fa798f
9 changed files with 68 additions and 1 deletions

Binary file not shown.

View 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.")

View 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.