Advent of Code 2024 - Day 6

Click here to see my source code for this day&rsquo;s problem. If you haven&rsquo;t solved today or any day&rsquo;s puzzle yet yourself, there&rsquo;s bound to be spoilers in these writeups. Boy, this one was rough. Part 1 On paper, this doesn&rsquo;t seem too bad. We&rsquo;re given a grid (as is tradition) containing two different things: a guard represented by directional arrows ( <>^v ), and…