From 453e0d3a244ce5d9b0fad1f075ae1c8d3acc9a9c Mon Sep 17 00:00:00 2001 From: stone_tao Date: Tue, 14 Feb 2023 01:35:22 -0800 Subject: [PATCH] fix bug --- luxai_s2/luxai_s2/env.py | 4 ++-- luxai_s2/setup.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/luxai_s2/luxai_s2/env.py b/luxai_s2/luxai_s2/env.py index 5d8ed0c6..cd96248e 100644 --- a/luxai_s2/luxai_s2/env.py +++ b/luxai_s2/luxai_s2/env.py @@ -277,7 +277,7 @@ def _handle_bid(self, actions): failed_agents[k] = True except Exception as e: print(traceback.format_exc()) - failed_agents[agent] = True + failed_agents[k] = True for agent in self.agents: if failed_agents[agent]: return failed_agents @@ -366,7 +366,7 @@ def _handle_factory_placement_step(self, actions): pass except Exception as e: print(traceback.format_exc()) - failed_agents[agent] = True + failed_agents[k] = True return failed_agents def _handle_nobidding_early_game(self, actions): diff --git a/luxai_s2/setup.py b/luxai_s2/setup.py index a117ed15..82aa3245 100644 --- a/luxai_s2/setup.py +++ b/luxai_s2/setup.py @@ -17,7 +17,7 @@ def read(fname): long_description="Code for the Lux AI Challenge Season 2", packages=find_packages(exclude="kits"), entry_points={"console_scripts": ["luxai-s2 = luxai_runner.cli:main"]}, - version="2.1.5", + version="2.1.6", python_requires=">=3.7", install_requires=[ "numpy",