From 163ca07d90e8d31a0677b78bdc9cd56dcd67dde4 Mon Sep 17 00:00:00 2001 From: Sander Land Date: Sat, 5 Sep 2020 16:43:00 +0200 Subject: [PATCH] yellower! --- katrain/__main__.py | 2 +- katrain/core/game_node.py | 3 --- katrain/gui/badukpan.py | 7 ++++--- katrain/gui/style.py | 4 ++-- 4 files changed, 7 insertions(+), 9 deletions(-) diff --git a/katrain/__main__.py b/katrain/__main__.py index ee5d2c8..a667637 100644 --- a/katrain/__main__.py +++ b/katrain/__main__.py @@ -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 diff --git a/katrain/core/game_node.py b/katrain/core/game_node.py index c4afc3b..502c8bb 100644 --- a/katrain/core/game_node.py +++ b/katrain/core/game_node.py @@ -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]) - - - diff --git a/katrain/gui/badukpan.py b/katrain/gui/badukpan.py index 6a818df..73f70f1 100644 --- a/katrain/gui/badukpan.py +++ b/katrain/gui/badukpan.py @@ -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), ) diff --git a/katrain/gui/style.py b/katrain/gui/style.py index d197ea6..cf642ea 100644 --- a/katrain/gui/style.py +++ b/katrain/gui/style.py @@ -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], ],