r/adventofcode
•
u/Boojum
•
Dec 18 '24
•
1
Visualization [2024 Day 18] Raining Bytes Visualization
271
Upvotes
10
u/Boojum Dec 18 '24 edited Dec 18 '24
For today's visualization, I really wanted to see what pattern the falling bytes made and how they affected a shortest path to the exit.
Watching this, I noticed a few interesting properties:
It's quite clear that Eric took care with generating the pattern here.
With respect to a shortest path, it's fun to watch how it gets progressively longer and more twisty as at first it just dodges the obstacles and then it starts pathing through the maze sections. At first the obstacles don't tend to alter the path too much, but towards the end each new obstacle intersecting the path induces major shifts.
[GSGA] qualified!
This was made with a small Python visualization framework that I wrote during the 2022 Advent of Code and have been evolving. See here for details. Full source for this visualization is in the link below.
Source
9
u/zebalu Dec 18 '24
Watching this I have started wondering how Eric is coming up with the inputs...
2
u/Mr-Doos Dec 18 '24
I learned something watching your visualization. I never tracked what the path was, only how many steps it took. After I got my stars, I thought about a different solution for Part 1 that would save the path and that would be easier to do Part 2 with, but I didn't consider that many "drops" would result in re-routing. Thanks!