From 7dbcd30cc851cbd099836470c064eba950ac6de0 Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Wed, 23 Feb 2022 09:49:04 -0500 Subject: [PATCH] [F] A2 P1 Fix potential tree modification conflict --- assignments/A2/a2_part1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assignments/A2/a2_part1.py b/assignments/A2/a2_part1.py index 69023d6..6b8f590 100644 --- a/assignments/A2/a2_part1.py +++ b/assignments/A2/a2_part1.py @@ -167,7 +167,7 @@ def part1_runner(games_file: str, n: int, black_random: bool) -> None: """ tree = load_game_tree(games_file) white = RandomTreePlayer(tree) - black = a2_minichess.RandomPlayer() if black_random else white + black = a2_minichess.RandomPlayer() if black_random else RandomTreePlayer(tree) a2_minichess.run_games(n, white, black, show_stats=True)