mirror of
https://github.com/parnic/advent-of-code-2023.git
synced 2025-06-16 16:50:14 -05:00
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:
@ -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}";
|
||||||
}
|
}
|
||||||
|
@ -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 = '╔';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user