Python Text-Based Game (Coursework)
Pseudocode or Flowchart for Code to “Move Between Rooms” BEGIN PRINT “Welcome to Logan’s Lair! Gather all 6 items before crossing Logan’s path or become prey”; PRINT “To move, type “go”, followed by the desired direction, either North, East, South, or West”; OUTPUT current location; OUTPUT valid directions player can travel; INPUT user direction to travel; WHILE user direction is invalid; PRINT message telling user to choose a valid direction; OUTPUT valid directions player can travel; PRINT item identification when applicable; CALL code to grab item; IF user enters Logans Lair; IF user collected all 6 items; PRINT PURR…You WIN!; ELSE user collected less than 6 items; PRINT GAME OVER…You LOSE!; END Pseudocode or Flowchart for Code to “Get an Item” BEGIN PRINT item identification; CALL code to check inventory for item existence; IF item is not in inventory; PRINT prompt for user to grab item; IF user grabs valid item; SET inventory list update; OUTPUT updated contents of inventory; ELIF user attempts to grab invalid item; PRINT message telling user to choose a valid item; ELSE: INPUT user direction to travel; ELSE; PRINT message telling user item already in inventory; END