Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from room import Room
- kitchen = Room("Kitchen")
- kitchen.set_description("a dank and dirty room buzzing with flies")
- dining_hall = Room("dining_hall")
- dining_hall.set_description("a old decrepit room with a large walkway ")
- ballroom = Room("ballroom")
- ballroom.set_description("A cobweb filled dire room with a woodwork ridden floor")
- kitchen.link_room(dining_hall, "south")
- dining_hall.link_room(kitchen, "north")
- dining_hall.link_room(ballroom, "west")
- ballroom.link_room(dining_hall, "east")
- current_room = kitchen
- while True:
- print("\n")
- current_room.get_details()
- command = input("> ")
- current_room = current_room.move(command)
Add Comment
Please, Sign In to add comment