Greetings,
I am a current computer science student and am also working through sites such as Codecademy, freecodecamp, etc. and had a project to create using Python. I chose a text adventure that that I used in one of my first courses and have refined it to meet the requirments for this project. I know it is fairly basic and that I could optimize the movement keys but I wanted to post what I had.
The image above shows the introduction with instructions and a map. Next, the prompts show how movement occurs between the rooms and how to get items. After an item is retrieved it shows on the screen in your inventory.
The code for the inventory highlights the use of python dictionary's and the inputted text parsed and split, then checked using if/elif statements.
Here is a link to my code if interested: Aphid's Revenge
I would love to hear any and all thoughts on things that are good and what needs improvement.
Thanks!
Top comments (0)