Question: This is for a simplified version of a text-based game. PYTHON3. You will focus on displaying how a room dictionary works with the move commands.
This is for a simplified version of a text-based game. PYTHON3. You will focus on displaying how a room dictionary works with the move commands. This will include the if, else, and elif statements that move the adventurer from one room to another.
First, use this dictionary and map to help guide you in your game (map attached):
#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'} }
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:
|
Great Hall North South East Bedroom Cellar West
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts

