Question: Create pseudocode or a flowchart that logically outlines the steps that will allow the player to get the item from the room they are in
- Create pseudocode or a flowchart that logically outlines the steps that will allow the player to get the item from the room they are in and add it to their inventory. Use your notes from Step #3 to help you design this section of code. Be sure to address the following:
- What input do you need from the player? How will you prompt the player for that input? How will you validate the input?
- What should the program do if the player enters a valid item (the item in their current room)? What output should result?
- What should the program do if the player enters an invalid item (an item not in their current room)? What output should result?
- How will you control the program flow with decision branching or loops?
- I created a pseudocode for moving room to room, but I'm confused about picking items up and adding to my inventory. In one room is no items but a thief. If you go into that room the game is over. The other room is the room you start in . It doesn't have an item either.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
