Module advent_of_code_2022::day_11
source · Expand description
This is my solution for Advent of Code - Day 11 - Day 11: Monkey in the Middle
Structs
Enums
- Operand 🔒Represent an operand that can either be the old worry value or a fixed number
- 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
Monkey
s - 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