ai fix
This commit is contained in:
1 parent
e13fbee9af
commit
2dc47620a7
1 file changed
+1
@@ -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."
|
||||
|
||||
Reference in new issue
Block a user