From 4d7cecb03e13c964f6d7df3d9ba86fa6a1cff77f Mon Sep 17 00:00:00 2001 From: Ramon Wijnands Date: Sat, 25 Nov 2023 12:20:30 +0100 Subject: [PATCH] Fix tournament --- tournament.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tournament.py b/tournament.py index 8dd24b7..7a99422 100755 --- a/tournament.py +++ b/tournament.py @@ -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()