From 4fb1778e0709eb3ddd7630d1788c1ddd3a80a8a8 Mon Sep 17 00:00:00 2001 From: AndresQ Date: Wed, 17 Mar 2021 17:30:00 +0100 Subject: [PATCH] store the last game state for end_of_round --- environment.py | 1 + 1 file changed, 1 insertion(+) diff --git a/environment.py b/environment.py index 68bfebb38..5af3018b2 100644 --- a/environment.py +++ b/environment.py @@ -462,6 +462,7 @@ def end_round(self): # Clean up survivors for a in self.active_agents: a.add_event(e.SURVIVED_ROUND) + a.store_game_state(self.get_state_for_agent(a)) # Send final event to agents that expect them for a in self.agents: