def __init__(self, wake_vacuum_robot_up=False):
     opcodes = read_comma_separated_integers('day17input.txt')
     if wake_vacuum_robot_up:
         assert opcodes[0] == 1
         opcodes[0] = 2
     self.ic = Intcode(opcodes)
     self.ic.start()
Exemple #2
0
 def __init__(self, address):
     self.address = address
     self.input_q = deque()
     self._idle_counter = 0
     self.ic = Intcode(read_comma_separated_integers('day23input.txt'))
     self.ic.start()
     self.ic.write_input(address)
Exemple #3
0
    def __init__(self, hul: dict):
        self.ic = Intcode(read_comma_separated_integers('day11input.txt'))
        self.ic.start()

        self.hul = hul
        self.position = 0, 0
        self.direction_index = 0
Exemple #4
0
 def __init__(self):
     self.ic = Intcode(read_comma_separated_integers('day25input.txt'))
     self.ic.start()
Exemple #5
0
 def __init__(self, phase_setting):
     self.ic = Intcode(read_comma_separated_integers('day7input.txt'))
     self.ic.start()
     self.ic.write_input(phase_setting)
 def __init__(self, max_coord):
     self.opcodes = read_comma_separated_integers('day19input.txt')
     self.max_coord = max_coord
     self.cache = {}
 def __init__(self):
     self.ic = Intcode(read_comma_separated_integers('day13input.txt'))
     self.screen = {}
     self.score = 0
Exemple #8
0
 def __init__(self):
     self._codes = read_comma_separated_integers('day2input.txt')