public static double SolveDay2Part1(int arg1, int arg2) { var program = _GetIntCodes(@"../../../../codes/day2/program.txt"); var computer = new IntCodeComputer(); var engine = new ComputeEngine(); computer.AddEngine(engine); var outputProgram = computer.Run(program, arg1, arg2); return(outputProgram[0]); }
public void AddEngine(ComputeEngine engine) { _engines.Add(engine); }