0
votes
Day 6
Today's problem description: https://adventofcode.com/2026/day/6
Please post your solutions in your own top-level comment. Here's a template you can copy-paste into your comment to format it nicely, with the code collapsed by default inside an expandable section with syntax highlighting (you can replace python with any of the "short names" listed in this page of supported languages):
<details>
<summary>Part 1</summary>
```python
Your code here.
```
</details>
This was the hardest puzzle yet, by quite a large margin. Part 1 was easy enough on its own, but my initial solution for it proved to be entirely useless for Part 2, so I had to start over from scratch. I now start by building the entire grid at an arbitrary rotation, which makes Part 1 trivial, and then use the first two anchor points (the third isn't necessary) to determine the grid's rotation and translate the coordinates of the target light ID for Part 2. My code here is still pretty messy, but I've already spent a while cleaning it up and would rather not work on it any further. It seems to be decently efficient, at least.
Solution (Lily)