TUTOR HELP2

PNG

School

Southern New Hampshire University *

*We aren’t endorsed by this school

Course

200

Subject

Computer Science

Date

Dec 6, 2023

Type

PNG

Pages

1

Uploaded by SargentPower5789

Report
Great Hall North South East Bedroom Cellar West 4. 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: o A gameplay loop that includes: = Qutput 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. = |fthe player enters a valid “move” command, the game should use the dictionary to move them into the new room. = |f the player enters “exit,” the game should set their room to a room called “exit.” = |f the player enters an invalid command, the game should output an error message to the player (input validation). = Away 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. 5. 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. o What happens if the player enters a valid direction? Does the game move them to the correct room? o What happens if the player enters an invalid direction? Does the game provide the correct output? o Can the player exit the game?
Discover more documents: Sign up today!
Unlock a world of knowledge! Explore tailored content for a richer learning experience. Here's what you'll get:
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help