From b71f1dc5b2ea75d2d8affa41b0cdbdc8eb3754e5 Mon Sep 17 00:00:00 2001 From: Parnic Date: Thu, 14 Dec 2023 21:18:56 -0600 Subject: [PATCH] Spruce up day 10 visuals a bit Add some more constants to help with making things look good and unicode-y. --- src/10.cs | 6 +++--- src/Util/Constants.cs | 10 ++++++++++ 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/10.cs b/src/10.cs index 0f223b8..5a5997f 100644 --- a/src/10.cs +++ b/src/10.cs @@ -208,11 +208,11 @@ internal class Day10 : Day } else if (interiors?.Contains(p) == true) { - Logger.Log($"{drawChars[grid[p]]}"); + Logger.Log($"{Constants.SolidSmallSquare}"); } else { - Console.Write(drawChars[grid[p]]); + Logger.Log(" "); } } 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}"; } diff --git a/src/Util/Constants.cs b/src/Util/Constants.cs index 8c9b923..160e86f 100644 --- a/src/Util/Constants.cs +++ b/src/Util/Constants.cs @@ -3,10 +3,20 @@ public static class Constants { public const char SolidBlock = '█'; + public const char SolidSquare = '■'; + public const char SolidSmallSquare = '▪'; + public const char BoxVert = '│'; public const char BoxHorz = '─'; public const char BoxCurveNE = '╰'; public const char BoxCurveNW = '╯'; public const char BoxCurveSW = '╮'; 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 = '╔'; }