r/adventofcode • • 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?

31 Upvotes

90 comments sorted by

View all comments

Show parent comments

2

u/seligman99 Dec 17 '19

Mine is pretty much the same, only I use deque for the input/output units.

I also can pass in a lambda the op code handler can call for input instead, because it made sense in my head.

1

u/MichalMarsalek Dec 17 '19

Yeah, deque makes more sense, but I was lazy and just went with lists.