Aaron's Page

This is where I post about what I'm working on.

--- Day 19: Beacon Scanner ---

or..

I have no idea what I'm doing and it is starting to effect my task performance

one art please

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:

  1. Make all 27 rotations for all scanners
  2. offset a single point from a scanner onto a point of scanner 0
  3. offset all the other points in the single canner by the same offset
  4. check for 12 matches (set.intersection)
  5. 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 - >>