From 2dc47620a7ea098990535630c0aaaf1a84e46ff3 Mon Sep 17 00:00:00 2001 From: Sander Land Date: Thu, 30 Apr 2020 21:22:27 +0200 Subject: [PATCH] ai fix --- ai.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ai.py b/ai.py index d9f163a..df2eb1c 100644 --- a/ai.py +++ b/ai.py @@ -47,6 +47,7 @@ def ai_move(game: Game, ai_mode: str, ai_settings: Dict) -> Tuple[Move, GameNode if "policy" in ai_mode and cn.depth <= int(ai_settings["opening_moves"] * (game.board_size[0] * game.board_size[1])): ai_mode = "p:weighted" ai_thoughts += f"Switching to weighted strategy in the opening {int(ai_settings['opening_moves'] * (game.board_size[0]*game.board_size[1]))} moves." + ai_settings = {"pick_override": 0.9, "weaken_fac": 1, "lower_bound": 0.02} if top_5_pass: aimove = top_policy_move ai_thoughts += "Playing top one because one of them is pass."