ancient chinese+black

This commit is contained in:
Sander Land committed 2021-01-05 17:26:29 +01:00
1 parent edd2c160c7
commit 282f492c4a
5 files changed
+8 -36

No files matched your search

+2 -9
View File
@@ -434,11 +434,7 @@ class Game:
base_game_name = f"{PROGRAM_NAME}_{player_names['B']} vs {player_names['W']}"
return f"{base_game_name} {self.game_id}.sgf"
def write_sgf(
self,
filename: str,
trainer_config: Optional[Dict] = None,
):
def write_sgf(self, filename: str, trainer_config: Optional[Dict] = None):
if trainer_config is None:
trainer_config = self.katrain.config("trainer", {})
save_feedback = trainer_config.get("save_feedback", False)
@@ -585,10 +581,7 @@ class Game:
analyze_and_play_policy(new_node)
self.engines[node.next_player].request_analysis(
new_node,
callback=set_analysis,
priority=-1000,
analyze_fast=True,
new_node, callback=set_analysis, priority=-1000, analyze_fast=True
)
analyze_and_play_policy(cn)
+3 -9
View File
@@ -8,10 +8,10 @@ from typing import Dict, List, Optional, Tuple
from katrain.core.constants import (
ANALYSIS_FORMAT_VERSION,
PROGRAM_NAME,
REPORT_DT,
SGF_INTERNAL_COMMENTS_MARKER,
SGF_SEPARATOR_MARKER,
VERSION,
REPORT_DT,
VERSION
)
from katrain.core.lang import i18n
from katrain.core.sgf_parser import Move, SGFNode
@@ -319,13 +319,7 @@ class GameNode(SGFNode):
text += i18n._("Info:point loss").format(points_lost=points_lost) + "\n"
top_move = previous_top_move["move"]
score = self.format_score(previous_top_move["scoreLead"])
text += (
i18n._("Info:top move").format(
top_move=top_move,
score=score,
)
+ "\n"
)
text += i18n._("Info:top move").format(top_move=top_move, score=score) + "\n"
else:
text += i18n._("Info:best move") + "\n"
if previous_top_move.get("pv") and (sgf or details):