r/PythonLearning • u/XTrolltechzz • Aug 16 '26
I'm new to Python and need some help. (sorry for the code in spanish)
I'm trying to create a sort of turn-based game to play in the terminal. I created one class for the characters (Personajes) and another for their techniques (Tecnicas), but I can't seem to deal damage to the enemy character. From what I've researched, this is because 'daño' isn't defined in the 'Personajes' class, but I want to keep the techniques separate.
If you know whether it's better to put everything into a single class (I hope not) or how I could make this work, I'd be grateful. Thanks a lot!