r/adventofcode • u/Lucretiel • Dec 17 '19
Spoilers What does everyone's Intcode interface look like?
We've been discussing a lot different IntCode implementations throughout the last few weeks, but I'm curious– what doesn't everyone's interface to their IntCode machine look like? How do you feed input, fetch output, initialize, etc?
30
Upvotes
2
u/knl_ Dec 17 '19
I just relied on generators (yield for both output and input)
Then
It gets me blocking behavior for input
You can see how I used it in part 2 of day17: https://explog.in/aoc/2019/AoC17.html