Thank you guys!
Updated to a Map
data structure, and it does all the difference!
Interesting one where I get the high-level logic right, but a subtle bug has been hiding in my code since day 5, and today it comes to bite me in the ass in a very annoying manner.
Today was not my dayā¦
I tried at work while waiting for CI and other peopleā¦
I spent a lot of time hunting down for unexplainableāand even worseānonreproducable crashes of my IntcodeVM. And I didnāt even had tackled any D9 specific stuff, I was just preparing the VM to accept non-pos-mode args for āwrite toā arguementsā¦
It ended in me just committing the state as it was, driving home and after lunch trying again from where I left.
Everything went smooth, I got clean match errors with nice stack traces and I could fix the issues within minutesā¦
In the VM code, even some try/catch
s are left which I used to try to figure out whats going onā¦
Ahh, [203, 0]
! You are not alone, I was there too, struggling to figure out the cause of [203, 0]
at some point in progress! I also store the input to the wrong address for 203
. Iām as excited as you when I saw you got it working.