Advertisement
Faiakes

main

Jul 10th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.51 KB | None | 0 0
  1. from room import Room
  2.  
  3. kitchen = Room("Kitchen")
  4. kitchen.set_description("A dank and dirty room buzzing with flies.")
  5. kitchen.describe()
  6.  
  7. dining_hall = Room("Dining Hall")
  8. dining_hall.set_description("A dining hall...")
  9. dining_hall.describe()
  10. dining_hall.link_room(kitchen, "north")
  11. kitchen.link_room(dining_hall, "south")
  12.  
  13. ballroom = Room("Ballroom")
  14. ballroom.set_description("An imperialist ballroom...")
  15. ballroom.describe()
  16. dining_hall.link_room(ballroom, "west")
  17. ballroom.link_room(dining_hall, "east")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement