Expand description
This is my solution for Advent of Code - Day 20: Race Condition
parse_input
turns the input file into a RaceTrack
RaceTrack::cheats
solves both parts. It uses RaceTrack::get_track_positions
to turn the grid data into an
indexed list of the spaces visited, then calculates those that match the part’s criteria and counts them. There
are some coordinate utilities in CoordinateExtensions
.
Structs§
Traits§
Functions§
- Turn the input file into the set of free spaces that make up the race’s course (including start and end) as well as storing the positions of the start and end spaces.
- The entry point for running the solutions with the ‘real’ puzzle input.