placement fix/strings

This commit is contained in:
Sander Land committed 2020-06-28 19:23:39 +02:00
1 parent 8f1169c7a4
commit 237af03a58
17 files changed
+16 -16

No files matched your search

+2 -3
View File
@@ -299,10 +299,9 @@ class Game:
if mode == "extra":
if kwargs.get("continuous", False):
visits = max(engine.config["fast_visits"], math.ceil(cn.analysis_visits_requested * 1.25))
visits = max(engine.config["max_visits"], math.ceil(cn.analysis_visits_requested * 1.25))
else:
visits = cn.analysis_visits_requested + engine.config["fast_visits"]
visits = cn.analysis_visits_requested + engine.config["max_visits"]
self.katrain.controls.set_status(i18n._("extra analysis").format(visits=visits), STATUS_ANALYSIS)
cn.analyze(engine, visits=visits, priority=-1_000, time_limit=False)
return
+1 -1
View File
@@ -731,7 +731,7 @@
on_action: root.open_game_analysis_popup()
AnalysisMenuItem:
text: i18n._("analysis:continuous")
icon: 'img/off.png'
icon: 'img/play.png'
shortcut: 'space'
on_action: root.katrain.toggle_continuous_analysis()
AnalysisMenuItem:
+3 -2
View File
@@ -256,14 +256,15 @@ class BadukPanWidget(Widget):
evalsize = 0
else:
evalsize = min(1, max(0, realized_points_lost / points_lost))
for m in node.move_with_placements:
placements = node.placements
for m in node.moves + placements:
if has_stone.get(m.coords) and not drawn_stone.get(m.coords): # skip captures, last only for
move_eval_on = show_dots_for.get(m.player) and (i < show_n_eval or full_eval_on)
if move_eval_on and points_lost is not None:
evalcol = self.eval_color(points_lost, show_dots_for_class)
else:
evalcol = None
inner = STONE_COLORS[m.opponent] if i == 0 else None
inner = STONE_COLORS[m.opponent] if i == 0 and not m in placements else None
drawn_stone[m.coords] = m.player
self.draw_stone(
m.coords[0],
Binary file not shown.
@@ -579,7 +579,7 @@ msgstr "Re-analyzing entire game using {visits} visits"
#. TODO - Analyze every node in the game more deeply
msgid "analysis:game"
msgstr "Re-analyze entire game"
msgstr "Deeper full game analysis"
#. TODO - Keep improving current position analysis when there is nothing else
#. to do
Binary file not shown.
@@ -622,12 +622,12 @@ msgstr "Re-analyzing entire game using {visits} visits"
#. TODO - Analyze every node in the game more deeply
msgid "analysis:game"
msgstr "Re-analyze entire game"
msgstr "Deeper full game analysis"
#. TODO - Keep improving current position analysis when there is nothing else
#. to do
msgid "analysis:continuous"
msgstr "Continuously analyze"
msgstr "Continuous analysis"
#. TODO - ai which handles handicap games better
msgid "ai:handicap"
Binary file not shown.
@@ -100,11 +100,11 @@ msgstr "Fast analysis of all moves"
#. Analyze every node in the game more deeply
msgid "analysis:game"
msgstr "Re-analyze entire game"
msgstr "Deeper full game analysis"
#. Keep improving current position analysis when there is nothing else to do
msgid "analysis:continuous"
msgstr "Continuously analyze"
msgstr "Continuous analysis"
msgid "analysis:aimove"
msgstr "Force AI Move"
Binary file not shown.
@@ -656,12 +656,12 @@ msgstr "Re-analyzing entire game using {visits} visits"
#. TODO - Analyze every node in the game more deeply
msgid "analysis:game"
msgstr "Re-analyze entire game"
msgstr "Deeper full game analysis"
#. TODO - Keep improving current position analysis when there is nothing else
#. to do
msgid "analysis:continuous"
msgstr "Continuously analyze"
msgstr "Continuous analysis"
#. TODO - ai which handles handicap games better
msgid "ai:handicap"
Binary file not shown.
@@ -599,7 +599,7 @@ msgstr "Re-analyze entire game"
#. TODO - Keep improving current position analysis when there is nothing else
#. to do
msgid "analysis:continuous"
msgstr "Continuously analyze"
msgstr "Continuous analysis"
#. TODO - ai which handles handicap games better
msgid "ai:handicap"
Binary file not shown.
@@ -619,12 +619,12 @@ msgstr "Re-analyzing entire game using {visits} visits"
#. TODO - Analyze every node in the game more deeply
msgid "analysis:game"
msgstr "Re-analyze entire game"
msgstr "Deeper full game analysis"
#. TODO - Keep improving current position analysis when there is nothing else
#. to do
msgid "analysis:continuous"
msgstr "Continuously analyze"
msgstr "Continuous analysis"
#. TODO - ai which handles handicap games better
msgid "ai:handicap"
Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB