def run_part1(self, computer: Computer): computer = computer.copy() computer.break_on_output = True robot = Robot(computer) steps = robot.explore_for_oxygen() return str(len(steps))
def run_part2(self, computer: Computer): computer = computer.copy() computer.break_on_output = True robot = Robot(computer) robot.explore_all() minutes = robot.fill_oxygen() return str(minutes)