You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So at the beginning of an encounter, the generator is initialized with cycle(self.dna). In this way, we can avoid having to reinitialize the self.dna_cycler every fight (which I wanted to do), and also allow a more natural and encapsulated way to generate the next action of a guy. Also, we could pickle the creature directly, since it won't contain a cycle object!
This could also be used in conjunction with the fight context manager I want to make in issue #9
The text was updated successfully, but these errors were encountered:
So at the beginning of an encounter, the generator is initialized with cycle(self.dna). In this way, we can avoid having to reinitialize the self.dna_cycler every fight (which I wanted to do), and also allow a more natural and encapsulated way to generate the next action of a guy. Also, we could pickle the creature directly, since it won't contain a cycle object!
This could also be used in conjunction with the fight context manager I want to make in issue #9
The text was updated successfully, but these errors were encountered: