Spruce up day 10 visuals a bit

Add some more constants to help with making things look good and unicode-y.
This commit is contained in:
2023-12-14 21:18:56 -06:00
parent 27628abd48
commit b71f1dc5b2
2 changed files with 13 additions and 3 deletions

View File

@ -208,11 +208,11 @@ internal class Day10 : Day
} }
else if (interiors?.Contains(p) == true) else if (interiors?.Contains(p) == true)
{ {
Logger.Log($"<bgblue>{drawChars[grid[p]]}<r>"); Logger.Log($"<green>{Constants.SolidSmallSquare}<r>");
} }
else else
{ {
Console.Write(drawChars[grid[p]]); Logger.Log(" ");
} }
} }
Logger.LogLine(""); Logger.LogLine("");
@ -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

@ -3,10 +3,20 @@
public static class Constants public static class Constants
{ {
public const char SolidBlock = '█'; public const char SolidBlock = '█';
public const char SolidSquare = '■';
public const char SolidSmallSquare = '▪';
public const char BoxVert = '│'; public const char BoxVert = '│';
public const char BoxHorz = '─'; public const char BoxHorz = '─';
public const char BoxCurveNE = '╰'; public const char BoxCurveNE = '╰';
public const char BoxCurveNW = '╯'; public const char BoxCurveNW = '╯';
public const char BoxCurveSW = '╮'; public const char BoxCurveSW = '╮';
public const char BoxCurveSE = '╭'; public const char BoxCurveSE = '╭';
public const char BoxDoubleVert = '║';
public const char BoxDoubleHorz = '═';
public const char BoxDoubleNE = '╚';
public const char BoxDoubleNW = '╝';
public const char BoxDoubleSW = '╗';
public const char BoxDoubleSE = '╔';
} }