Darkwood Blog
  • Articles
  • Auto
  • Watch
  • Releases
  • Creators
  • English
  • FranΓ§ais
  • Deutsch
Login
  • βŒ‚ Blog
  • β–¦ Articles
  • β˜… Auto
  • β—· Watch
  • ↑ Releases
  • β™™ Creators

πŸŽ„ Darkwood Adventofcode #06 β€” Finding Your Bearings in the Fog

on December 6, 2026

πŸŽ„ Darkwood Adventofcode #06 β€” Finding Your Bearings in the Fog

Log in to add a reaction to this post

πŸ‘ 1

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

Darkwood Page
Advent of Code

Find the official challenges, confirmed stars and previous calendar editions.

  • Kind: content
  • Status: working
  • Topics: algorithms, php, rust
Open the catalog card

Previous edition

Day 05 β€” Many Paths, One State. Darkwood participates independently, without affiliation or endorsement from Advent of Code.

Log in to add a reaction to this post

πŸ‘ 1

Site

  • Sitemap

Network

  • Hello
  • Blog
  • Apps
  • Photos

Social

Contact Legal mentions
  • Darkwood
  • Navi
  • Flow
  • Uniflow
  • Darkwaar
  • HeroClip
  • DJ Matyo
  • Geo
  • Slide
  • Darkwood Job

Darkwood 2026, all rights reserved