Skip to main content

Timeline for A Text-Based Game

Current License: CC BY-SA 4.0

5 events
when toggle format what by license comment
Nov 20, 2022 at 0:54 vote accept Voreto Robert
Nov 20, 2022 at 0:54 comment added Voreto Robert I noticed you linked it, which simplified things. I am grateful for it and especially for your answer!
Nov 20, 2022 at 0:45 comment added Arcanist Lupus @VoretoRobert Of course! That's why I linked to the documentation. The difference between using init and what you were doing are kind of subtle and relate to how Python treats classes, so it's not surprising it confused you.
Nov 20, 2022 at 0:22 comment added Voreto Robert Hello! I realize that I still have a lot of work to do, which is understandable given that I'm only getting started with Python. I've seen some folks use init to create characters, but I don't understand it yet. I don't even know what dataclasses is, but I'll read it over and study it. The global in the battle() function is an accident; I forgot to remove it. I had a lot of thoughts and improvisations after reading your response. I appreciate your assistance and the time you spent!
Nov 19, 2022 at 23:33 history answered Arcanist Lupus CC BY-SA 4.0