<gh_stars>0
import copy

from src.input_helpers.input_path import get_input_file
from src.input_helpers.read_intcode import parse_list_of_ints
from src.logic_helpers.intcode import IntCodeComputer


def main():
    program = parse_list_of_ints(get_input_file("day2input"))
    part1 = copy.deepcopy(program)
    part1[1] = 12
    part1[2] = 2
    computer = IntCodeComputer(part1, pad_program=False)
    _, __ = computer.run_until_input_or_done()
    print(f"Part 1 result is {computer.program[0]}")


if __name__ == "__main__":
    main()

import copy

from src.input_helpers.input_path import get_input_file
from src.input_helpers.read_intcode import parse_list_of_ints
from src.logic_helpers.intcode import IntCodeComputer


def main():
    program = parse_list_of_ints(get_input_file("day2input"))
    part1 = copy.deepcopy(program)
    part1[1] = 12
    part1[2] = 2
    computer = IntCodeComputer(part1, pad_program=False)
    _, __ = computer.run_until_input_or_done()
    print(f"Part 1 result is {computer.program[0]}")


if __name__ == "__main__":
    main()