Another day, another AOC challenge begging to be visualised. Smarter people than me would animate the actual folding operations nicely; I’m not so hot at that sort of thing. Instead what we’ve got is a scaled output (so as the grid shrinks in size after each fold the output stays the same size - the effect being that the dots get stretched) of each folding operation, ending up with the solution shown on the screen for all to see.

The code used to generate it (but, again, not the data1) is here: python/day13part2_extracredit.py

(If that doesn’t work, Click here to view the video directly)


  1. Although today, that’s totally ineffective security-by-obscurity because my actual answer is embedded in the output…