Provided with this Python code: import loader class Adventure(): #… Provided with this Python code:import loaderclass Adventure(): # Create rooms and items for the game that was specified at the command line def __init__(self, filename): self._current_room = loader.load_room_graph(filename) # Pass along the description of the current room, be it short or long def room_description(self): return self._current_room.description() # Move to a different room by changing “current” room, if possible def move(self, direction): # TODO passif __name__ == “__main__”: from sys import argv # Check command line arguments if len(argv) not in [1,2]: print(“Usage: python3 [name]”) exit(1) # Load the requested game or else Tiny print(“Loading…”) if len(argv) == 2: game_name = argv[1] elif len(argv) == 1: game_name = “Tiny” filename = f”data/{game_name}Adv.dat” # Create game adventure = Adventure(filename) # Welcome user print(“Welcome to Adventure.n”) # Print very first room description print(adventure.room_description()) # Prompt the user for commands until they type QUIT while True: # Prompt, converting all input to upper case command = input(“> “).upper() # Perform the move or other command # TODO # Allows player to exit the game loop if command == “QUIT”:breakI have to write an additional file named, that creates a class called ‘Room’, that will store information about the room itself (a short or long description and whether or not it has been visited) as well as store information about the rooms connected to it, in complete isolation of the code that was already provided to me.These are the steps given to me:For the Room class:To store information about the room itself, implement a class. Create a file called to define a class called Room.Write an initializer. When created, a room is required to have two descriptions, so an intializer is needed to enforce that requirement.A “new” room has not been visited before, so that’s why you should also set a variable in the initializer to represent that (such a variable is called a “flag”).Write a method set_visited that allows us to mark the room as visited when that happens.Write a method description that returns the short/long description depending on whether the room thas been visited before.For the connections:Create an intance variable in Room to keep track of connections. Connections combine a string representing a direction such as “WEST” with a reference to another room object. What Python data structure is best to store such mappings? Create an empty variable in the initializer to prepare this.Write a method add_connection, which accepts a direction and a room object, and saves it in the connection storage.Write a method has_connection that can determine if there is a connection available from the room to another room, given the direction.Write a method get_connection that retrieves the actual Room object that is found given a specific direction.This is just one of many steps to create a -based game as a whole, but it all seemed really overwhelming to me which causes me to not even know how to start by doing this. I’m hoping that by getting this assignment explained I can go and figure out the rest of it myself.Computer ScienceEngineering & TechnologyPython Programming COMPSCI 201

Order your essay today and save 20% with the discount code ESSAYHELP