Continuing my journey in simulation and text generation with Python
Continuing my journey in simulation and text generation with Python
quantasticjourney.blogspot.com
The Good, The Bad and The Stirred Up
My third blog post. I added variation in the tense of the generated text as well as another possible action for the character.
I've only glanced down your code and am not familiar with your previous efforts. Combine insulting and stirred-up to one class. "CharacterTraits" or so. This then makes it easier to add more traits like happiness, warmongering, intelligence, luck etc.
They currently have the parent class "Action" for their common attributes and methods. Does that cover what you are suggesting?
I didn't see, but if they want a trait that has a completely set of different methods? I'm not a big fan of interface-esque classes unless the API is absolutely solid. In this case it would not be.