-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroom.py
31 lines (30 loc) · 1.3 KB
/
room.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Create Rooms with descriptions and exits
rooms = {
"hall": {
"description": "You have entered the ground floor of an arcane tower. There are doors to the east and north.",
"exits": {"north": "library", "east": "apothecary"},
"items": [] # Empty list to store items in room
},
"apothecary": {
"description": "A dim room filled with alchemic reagents. An alchemist pores over a workstation. A door leads west to the Hall.",
"exits": {"west": "hall"},
"items": []
},
"library": {
"description": "Long rows of bookcases line the room, it seems to continue endlessly. A wizard is levitating through the aisles. A door leads south to the Hall and a staircase leads up to the Wizard's Quarters.",
"exits": {"south": "hall", "up": "wizards_quarters"},
"items": []
},
"wizards_quarters": {
"description": "Magical artifacts are strewn across the floor of the study. An imp leaps around setting fire to the furnishings. A staircase leads down to the Library.",
"exits": {"down": "library"},
"items": []
}
}
# Formatted room names for better output readability
formatted_room_names = {
"hall": "Hall",
"apothecary": "Apothecary",
"library": "Library",
"wizards_quarters": "Wizard's Quarters"
}