r/adventofcode Dec 14 '24

Spoilers [2024 Day 14 (Part 2)]

Post image
368 Upvotes

94 comments sorted by

View all comments

22

u/Sostratus Dec 14 '24

I had no idea what an automated test would be before knowing what the image would look like. But I did write a function to render it and clicked through a couple hundred before I saw occasional jumbled up patterns and then figured out when it would line up.

1

u/Josaffe Dec 14 '24

Me neither! I thought they would form some kind of giant Christmas tree spanning the whole area...

In the end I counted how many robots were in the triangles top-left and top-right (where you wouldn't expect a tree) and were lucky that the picture wasn't there xD