throw exception on no new kata
This commit is contained in:
1 parent
1f31ef4d33
commit
a5ce5e4be2
16 files changed
+10
-11
No files matched your search
+2
-3
@@ -430,10 +430,9 @@ def generate_ai_move(game: Game, ai_mode: str, ai_settings: Dict) -> Tuple[Move,
|
||||
ai_thoughts += f"{ai_mode} strategy. Top 5 Candidates {', '.join(cands)} "
|
||||
aimove = moves_with_settledness[0][0]
|
||||
else:
|
||||
game.katrain.log(
|
||||
"No moves found - are you using an older KataGo with no per-move ownership info?", OUTPUT_ERROR
|
||||
raise(
|
||||
Exception("No moves found - are you using an older KataGo with no per-move ownership info?")
|
||||
)
|
||||
aimove = top_cand
|
||||
else:
|
||||
if ai_mode not in [AI_DEFAULT, AI_HANDICAP]:
|
||||
game.katrain.log(f"Unknown AI mode {ai_mode} or policy missing, using default.", OUTPUT_INFO)
|
||||
|
||||
@@ -45,9 +45,9 @@ AI_STRATEGIES = AI_STRATEGIES_ENGINE + AI_STRATEGIES_POLICY
|
||||
AI_STRATEGIES_RECOMMENDED_ORDER = [
|
||||
AI_DEFAULT,
|
||||
AI_RANK,
|
||||
AI_HANDICAP,
|
||||
AI_SIMPLE_OWNERSHIP,
|
||||
AI_SETTLE_STONES,
|
||||
AI_HANDICAP,
|
||||
AI_SCORELOSS,
|
||||
AI_POLICY,
|
||||
AI_WEIGHTED,
|
||||
|
||||
Reference in new issue
Block a user