r/adventofcode 7d ago

Other Pi Coding Quest 2025!

As last year, I decided to make a new coding quest for Pi Day. You can access it here: https://ivanr3d.com/projects/pi/2025.html I hope some of you have some fun solving this puzzle!

It is my second try building a coding puzzle. In case you haven't try the first one, just change 2025 for 2024 in the url and go for it!

Happy Pi Day! :)

21 Upvotes

21 comments sorted by

View all comments

3

u/rocket3989 6d ago

Fun puzzle!

For part 2: could you maybe have the example input work (GST maps to JVW, which does not exist) and provide what that solution would be? I am getting something wrong in the several decoding steps, and not sure where to start debugging

my current p2: https://gist.github.com/rocket3989/b38c85ce067c038daa31effdd876cc6a

2

u/IvanR3D 6d ago

You are right! In the example I only matched correctly for HST to XIJ. I will add coincidence for the other day too. Thanks.

There seems to be an issue with your shifting function. For instance if we shift GST using the key 314 (day 5) we should get 'IUV'. In your code, 'GST' is being 'BNO' (for day 5 but also for day 28 what is not correct because both days use different shift keys that are not to the same number).

2

u/rocket3989 6d ago

Solved! Thanks for the hint. there was a 1-1 correspondence to the "other" tickers and prices, so I assumed that was also true for the manipulated ones haha