Esempio 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());
        }
Esempio n. 2
0
 public IntCodeVMOLD(IntCodeVMConfiguration config)
 {
     this.config = config;
 }
Esempio n. 3
0
 public IntCodeVMOLD()
 {
     config = new IntCodeVMConfiguration();
 }