From 294f3b58e2cb73eac9cb752ff99030b38a208fe4 Mon Sep 17 00:00:00 2001 From: Yule Date: Thu, 12 Sep 2024 05:09:39 +0800 Subject: [PATCH] Fix tictactoe reset bug (when one agent died) --- pettingzoo/classic/tictactoe/tictactoe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pettingzoo/classic/tictactoe/tictactoe.py b/pettingzoo/classic/tictactoe/tictactoe.py index e3c219c5a..f38951cdd 100644 --- a/pettingzoo/classic/tictactoe/tictactoe.py +++ b/pettingzoo/classic/tictactoe/tictactoe.py @@ -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: