--- Day 19: Beacon Scanner ---
or..
I have no idea what I'm doing and it is starting to effect my task performance
Part 1
Python
I surfed a lot of help guides on reddit for D19 P1 and found the only solution that made sense to me:
- Make all 27 rotations for all scanners
- offset a single point from a scanner onto a point of scanner 0
- offset all the other points in the single canner by the same offset
- check for 12 matches (set.intersection)
- do that a lot...
Go
Still catching up
Part 2
Python
I banged my head against this for a long time. The "bug" in my code was related to me adding coordinates to determine scanner positions vs subtracting them. After a pen and paper style example from my friend John and seeing a tip to turn the very basic 2 scanner 3 beacon test input into 3d coords by adding a ,0 after them and then testing scanner position against that; I got it.
It's done...
Go
We'll see.
<< - Table of Contents - >>