GreatRaymondo

txtgamesofar

May 30th, 2019
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 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.  
  6. dining_hall = Room("dining_hall")
  7. dining_hall.set_description("a old decrepit room with a large walkway ")
  8.  
  9. ballroom = Room("ballroom")
  10. ballroom.set_description("A cobweb filled dire room with a woodwork ridden floor")
  11.  
  12. kitchen.link_room(dining_hall, "south")
  13. dining_hall.link_room(kitchen, "north")
  14. dining_hall.link_room(ballroom, "west")
  15. ballroom.link_room(dining_hall, "east")
  16.  
  17. current_room = kitchen
  18.  
  19. while True:
  20. print("\n")
  21. current_room.get_details()
  22. command = input("> ")
  23. current_room = current_room.move(command)
Add Comment
Please, Sign In to add comment