示例#1
0
    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))
示例#2
0
    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)