Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

IN PYTHON PLEASE help with pseudocode in python for a text-based game. I am not looking for the who game experience just a piece of

IN PYTHON PLEASE

help with pseudocode in python for a text-based game. I am not looking for the who game experience just a piece of if.

Given there are eight rooms in this game and six of these rooms have an item to pick up into inventory. One of these rooms contains a villain that will kill you if you haven't inventoried all six items first. The movement between the rooms is north, south, east, and west.

Write python pseudocode to pick up the object (eg. 'collect fuse') in the room and also include

  1. Whatinputdo 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)? Whatoutputshould result?
  • What should the program do if the player enters an invalid item (an item not in their current room)? Whatoutputshould result?
  • How will youcontrol the program flowwith decision branching or loops?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Programming questions