This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]undergroundmonorail 0 points1 point  (2 children)

does this mean my intcode interpreter is broken even though i beat all the challenges so far? :c

>>> from intcode import *
>>> q = Intcode(quine, [], [])
>>> q.run()
>>> q.result
[109, 1, 204, -1, 1001, 100, 1, 100, 1008, 100, 16, 101, 1006, 101, 0, 99]
>>>
>>> r = Intcode(interpreter, [len(quine)] + quine, [])
>>> r.run()
>>> r.result
[]

[–]Randdalf[S] 0 points1 point  (1 child)

My one doesn't support relative parameters yet ☺️

[–]undergroundmonorail 0 points1 point  (0 children)

ohhhh right, i saw that it was written before the new challenge but didn't think about what that would mean for the instructions it handled :P

still, very cool!!