Got stuck completely at part 1. Last 2 examples
did not add up, off by 100 ore.
I did know that I had to count by overflows somehow,
but I could not manage it. After countless hours
writing a verbose debugger, I wiped the whole thing
and looked at this code for inspiration:
https://github.com/sophiebits/adventofcode/blob/master/2019/day14.py
It works by using modulus and removing all keys
in a dict except ORE.
Bugs discovered in intcode:
- Relative base was reset on await input suspend.
- No handling for incorrect intcodes.
- State was sometimes corrupted when resumed after
suspend.
Fixed and Patched in 0.3.2
Refactored the intcode computer to live in a separate
file, since it will come back more times.
As a nice touch, output of aoc.py will print the version
used of the intcode.
As another nice touch, the int code has a CHANGELOG.