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,17 @@
# This is a Python file. You can run it by typing "python ghost.py"
from pathlib import Path
if Path("key.txt").exists():
print(" The ghost glances over at you. 'I hope you find some use for that key.'")
else:
print(" You enter the cramped galley and notice a sad, lonely ghost wandering")
print(" around. You always wondered if you would be afraid of ghosts, but")
print(" somehow this feels completely normal. The ghost begins to speak.")
print("")
print(" 'It has been a long while since I have seen anybody down here,' she says")
print(" 'I would like to give you a gift. Here's a key.'")
with open("key.txt", "w") as keyfile:
keyfile.write(" Even in the faint light of your lamp, the key has a golden gleam.")