From e415b956d4db61a070b8ae80397c5db1022f6bef Mon Sep 17 00:00:00 2001 From: peter Date: Mon, 8 Jul 2024 22:03:38 +0100 Subject: [PATCH] Merge debugger and visualizer --- clashroyalebuildabot/bot/bot.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/clashroyalebuildabot/bot/bot.py b/clashroyalebuildabot/bot/bot.py index 592f1ca..52ca681 100644 --- a/clashroyalebuildabot/bot/bot.py +++ b/clashroyalebuildabot/bot/bot.py @@ -116,8 +116,7 @@ def get_actions(self): def set_state(self): screenshot = self.emulator.take_screenshot() self.state = self.detector.run(screenshot) - if self.visualizer is not None: - self.visualizer.run(screenshot, self.state) + self.visualizer.run(screenshot, self.state) def play_action(self, action): card_centre = self._get_card_centre(action.index)