public DisplayCoder(InstructionsInterpreter interpreter, int width, int height) { _interpreter = interpreter; _width = width; _height = height; Pixels = new bool[width, height]; }
public static void Main(string[] args) { //var interpreter = new InstructionsInterpreter(GetInput("../../example.txt")); var interpreter = new InstructionsInterpreter(GetInput("../../input.txt")); //var displayProgrammer = new DisplayCoder(interpreter, 7, 3); var displayProgrammer = new DisplayCoder(interpreter, 50, 6); displayProgrammer.Code(); Console.WriteLine(displayProgrammer.Display()); Console.WriteLine(displayProgrammer.CountOnPixels() + " pixels are lit."); }