Expand description

This is my solution for Advent of Code - Day 5 - Supply Stacks

Implements parsing a diagram of stacked crates, and simulate moving them towers of hanoi style according to an instruction list.

Structs

  • Represents the current state of the set of stacks being moved.

Functions

  • SPlit the input into the two sections and independently parse each one
  • parse_move 🔒
    Parse a single move line in the format move 2 from 2 to 1
  • Map the list of moves to the internal representation
  • The entry point for running the solutions with the ‘real’ puzzle input.

Type Aliases

  • Move 🔒
    Specifies one move of a stack of crates: (number_of_crates, source_stack, target_stack)