Skip to content

Commit

Permalink
Fix tictactoe reset bug (when one agent died)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheaple committed Sep 11, 2024
1 parent cb56618 commit 294f3b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pettingzoo/classic/tictactoe/tictactoe.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def reset(self, seed=None, options=None):
self.truncations = {i: False for i in self.agents}
self.infos = {i: {} for i in self.agents}
# selects the first agent
self._agent_selector.reinit(self.agents)
self._agent_selector.reinit(self.possible_agents)
self.agent_selection = self._agent_selector.reset()

if self.render_mode is not None and self.screen is None:
Expand Down

0 comments on commit 294f3b5

Please sign in to comment.