![]() ![]() Look at the scrumptious roast chicken and kidney pudding! \nThere are doors leading to North, East, and West.", None, 4, None, 2, None, None, None, 0)Įast_cooridor = Room("You apparated into the East Corridor. Here is the code I have so far: room_list = ĭef _init_(self, describe, nw, n, ne, e, se, s, sw, w): Get the program working with the new class. The class should have a constructor that takes in (description, north, east, south, west) and sets fields for the description and all of the directions. "Rather than have each room be a list of create a Room class. I then want to be able to pull out one attribute from one instance inside of the list. I am trying to append each instance of the class to a list. I have created a class and made several different instances of the class. I am working on creating a Text Adventure Game.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |