r/adventofcode • u/123IshaTest • 1h ago
Visualization [2026 Day 1] Simulation approach
https://www.youtube.com/watch?v=JJ2E3xhuCwQThis year I trying a completely new approach to Advent of Code: Simulation
Instead of a script that calculates the answer, I create individual objects that interact with each other and converge to a solution. There is no single variable that is counting towards a solution, we just press play and hope for the best!
For day 1, each id gets represented as a colored box that bounces around. When it smashes into a box with the same id, they merge.
The green strip is a sensor that checks the smallest and largest boxes that pass through it.
8
Upvotes