Question: my question is how to write in python moving from room to room using dictionary???? IMPORTANT: The Move Between Rooms process in the Milestone Simplified

my question is how to write in python moving from room to room using dictionary????

  1. IMPORTANT: The Move Between Rooms process in the Milestone Simplified Text Game Flowchart is intentionally vague. You designed a more detailed flowchart or pseudocode for this process as a part of your work on Project One. Think about how your design will fit into this larger flowchart.
  1. In PyCharm, create a new code file titled ModuleSixMilestone.py. At the top of the file, include a comment with your name. As you develop your code, you must use industry standard best practices, including in-line comments and appropriate naming conventions, to enhance the readability and maintainability of the code.
  1. Next, copy the following dictionary into your PY file. This dictionary links rooms to one another and will be used to store all possible moves per room, in order to properly validate player commands (input). This will allow the player to move only between rooms that are linked. Note: For this milestone, you are being given a dictionary and map for a simplified version of the dragon-themed game. Make sure to read the code carefully so that you understand how it works. In Project Two, you will create your own dictionary based on your designs.
    #A dictionary for the simplified dragon text game #The dictionary links a room to other rooms. rooms = { 'Great Hall': {'South': 'Bedroom'}, 'Bedroom': {'North': 'Great Hall', 'East': 'Cellar'}, 'Cellar': {'West': 'Bedroom'} } 
  1. Next, you will develop code to meet the required functionality, by prompting the player to enter commands to move between the rooms or exit the game. To achieve this, you must develop the following:
    • A gameplay loop that includes:
      • Output that displays the room the player is currently in
      • Decision branching that tells the game how to handle the different commands. The commands can be to either move between rooms (such as go North, South, East, or West) or exit.
        • If the player enters a valid move command, the game should use the dictionary to move them into the new room.
        • If the player enters exit, the game should set their room to a room called exit.
        • If the player enters an invalid command, the game should output an error message to the player (input validation).
      • A way to end the gameplay loop once the player is in the exit room
    TIP: Use the pseudocode or flowchart that you designed in Step #4 of Project One to help you develop your code.
  1. As you develop, you should debug your code to minimize errors and enhance functionality. After you have developed all of your code, be sure to run the code to test and make sure it is working correctly.
    • What happens if the player enters a valid direction? Does the game move them to the correct room?
    • What happens if the player enters an invalid direction? Does the game provide the correct output?
    • Can the player exit the game?

my question is how to write in python moving from room to

T 140 Design Document Template This story is about a Saiyan warrior by the named of Goku (HERO) on a quest to collect all 7 Dragon balls to save the universe by defeating Kid Buu Kid Buu (VILLIAN) was created by a sorcerer and brought to earth to destroy, but Kid Buy performed a special attack killing everyone on earth including his creator. The elder Kai's that oversee earth teleported Kid Buy to the planet of the Kai's to keep him from destroying earth. For Goku to defeat Kid Buy he must travel to the Hyperbolic Time Chamber and train to become a Super Saiyan 3. Go to Kecin's Lookout to retrieve a senzy bean to recover after the battle and collect all 7 dragon balls to wish everyone back to life and save the world. Goku has to defeat Kid Buy and collect all 7 dragonball to save the world Dragon ball Adventure Game: East Papaya Island East Sacred Land of Korin 5 Korin's Lookout West West Senzu North South Hyperbolic Time Chamber Super Saiyan 3 East Goku's House START Central City North South West East Kami's Lookout Penguin Village West 6 North South North South Kid East Gingertown East Buu West City Planet of Kai West West 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!