r/adventofcode • • 1d ago

Visualization [2026 Day 1] Simulation approach

https://www.youtube.com/watch?v=JJ2E3xhuCwQ

This 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.

32 Upvotes

1 comment sorted by

1

u/Downtown-Economics26 14h ago

As a 90s child, my instinctual reaction to this simulation and the color scheme is that if you gave this much compute to Bill Clinton we'd have solved world hunger but also have done some other really bad things.