Expand description

Structs

Enums

  • Operand 🔒
    Represent an operand that can either be the old worry value or a fixed number
  • Operation 🔒
    Represent an update operation for an item’s worry level

Functions

  • Simulate the monkeys for a number of rounds, then multiply the handling counts of the two mist active monkeys to get their “monkey business score!
  • Parse a if/else branch of a monkey’s decision tree in the format If <true|false>: throw to monkey <index>
  • Parse the puzzle input into Monkeys
  • The entry point for running the solutions with the ‘real’ puzzle input.
  • Simulate each monkey processing its items in turn, updating the list in-place