Advent of Code 2025:2, Rockstar edition

Background The other day I posted my first attempt at coding in Rockstar . After that I couldn't help myself, and continued with the second Advent of Code puzzle. The code Just like the first time, I wrote a little JavaScript implementation first, to make sure my logic was sound, then I implemented it in Rockstar. This time I hit the ground running, and except for a few frustratingly vague error…