1. Create pseudocode or a flowchart that logically outlines the steps that will allow the player to move between rooms using commands to go North, South, East, and West. 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 direction? What output should result?
• What should the program do if the player enters an invalid direction? What output should result?
• How will you control the program flow with decision branching and loops?
1. 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 just need help with checking my Pseudocode. Can you let me know what holes I have and how to fix them?
BRITTANY SPRING
Storyboard (Description and Map)
The villain is the universe. You wake up in a strange room and need to locate all your lost friends. Each one of them has the skill to get you to a better, safer timeline. Should you try to enter the new timeline without gathering all your friends, you and your friends will all be reset back to the rooms you woke up in on this abstract timeline. YOU wake up in the CELLAR,
Pseudocode or Flowchart for Code to "Move Between Rooms"
Set CURRENT POSITION to CELLAR
While CURRENT POSITION = CELLAR
Instruct User to move WEST - USER ENTERS WEST
Set CURRENT POSITION to STAIRWELL
Let user know invalid input for any other input
While CURRENT POSITION = STAIRWELL
USER Enters North or East
If EAST set CURRENT POSITION to CELLAR
If NORTH set CURRENT POSITION to BAR
While CURRENT POSITION = BAR
USER enters EAST, WEST, or NORTH
If WEST = game over!
If EAST set CURRENT POSITION = STREET
If NORTH set CURRENT POSITION = GAMING CENTER
While CURRENT POSITION = STREET
USER enters NORTH OR WEST
If NORTH set CURRENT POSITION = BUS SHELTER
If WEST set CURRENT POSITION = BAR
While CURRENT POSITION = GAMING CENTER
User Enters SOUTH OR EAST
If SOUTH set CURRENT POSITION = BAR
If EAST set CURRENT POSITION = TOWER
While CURRENT POSITION = Tower
User Enters West
If WEST set CURRENT POSITION = GAMING CENTER
Pseudocode or Flowchart for Code to "Get an Item"
Set CURRENT POSITION to CELLAR
While CURRENT POSITION = CELLAR
ADD YOU TO LIBRARY
Instruct User to move WEST - USER ENTERS WEST
Set CURRENT POSITION to STAIRWELL
Let user know invalid input for any other input
While CURRENT POSITION = STAIRWELL
USER Enters North or East
ADD PERSON1 TO LIBRARY
While CURRENT POSITION = BAR
ADD PERSON2 TO LIBRARY
If EAST set CURRENT POSITION = STREET
If NORTH set CURRENT POSITION = GAMING CENTER
While CURRENT POSITION = STREET
ADD PERSON3 TO LIBRARY
If NORTH set CURRENT POSITION = BUS SHELTER
If WEST set CURRENT POSITION = BAR
While CURRENT POSITION = GAMING CENTER
ADD PERSON4 TO LIBRARY
If SOUTH set CURRENT POSITION = BAR
If EAST set CURRENT POSITION = TOWER
While CURRENT POSITION = Tower
ADD PERSON5 TO LIBRARY
If WEST set CURRENT POSITION = GAMING CENTER