π Darkwood Adventofcode #06 β Finding Your Bearings in the Fog
on December 6, 2026
December 6, 2026 edition. After a refit in a fictional workshop, a technician has two files. One says which sensors are wired together. The other shows where to look for them on an old floor plan. You can trace the connections, but the drawing might be rotated or mirrored. How do you bring the two files into agreement?
Advent of Code β Day 6
The official challenge, Obscured Airfield, distinguishes two tasks: navigating a network and orienting its representation on a map. Both parts were accepted on December 6. The workshop example below uses its own data.
Read the connections and the map
Suppose wires connect A to B and B to C. In the graph, getting from A to C means passing through B. Breadth-first search finds this path in two hops. The wiring list alone tells us neither the length of the cables nor the locations of the sensors. On the floor plan, straight-line distance is a separate measurement.
| Sensor | Local reading | Position on the workshop map |
|---|---|---|
| A | (0, 0) | (10, 20) |
| B | (2, 0) | (10, 22) |
| C | (2, 1) | (9, 22) |
The two maps use the same scale with different axis directions. The segment AβB fixes the direction of one axis. Reflecting across that segment would still leave A and B in place and put C on the other side at (11, 22). The third landmark sits off the line AβB and resolves the ambiguity. With axes pointing right and up, the chosen transformation is a quarter turn followed by a shift of the origin: (x, y) β (10 β y, 20 + x).
Check before merging
The map helps locate the sensors. The graph helps trace the connections. To combine them, test the transformation on a control sensor that played no part in choosing it. If the discrepancy exceeds the expected accuracy, check the unit, sensor ID or map version before proceeding.
Darkwood Page β Advent of Code
Previous edition
Day 05 β Many Paths, One State. Darkwood participates independently, without affiliation or endorsement from Advent of Code.