r/adventofcode • • 6h ago

Visualization [2026 Day 4 (Part 1)] [Python] Terminal Visualization

Here's a little terminal checker for barcodes. For there to be a valid instruction of length n, it suffices to check that every nth position is a single color (or a ?). (These are the check-marked rows.)Code lives here: https://github.com/salt-die/Advent-of-Code/tree/main/2026/aoc_visuals

5 Upvotes

0 comments sorted by