chore: make intcode an installable package

- Move intcode/ from 2019/ folder to the root of the repository
- The package is automatically installed with the adventofcode package
  with `pip install -e .` command
This commit is contained in:
2026-02-17 19:11:50 +01:00
parent 97c7b63217
commit f783ff0d6d
9 changed files with 58 additions and 20 deletions

View File

@@ -1,10 +1,7 @@
import sys
from pathlib import Path
sys.path.append(str(Path(__file__).absolute().parent.parent / "intcode"))
from itertools import cycle, permutations
from intcode import interpret_intcode, Interpreter
from adventofcode.intcode import interpret_intcode, Interpreter
def main(inp):
mem = list(map(int, inp.readline().rstrip().split(",")))