Question: I you will write an object-oriented program to explore a series of rooms in a video game. To begin, use the final exam module

I you will write an object-oriented program to explore a series of

I you will write an object-oriented program to explore a series of "rooms" in a video game. To begin, use the final exam module to set up the "rooms" by running the following code: starting_room - cs0002_final_exam_module.generate_maze() The variable 'starting_room' is an object of class "Room" with the following properties & methods: get monster() - A method that takes no arguments and returns the name of a monster that lives in this room (string) get_gold() - A method that takes no arguments and returns how much gold can be found in this room (integer) north - An instance variable that points to the room directly above this room. This room will also be an object of the class "Room". If there is no room above this variable is set to the value None. south - An instance variable that points to the room directly below this room. This room will also be an object of the class "Room". If there is no room above this variable is set to the value None. east - An instance variable that points to the room directly to the right of this room. This room will also be an object of the class "Room". If there is no room above this variable is set to the value None. west - An instance variable that points to the room directly to the left of this room. This room will also be an object of the class "Room". If there is no room above this variable is set to the value None. Here is a map of all of the rooms - note that the given variable "starting_room" is in the center of the map. Room1 Room4 Room6 Room2 Room7 Room10 Room11 Starting Room Room3 Room5 Room8 Room9 Room12 Your task is to answer the following question using the "starting_room" object described above:

Step by Step Solution

3.45 Rating (152 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Answer Certainly Based on the description of the Room class and its propertiesmethods heres an examp... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!