generated from mwc/lab_terminal
27 lines
821 B
Python
27 lines
821 B
Python
# desk.py
|
|
# --------
|
|
# By MWC Contributors
|
|
#
|
|
# This is a Python program. You can run it by typing `python desk.py`
|
|
|
|
import sys
|
|
from pathlib import Path
|
|
sys.path.append('../../../..')
|
|
from fancy_printing import print_fancy
|
|
|
|
DESCRIPTION = [
|
|
"The stateroom contains the ruins of an elegant office. Scraps of wallpaper are peeling from the wall; there is an eel living in the chandelier. There is a huge desk at the center of the room."
|
|
]
|
|
OPEN_DESK = [
|
|
"You try your key in the desk drawer, and it clicks open. There are many decaying pieces of paper. One has the numbers 318 written in a fine script."
|
|
]
|
|
DESK_LOCKED = [
|
|
"You try to open the desk's drawer, but it is firmly locked."
|
|
]
|
|
|
|
print_fancy(DESCRIPTION)
|
|
if Path("../galley/key.txt").exists():
|
|
print_fancy(OPEN_DESK)
|
|
else:
|
|
print_fancy(DESK_LOCKED)
|