no status/lock engine/no thread

This commit is contained in:
Sander Land committed 2020-12-07 14:30:51 +01:00
1 parent 9fc458f3fb
commit 353d291ef5
11 files changed
+8 -54

No files matched your search

+1 -4
View File
@@ -550,7 +550,6 @@ class Game:
if move.is_pass:
if self.current_node == cn:
self.set_current_node(node)
self.katrain.controls.set_status("", STATUS_INFO, cn)
return
count += 1
new_node = GameNode(parent=node, move=move)
@@ -559,8 +558,6 @@ class Game:
cn.add_shortcut(new_node)
self.katrain.controls.move_tree.redraw_tree_trigger()
self.katrain.controls.set_status(i18n._("playtoend:status").format(num_moves=count), STATUS_INFO, cn)
def set_analysis(result, _partial):
new_node.set_analysis(result)
analyze_and_play_policy(new_node)
@@ -569,7 +566,7 @@ class Game:
new_node, callback=set_analysis, priority=-1000, analyze_fast=True,
)
threading.Thread(target=analyze_and_play_policy, args=(cn,), daemon=True).start()
analyze_and_play_policy(cn)
def analyze_undo(self, node):
train_config = self.katrain.config("trainer")