public void DoAction2() { var content = ReadFile(); var image = SpaceImage.Create(content, 6, 25); image.Render(); }
public void DoAction1() { var content = ReadFile(); var image = SpaceImage.Create(content, 6, 25); var minimumZerosLayer = image.Layers.First(x => x.DigitCount('0') == image.Layers.Min(y => y.DigitCount('0'))); var count1 = minimumZerosLayer.DigitCount('1'); var count2 = minimumZerosLayer.DigitCount('2'); var output = count1 * count2; Console.WriteLine($"Checking space image isn't corrupted. The output is {output}"); }