Eigenbahn / ai-dungeon-cli

:european_castle: A cli client to play.aidungeon.io
MIT License
150 stars 34 forks source link

reset prompt_iteration on new story #12

Closed Zer0xFF closed 4 years ago

Zer0xFF commented 4 years ago

right now, if you want to start a new story, you have to start with a new AiDungeon object, else the iterator will be set high, causing indexing error, simply reseting it ever time a story is started can fix that.

p3r7 commented 4 years ago

OK!

But we should keep something like:

self.prompt_iteration = None

In the constructor (AiDungeon.__init__()).