Skip to content

Instantly share code, notes, and snippets.

@rtDNVdza
Last active December 28, 2015 09:49
Show Gist options
  • Save rtDNVdza/7482271 to your computer and use it in GitHub Desktop.
Save rtDNVdza/7482271 to your computer and use it in GitHub Desktop.
class Room(object):
def __init__(self , name , description):
self.name = name
self.description = description
self.paths = {}
def go(self , direction):
return self.paths.get(direction , None)
def add_paths(self , paths):
self.paths.update(paths)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment