@Absinthe Well done, you are on a roll! 😉
@JJFlash I will have to look into that. As it is, I will soon be 2 weeks behind in the AoC because I am going to Tahiti, and I have been slow coming up with puzzles here for
#Toyprogrammingchallenge as well. So there's that :)
I did not solve both with the first try because I got the first one pretty easy, but when the second one came around, I felt the need to rewrite the InCode machine in a cleaner way and I was not happy separating the direct and relative and "output" ones. I guess I am missing a "reference" or "pointer" in my Python repertoire :) But it is working.
@Absinthe Absolutely take your time, especially with the Synacor Challenge! It can be a deep rabbit hole! 😄
As for my solution, you're probably in for a surprise: I'm using Freebasic! 😅 (without fancy features, so it's basically QuickBASIC) https://github.com/JJFlash-IT/Advent_of_code/blob/master/2019/01-09/Day05_2.bas
I feel so stupid now that I saw how you extracted the Opcode with a single Mod operation!
As for being behind, Eric really said it best here: https://twitter.com/ericwastl/status/1202297198236573697?s=09
@JJFlash Thats pretty good, It has been quite some time since i BASIC
@Absinthe Oh, thank you! 😊
To learn some Python is one of my new year's resolutions, at least enough so I'll be able to use it during next year's AoC 😁
QOTO: Question Others to Teach Ourselves. A STEM-oriented instance.
No hate, No censorship. Be kind, be respectful
We federate with all servers: we don't block any servers.