Skip to content

Instantly share code, notes, and snippets.

@Gwith
Created October 3, 2017 16:00
Show Gist options
  • Select an option

  • Save Gwith/8ad9bfd3b2a981a86cd4f10aed472545 to your computer and use it in GitHub Desktop.

Select an option

Save Gwith/8ad9bfd3b2a981a86cd4f10aed472545 to your computer and use it in GitHub Desktop.
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