Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
StoneT2000 committed Feb 14, 2023
1 parent aa6fe01 commit 453e0d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions luxai_s2/luxai_s2/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion luxai_s2/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 453e0d3

Please sign in to comment.