Skip to content

Commit adc7477

Browse files
author
Darrell Little
committed
Edit README
1 parent a050568 commit adc7477

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

Zombie-House/README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,20 @@ Remix from [original RPG project](https://projects.raspberrypi.org/en/projects/r
1313

1414
**Objectives:**
1515

16-
Create a text-based game where a player navigates through a set of rooms. Program the game with a variety of rooms that contain items to collect, monsters to avoid and obstacles to overcome.
16+
Create a text-based game where a player navigates through a set of rooms. Program the rooms to contain items to collect, monsters to avoid and obstacles to overcome. Linking the rooms and populating the items in each room is done in a dictionary. Each room is a nested dictionary inside of the "rooms" dictionary.
17+
18+
```python
19+
# a dictionary linking a room to other rooms
20+
rooms = {
21+
'Hall' : {
22+
'south' : 'Kitchen'
23+
'item' : 'key'
24+
},
25+
26+
'Kitchen' : {
27+
'north' : 'Hall'
28+
'item' : 'monster'
29+
}
30+
}
31+
```
1732

0 commit comments

Comments
 (0)