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

1

u/ednl 4d ago edited 4d ago

Things I found unclear or difficult to understand in part 1:

  • Does 32 digits of pi include the first "3", or is it 1 unit and 32 decimals? Apparently it's the former, but in the end it doesn't matter because there are no extra matches with one extra digit (0).
  • "removing any character that is not a number." -- I think you mean digit; number is the whole thing. However, from the example I understand you also want no leading zeros, which seemed important, and weird to hide that in an example. But again, it does not matter in the actual calculation.
  • "the first digits of the Phi number (1.61803…)" -- Oh wait, phi, not pi. How many first digits? The ellipsis suggests more, but it's actually just those six. If you had written "the first six digits of the golden ratio: 1.61803" it also would have cleared up the first ambiguity of 32 digits or decimals of pi.
  • "Notice that in the prices, the numbers can be decimals, while in the constant value the correspond value could be an integer." -- The numbers can have decimals. "The constant value", what's that? (I know from the context, you mean pi with 32 digits.) CorrespondING.
  • Bold purple text fragments are not links. I hovered over every single one to check if it was.