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
10 files changed
+1 -47

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")
@@ -762,8 +762,3 @@ msgstr "Expand/Collapse"
msgid "analysis:playtoend"
msgstr "Fast playout to game end"
#. TODO - Status message
msgid "playtoend:status"
msgstr ""
"Playing game to the end with policy strategy, please wait ... {num_moves} "
"moves played."
@@ -814,8 +814,3 @@ msgstr "Expand/Collapse"
msgid "analysis:playtoend"
msgstr "Fast playout to game end"
#. TODO - Status message
msgid "playtoend:status"
msgstr ""
"Playing the game quickly to the end, please wait ... {num_moves} moves "
"played."
Binary file not shown.
@@ -122,12 +122,6 @@ msgstr ""
msgid "analysis:playtoend"
msgstr "Fast playout to game end"
#. Status message
msgid "playtoend:status"
msgstr ""
"Playing the game quickly to the end, please wait ... {num_moves} moves "
"played."
#. Keep improving current position analysis when there is nothing else to do
msgid "analysis:continuous"
msgstr "Toggle continuous analysis"
@@ -821,8 +821,3 @@ msgstr "Expand/Collapse"
msgid "analysis:playtoend"
msgstr "Fast playout to game end"
#. TODO - Status message
msgid "playtoend:status"
msgstr ""
"Playing the game quickly to the end, please wait ... {num_moves} moves "
"played."
@@ -847,9 +847,3 @@ msgstr "Expand/Collapse"
#. TODO - Menu option
msgid "analysis:playtoend"
msgstr "Fast playout to game end"
#. TODO - Status message
msgid "playtoend:status"
msgstr ""
"Playing the game quickly to the end, please wait ... {num_moves} moves "
"played."
@@ -804,9 +804,3 @@ msgstr "Expand/Collapse"
#. TODO - Menu option
msgid "analysis:playtoend"
msgstr "Fast playout to game end"
#. TODO - Status message
msgid "playtoend:status"
msgstr ""
"Playing the game quickly to the end, please wait ... {num_moves} moved "
"played.moves played."
@@ -775,8 +775,3 @@ msgstr "Expand/Collapse"
msgid "analysis:playtoend"
msgstr "Fast playout to game end"
#. TODO - Status message
msgid "playtoend:status"
msgstr ""
"Playing the game quickly to the end, please wait ... {num_moves} moves "
"played."
@@ -811,8 +811,3 @@ msgstr "Expand/Collapse"
msgid "analysis:playtoend"
msgstr "Fast playout to game end"
#. TODO - Status message
msgid "playtoend:status"
msgstr ""
"Playing the game quickly to the end, please wait ... {num_moves} moves "
"played."