Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from room import Room
- kitchen = Room("Kitchen")
- kitchen.set_description("A dark and dirty room buzzing with flies.")
- kitchen.get_description
- kitchen.describe(kitchen)
- dining_room = Room("Dinig room")
- dining_room.set_description("A well illuminated room with a long table and 12 chairs.")
- dining_room.get_description
- dining_room.describe(dining_room)
- ballroom = Room("Ball room")
- ballroom.set_description("A vast room with a shiny wooden floor. Huge candlesticks guard the entrance.")
- ballroom.get_description
- ballroom.describe(dining_room)
- kitchen.linked_room(dining_room, "south")
- dining_room.linked_room(kitchen, "north")
- dining_room.link_room(ballroom, "west")
- ballroom.linked_room(dining_room, "east")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement