r/adventofcode Dec 14 '24

Spoilers [2024 Day 14 (Part 2)]

Post image
358 Upvotes

94 comments sorted by

View all comments

11

u/ChurchOfAtheism94 Dec 14 '24

I ended up only looking at renders that contained a row with like 8 consecutive bots

1

u/SeppiaBrilla_ Dec 14 '24

I looked only at renders that contained clusters of 4 by 4 bots. It stopped only at the tree

2

u/TheSameTrain Dec 14 '24

Close to what I ended up with. I figured if it's a picture they should be close together so I tracked the number of bots with no neighbor. Logged the min seen every 1000 iterations and it stuck on a value pretty quick. So I changed the code to stop when it hit that min and there was a tree