Advertisement
Mori007

Untitled

May 23rd, 2019
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.62 KB | None | 0 0
  1. rom room import Room
  2.  
  3. kitchen = Room("Kitchen")
  4. kitchen.set_description("A dank and dirty room buzzing with flies.")
  5.  
  6. dining_hall = Room("Dining Hall")
  7. dining_hall.set_description("A large room with ornate golden decorations on each wall.")
  8.  
  9. ballroom = Room("Ballroom")
  10. ballroom.set_description("A vast room with a shiny wooden floor. Huge candlesticks guard the entrance.")
  11.  
  12. kitchen.linked_room(dining_hall, "south")
  13. dining_hall.linked_room(kitchen, "north")
  14. dining_hall.linked_room(ballroom, "west")
  15. ballroom.linked_room(dining_hall, "east")
  16.  
  17. dining_hall.get_details()
  18. kitchen.get_details()
  19. ballroom.get_details()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement