r/pythontips • • Nov 24 '24

Module text based adventure game project

Hey there, I am a student planning to go into a computer science course in uni next year and I am on a foundation program that includes a computer science / coding course which is teaching python.

While I am familiar with coding I am still at beginner level knowledge.

Our professor has assigned a project of creating a text based adventure game, which is a creative and effective way to learn how to code if you are a beginner.

While I have a plan in mind of how I want to structure my game, I am having trouble identifying which would be a more suitable way to go about it.

I want to create rooms / scenes so the character can move around the map, but I am not very sure if I should do it by creating different modules and fucntions to call them in to my main program or if I should include those scenes/map inside of my main function using dictionaries.

I'd appreciate any advice given, or any tips.

4 Upvotes

8 comments sorted by

View all comments

Show parent comment

1

u/Professional-Song773 Nov 25 '24

Thank you for your advice.

Data classes sounds interesting but I will probably stick with the dictionaries at first.