mirror of
https://github.com/parnic/advent-of-code-2023.git
synced 2025-06-16 16:50:14 -05:00
Cleanup, add flavor texts
This commit is contained in:
@ -283,7 +283,7 @@ internal class Day10 : Day
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
RenderGrid(interior);
|
// RenderGrid(interior);
|
||||||
|
|
||||||
return $"Number of spaces interior to the pipeline: <+white>{interior.Count}";
|
return $"Number of spaces interior to the pipeline: <+white>{interior.Count}";
|
||||||
}
|
}
|
||||||
|
@ -148,7 +148,7 @@ internal class Day16 : Day
|
|||||||
{
|
{
|
||||||
var beamdata = PropagateLight(new beaminfo(new ivec2(-1, 0), ivec2.RIGHT));
|
var beamdata = PropagateLight(new beaminfo(new ivec2(-1, 0), ivec2.RIGHT));
|
||||||
long energized = NumEnergized(beamdata);
|
long energized = NumEnergized(beamdata);
|
||||||
return $"<+white>{energized}";
|
return $"# energized tiles: <+white>{energized}";
|
||||||
}
|
}
|
||||||
|
|
||||||
internal override string Part2()
|
internal override string Part2()
|
||||||
@ -186,6 +186,6 @@ internal class Day16 : Day
|
|||||||
highest = val;
|
highest = val;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $"<+white>{highest}";
|
return $"Highest # energized tiles: <+white>{highest}";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -95,7 +95,7 @@ internal class Day21 : Day
|
|||||||
}
|
}
|
||||||
|
|
||||||
long numVisited = reachableNow.Count;
|
long numVisited = reachableNow.Count;
|
||||||
return $"<+white>{numVisited}";
|
return $"Garden plots reachable in 24 steps: <+white>{numVisited}";
|
||||||
}
|
}
|
||||||
|
|
||||||
internal override string Part2()
|
internal override string Part2()
|
||||||
@ -128,6 +128,6 @@ internal class Day21 : Day
|
|||||||
cornerTop + cornerRight + cornerBottom + cornerLeft +
|
cornerTop + cornerRight + cornerBottom + cornerLeft +
|
||||||
(gridWidth + 1) * (smallTopRight + smallTopLeft + smallBottomRight + smallBottomLeft) +
|
(gridWidth + 1) * (smallTopRight + smallTopLeft + smallBottomRight + smallBottomLeft) +
|
||||||
gridWidth * (largeTopRight + largeTopLeft + largeBottomRight + largeBottomLeft);
|
gridWidth * (largeTopRight + largeTopLeft + largeBottomRight + largeBottomLeft);
|
||||||
return $"<+white>{numVisited}";
|
return $"Garden plots reachable in {steps:N0} steps: <+white>{numVisited}";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -196,7 +196,7 @@ internal class Day23 : Day
|
|||||||
|
|
||||||
// Render();
|
// Render();
|
||||||
|
|
||||||
return $"<+white>{dist}";
|
return $"# steps in longest hike: <+white>{dist}";
|
||||||
}
|
}
|
||||||
|
|
||||||
internal override string Part2()
|
internal override string Part2()
|
||||||
@ -246,6 +246,6 @@ internal class Day23 : Day
|
|||||||
seen.Clear();
|
seen.Clear();
|
||||||
int dist = GetLongestDistanceFrom(graph, start, seen);
|
int dist = GetLongestDistanceFrom(graph, start, seen);
|
||||||
|
|
||||||
return $"<+white>{dist}";
|
return $"# steps in longest hike ignoring slopes: <+white>{dist}";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user