Module advent_of_code_2022::day_9
source · Expand description
This is my solution for Advent of Code - Day 9 - Rope Bridge
Enums
- 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