Cleanup, add flavor texts

This commit is contained in:
2023-12-24 13:01:40 -06:00
parent 17518fdb35
commit 42d5939428
4 changed files with 7 additions and 7 deletions

View File

@ -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}";
} }

View File

@ -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}";
} }
} }

View File

@ -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}";
} }
} }

View File

@ -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}";
} }
} }