filesel/ai

This commit is contained in:
Sander Land committed 2020-09-28 12:15:07 +02:00
1 parent e74d7c7166
commit f336bea3d0
5 files changed
+6 -5

No files matched your search

-1
View File
@@ -352,7 +352,6 @@ def generate_ai_move(game: Game, ai_mode: str, ai_settings: Dict) -> Tuple[Move,
if top_cand.is_pass and ai_mode not in [
AI_DEFAULT,
AI_HANDICAP,
AI_SIMPLE,
]: # don't play suicidal to balance score
aimove = top_cand
ai_thoughts += f"Top move is pass, so passing regardless of strategy. "
+2 -2
View File
@@ -89,8 +89,8 @@ AI_OPTION_VALUES = {
"threshold": [2, 2.5, 3, 3.5, 4, 4.5],
"automatic": "bool",
"pda": [(x / 10, f"{'W' if x<0 else 'B'}+{abs(x/10):.1f}") for x in range(-30, 31)],
"max_points_lost": [x/10 for x in range(51)],
"settled_weight": [x/10 for x in range(-100,101)],
"max_points_lost": [x / 10 for x in range(51)],
"settled_weight": [x / 10 for x in range(-100, 101)],
}
AI_KEY_PROPERTIES = {"kyu_rank", "strength", "weaken_fac", "pick_frac", "pick_n", "automatic"}
+1
View File
@@ -281,6 +281,7 @@ class KataGoEngine:
"boardXSize": size_x,
"boardYSize": size_y,
"includeOwnership": ownership and not next_move,
"includeMovesOwnership": ownership and not next_move,
"includePolicy": not next_move,
"initialStones": [[m.player, m.gtp()] for m in initial_stones],
"initialPlayer": analysis_node.root.next_player,