Expand description

This is my solution for Advent of Code - Day 10 - Cathode-Ray Tube

Interpret a set of instructions into pixels on a display

Enums

  • Represent the two possible instruction types that the puzzle input can contain

Functions

  • Interpret the signals as controlling a “sprite” that will cause a pixel to be lit if the sprite overlaps whilst the pixel is drawn.
  • Parse the puzzle input string
  • Parse a line of the input to a signal
  • The entry point for running the solutions with the ‘real’ puzzle input.
  • Take specific signals and sum them
  • to_signals 🔒
    Interpret the instruction list into the signals sent to the display