Example #1
0
        private string Part2CountCalculator(ImageLayer[] layers)
        {
            var result = new ImageLayer(layers[0]);

            for (int i = 0; i < layers.Length; i++)
            {
                result = result.RenderAbove(layers[i]);
            }
            return(result.AsDisplayableString(25, 6).Replace('0', '_').Replace('1', 'H').Replace('2', ' '));
        }