accept fewer moves based on order

This commit is contained in:
Sander Land committed 2020-10-11 14:46:04 +02:00
1 parent 2bf184694e
commit adfaf5ccd8
1 file changed
+1 -1
+1 -1
View File
@@ -414,7 +414,7 @@ def generate_ai_move(game: Game, ai_mode: str, ai_settings: Dict) -> Tuple[Move,
for d in candidate_ai_moves
if d["pointsLost"] < ai_settings["max_points_lost"]
and "ownership" in d
and (d["order"] < 5 or d["visits"] >= ai_settings.get("min_visits", 1))
and (d["order"] <= 1 or d["visits"] >= ai_settings.get("min_visits", 1))
for move in [Move.from_gtp(d["move"], player=cn.next_player)]
],
key=lambda t: t[5]["pointsLost"]