Question: Module 7- project 2 1. I created a new file in the PyCharm integrated development environment (IDE), title it TextBasedGame.py. I cannot get the items

Module 7- project 2 


1. I created a new file in the PyCharm integrated development environment (IDE), title it "TextBasedGame.py.  I cannot get the items in my dictionary to As you develop your code, remember that you must use industry standard best practices including in-line comments and appropriate naming conventions to enhance the readability and maintainability of the code. 


2. develop a function or functions using Python script. Your function or functions should do the following: 


• Show the player the different commands they can enter (such as "go North", "go West, and get (item Name]"). 


• Show the player's status by identifying the room they are currently in, showing a list of their inventory of items, and displaying the item in their current room. 


You could make these separate functions or part of a single function, depending on how you prefer to organize your code. developing a main function in your code. The main function will contain the overall gameplay functionality the dictionary linking rooms to one another and leaking items to the corresponding rooms. I created the loop for the gameplay. I tried to develop calls to the functions that show the player status and possible commands. Function should display the players current room and prompt the player for their next command. Gameplay loop should include decision branching to handle different commands and control the program slow. Continue looping, allowing the player to move to different rooms and acquire items until the player has won or lost the game. The code I attached is my code for this assignment that I need help with. I think my game loop has some issues?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

lets break down the questions and address them properly Creating a new file in PyCharm IDE To create ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!