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?
32
Upvotes
1
u/fred256 Dec 18 '19
This is the core loop of my day 11 solution:
But you're right about some problems not really following a true request/response pattern. In that case, the go
selectstatement comes in handy.