diff --git a/bots/engine_server.py b/bots/engine_server.py index b71d0cf..b008476 100644 --- a/bots/engine_server.py +++ b/bots/engine_server.py @@ -13,6 +13,7 @@ PORT = int(sys.argv[1]) if len(sys.argv) > 1 else 8587 ENGINE_SETTINGS = { "katago": "my/katago25", + # "katago": "KataGo/katago", "model": "KataGo/models/b15-1.3.2.txt.gz", "config": "KataGo/analysis_config.cfg", "max_visits": 50, diff --git a/img/flaticon/next999.png b/img/flaticon/next999.png index 0559fc2..c6bb8f6 100644 Binary files a/img/flaticon/next999.png and b/img/flaticon/next999.png differ diff --git a/img/flaticon/previous999.png b/img/flaticon/previous999.png index 214c2f9..9e27db2 100644 Binary files a/img/flaticon/previous999.png and b/img/flaticon/previous999.png differ diff --git a/katrain.py b/katrain.py index ca3ccfa..3414af7 100644 --- a/katrain.py +++ b/katrain.py @@ -91,7 +91,7 @@ class KaTrainGui(BoxLayout): # AI and Trainer/auto-undo handlers cn = self.game.current_node auto_undo = cn.player and "undo" in self.controls.player_mode(cn.player) - if auto_undo and cn.analysis_ready and cn.parent and cn.parent.analysis_ready: + if auto_undo and cn.analysis_ready and cn.parent and cn.parent.analysis_ready and not cn.children and not self.game.ended: self.game.analyze_undo(cn, self.config("trainer")) # not via message loop if cn.analysis_ready and "ai" in self.controls.player_mode(cn.next_player).lower() and not cn.children and not self.game.ended and not (auto_undo and cn.auto_undo is None): self._do_ai_move(cn) # cn mismatch stops this if undo fired. avoid message loop here or fires repeatedly.