Created
October 3, 2017 16:00
-
-
Save Gwith/8ad9bfd3b2a981a86cd4f10aed472545 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Rooms: | |
| def __init__(self): | |
| self.name | |
| self.description | |
| self.directions | |
| self.items | |
| self.monsters | |
| rooms ={ | |
| 1 : { | |
| 'Room 1' : 'Courtyard', | |
| 'Description' : 'This is a courtyard', | |
| 'directions' : ['forward', 'backwards'], | |
| 'items' : ['item1', 'item2'], | |
| 'monster' : ['monster1', 'monster2'] | |
| }, | |
| 2 : { | |
| 'Room 2' : 'Main Entrance', | |
| 'description' : 'this is a main enterance', | |
| 'directions' : ['forward', 'backwards'], | |
| 'items' : ['item1'], | |
| 'monster' : ['monster1', 'monster2'] | |
| }, | |
| 3 : { | |
| 'Room 3' : 'Corridor', | |
| 'directions' : ['left', 'right', 'backwards'], | |
| 'items' : ['item1'], | |
| 'monster' : ['monster1', 'monster2'] | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment