Module aoc::year2018::day13

source ·
Expand description

§Mine Cart Madness

Simulates the mine carts for both parts. When checking the grid we only care about \, / and + characters, all other characters can be ignored. Carts are sorted by y and then by x before each tick as the movement order is important to resolve collisions or near misses correctly.

Structs§

Functions§