static void Main(string[] args)
 {
     Day07.IntcodeComputer computer = new IntcodeComputer(Advent2019.Utils.GetInput(args));
     Console.WriteLine("Part 1: " + FindHighestSignal(computer, new int[] { 0, 1, 2, 3, 4 }));
     Console.WriteLine("Part 2: " + FindHighestSignal(computer, new int[] { 5, 6, 7, 8, 9 }));
 }
Beispiel #2
0
 /// <summary>
 /// CPY CTOR
 /// </summary>
 /// <param name="ic">IntcodeComputer to copy.</param>
 public IntcodeComputer(IntcodeComputer ic)
 {
     this._baseOpcodes = ic._baseOpcodes;
 }