no hints if policy moves on

This commit is contained in:
Sander Land committed 2020-09-06 23:08:03 +02:00
1 parent a0d0bba58e
commit aed7b52f00
3 files changed
+5 -4

No files matched your search

+1 -2
View File
@@ -268,7 +268,6 @@ class BadukPanWidget(Widget):
nodes = katrain.game.current_node.nodes_from_root
realized_points_lost = None
katrain.config("trainer/show_dots")
for i, node in enumerate(nodes[::-1]): # reverse order!
points_lost = node.points_lost
evalscale = 1
@@ -410,7 +409,7 @@ class BadukPanWidget(Widget):
self.active_pv_moves = []
# hints or PV
if katrain.analysis_controls.hints.active and not game_ended:
if katrain.analysis_controls.hints.active and not katrain.analysis_controls.policy.active and not game_ended:
hint_moves = current_node.candidate_moves
for i, move_dict in enumerate(hint_moves):
move = Move.from_gtp(move_dict["move"])