Skip to content

Commit

Permalink
Fix tournament
Browse files Browse the repository at this point in the history
  • Loading branch information
Rayman committed Nov 25, 2023
1 parent 631fd11 commit 4d7cecb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tournament.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ def single_game(match):
game = Game(agents=agents, round_type=RoundType.TURNS)
while True:
for event in game.update():
print_event(event, game.agents)
agent_names = {id: agent.name for id, agent in game.agents.items()}
print_event(event, agent_names)
if game.finished():
break
print()
Expand Down

0 comments on commit 4d7cecb

Please sign in to comment.