Module aoc::year2022::day23

source ·
Expand description

§Unstable Diffusion

We represent elves as bits in a integer then use bitwise operations to efficiently figure out the movement for multiple elves at once.

Structs§

Enums§

Constants§

  • HEIGHT 🔒
    The initial grid is 70 x 70. Elves stop moving when no other elf is adjacent so the grid will expand at most 70 in any direction, giving 70 + 70 + 70 = 210 total.

Functions§