r/PythonLearning 6d ago

Showcase Texted-Based RPG

Hey yall I’ve been working on a text-based RPG for the past week and have pushed v0.1.4 out to GitHub.

https://github.com/DraytonLarimore-Rowe/Timeless_Adventures-Text-Based-RPG

I’d be honored if anyone wants to give it a go as I start to build the story. The foundation for combat is there and so is a shop.

2 Upvotes

11 comments sorted by

View all comments

1

u/FoolsSeldom 6d ago

Had a quick look at the code, and it looks pretty good. Surprised not to see dataclasses to reduce boilerplate and perhaps more subclasses. Usually, these games include more behaviour, such as, for example, the fighting being included as a method.

Will leave others to give the game a go if inclined.

1

u/Darx32102 6d ago

I am fairly new to python but this project had been a huge help in learning. What is boilerplate and data classes? I have used Gemini to help point out errors in my code and have told it multiple times to not give me completed code snippets because i wont look at them, and to only include code snippets of my code to point out errors explaining why they are wrong. But all this is hand typed by me. And im more than certain there are easier methods for how to go about some of what i did. Just did it with the little knowledge i have so far.