What happens if the player enters an invalid direction or item command?Does the game provide the correct output? 

As you develop, you should be sure to debug your code to minimize errors and enhance functionality. After you have developed all of your code, be sure to run the code and use the map you designed to navigate through the rooms, testing to make sure that the game is working correctly. Be sure to test different scenarios such as the following:

What happens if the player enters a valid direction? Does the game move them to the correct room?

When the player gets an item from a room,is the item added to their inventory?

What happens if the player enters an invalid direction or item command?Does the game provide the correct output?

What happens if the player wins the game? What happens if the player loses the game?

What to Submit To complete this project,you must submit the following:

TextBasedGame.py Develop and submit the “TextBasedGame.py” file using PyCharrn. Include your full name in a comment at the top of the code. Be sure to submit the code that you have completed, even if you did not finish the full game.