Module aoc::year2020::day24

source ·
Expand description

§Lobby Layout

Hex grid parsing and navigation uses Axial Coordinates exactly as described in the excellent Red Blob Games blog.

Part two uses exactly the same approach as day 17 and most of the code is identical.

As the black tiles are very sparse (about 8% for my input) it’s faster to switch from a “pull” model where we check the surroundings neighbors of each tile, to a “push” model where we update the neighbors of each black tile instead.

Structs§

Functions§