Exemplo n.º 1
0
        public static void P2()
        {
            var lines  = Utilities.GetStringFromFile("Day9.txt").SplitLongArrayFromString(',');
            var config = new IntCodeVMConfiguration();
            //config = new IntCodeVMConfiguration { Logging = true, FriendlyLogging = false };

            var vm = new IntCodeVMOLD(config);

            vm.RunProgram(lines, new long[] { 2 });

            Console.WriteLine(vm.outputs.Peek());
        }
Exemplo n.º 2
0
 public IntCodeVMOLD(IntCodeVMConfiguration config)
 {
     this.config = config;
 }
Exemplo n.º 3
0
 public IntCodeVMOLD()
 {
     config = new IntCodeVMConfiguration();
 }