Storyboard: Map Here is a map of the city spots to visit and painting names to help navigate your quest. Art Store Item:
Posted: Mon Jun 06, 2022 5:10 pm
outlines the steps that will allow the player to move between
rooms.
PSEUDOCODE: Move between Rooms
// INITIALIZE currentRoom = "Main Hall"
//LOOP BEGIN
//INPUT direction
//IF currentRoom IS "Main Hall"
//IF direction IS "North"
//currentRoom = "Media Center"
//ELSE IF direction IS "South"
//currentRoom = "Forest Preserve"
//ELSE IF direction IS "West"
//currentRoom = "Art Store"
//ELSE IF direction IS "East"
//currentRoom = "Museum"
//ELSE
//OUPUT "Invalid Direction"
//ELSE IF currentRoom IS "Media Center"
//IF direction IS "South"
//currentRoom = "Main Hall"
//ELSE IF direction IS "East"
//currentRoom = "Gallery"
//ELSE
//OUPUT "Invalid Direction"
//ELSE IF currentRoom IS "Gallery"
//IF direction IS "West"
//currentRoom = "Media Center"
//ELSE
//OUPUT "Invalid Direction"
//ELSE IF currentRoom IS "Art Store"
//IF direction IS "East"
//currentRoom = "Main hall"
//ELSE
//OUPUT "Invalid Direction"
//ELSE IF currentRoom IS "Forest Preserve"
//IF direction IS "North"
//currentRoom = "Main hall"
//ELSE IF direction IS "East"
//currentRoom = "Park"
//ELSE
//OUPUT "Invalid Direction"
//ELSE IF currentRoom IS "Park"
//IF direction IS "West"
//currentRoom = "Forest Preserve"
//ELSE
//OUPUT "Invalid Direction"
//ELSE IF currentRoom IS "Library"
//IF direction IS "North"
//currentRoom = "Museum"
//ELSE IF direction IS "West"
//currentRoom = "Main hall"
//ELSE
//OUPUT "Invalid Direction"
//ELSE IF currentRoom IS "Museum"
//IF direction IS "South"
//currentRoom = "Library"
//ELSE
//OUPUT "Invalid Direction"
//GOTO LOOP BEGIN
//LOOP END
I am confused on how to make the pseudocode to allow the
player to get the items from the room they are in and add it to
their inventory. Any tips along with the pseudocode for python will
be appreciated.
Storyboard: Map Here is a map of the city spots to visit and painting names to help navigate your quest. Art Store Item: The Yellow house East West Media Center Item: The Starry Night North North Main Hall South South Forest Preserve Item: Sunflowers East West East West East West Gallery Item: Van Gogh Self Portrait Museum DINOSOUR North South Library: Item: The Olive Trees Park Item: Almond Blossoms