Skip to content

Commit

Permalink
Merge debugger and visualizer
Browse files Browse the repository at this point in the history
  • Loading branch information
Pbatch committed Jul 8, 2024
1 parent 2102e94 commit e415b95
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions clashroyalebuildabot/bot/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e415b95

Please sign in to comment.