Expand description

This is my solution for Advent of Code - Day 9 - Rope Bridge

Enums

  • Direction 🔒
    Represent the directions a motion can be in

Functions

  • Map a specification of a move of the head of the rope to the list of positions it follows
  • map a list of motions specifications to the list of positions it follows
  • Map the movement specification to the tail movement of an arbitrary length of rope.
  • Map the input file to the internal representation
  • Map a line of the input to the internal representation
  • The entry point for running the solutions with the ‘real’ puzzle input.
  • Give a new head position, move the tail so it is still touching

Type Aliases

  • Motion 🔒
    An instruction to move the head of the rope in a direction for a distance
  • Position 🔒