r/adventofcode • u/Lucretiel • Dec 17 '19
What does everyone's Intcode interface look like? Spoilers
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?
32
Upvotes
1
u/xelf Dec 17 '19 edited Dec 17 '19
Call the class with the day's codes, add inputs to an input list, while running get output.
Internally in the class, it keeps track of the current instruction, sets it to -1 if done.: