yellower!

This commit is contained in:
Sander Land committed 2020-09-05 16:43:00 +02:00
1 parent 3169838319
commit 163ca07d90
4 files changed
+7 -9

No files matched your search

+1 -1
View File
@@ -288,7 +288,7 @@ class KaTrainGui(Screen, KaTrainBase):
def _do_resign(self):
self.game.current_node.end_state = f"{self.game.current_node.player}+R"
self.log(self.game.current_node.end_state,OUTPUT_INFO)
self.log(self.game.current_node.end_state, OUTPUT_INFO)
def _do_redo(self, n_times=1):
self.board_gui.animating_pv = None
-3
View File
@@ -263,6 +263,3 @@ class GameNode(SGFNode):
moves = [(policy_grid[y][x], Move((x, y), player=self.next_player)) for x in range(szx) for y in range(szy)]
moves.append((self.policy[-1], Move(None, player=self.next_player)))
return sorted(moves, key=lambda mp: -mp[0])
+4 -3
View File
@@ -455,7 +455,6 @@ class BadukPanWidget(Widget):
width=dp(1.2),
)
# children of current moves in undo / review
alpha = GHOST_ALPHA
if katrain.analysis_controls.show_children.active:
@@ -468,12 +467,14 @@ class BadukPanWidget(Widget):
(move.coords, [move.gtp()] + child_node.candidate_moves[0]["pv"], current_node)
)
Color(*STONE_COLORS[child_node.player])
for s in range(0,360,30):
for s in range(0, 360, 30):
Line(
circle=(
self.gridpos_x[move.coords[0]],
self.gridpos_y[move.coords[1]],
self.stone_size - 1.2,s,s+15
self.stone_size - 1.2,
s,
s + 15,
),
width=dp(1.2),
)
+2 -2
View File
@@ -31,7 +31,7 @@ EVAL_COLORS = {
[0.447, 0.129, 0.42, 1],
[0.8, 0, 0, 1],
[0.9, 0.4, 0.1, 1],
[0.95,0.95,0,1],
[0.95, 0.95, 0, 1],
[0.67, 0.9, 0.18, 1],
[0.117, 0.588, 0, 1],
],
@@ -39,7 +39,7 @@ EVAL_COLORS = {
[1, 0, 1, 1],
[1, 0, 0, 1],
[1, 0.5, 0, 1],
[0.85, 0.89, 0.3, 1],
[1, 1, 0, 1],
[0, 1, 1, 1],
[0, 0, 1, 1],
],