Example #1
0
        public static IntCodeCpu Load(this IntCodeCpu cpu, IEnumerable <int> program)
        {
            var bigIntProgram = program.Select(x => new BigInteger(x)).ToArray();

            return(cpu.Load(bigIntProgram));
        }
Example #2
0
        public static IntCodeCpu Load(this IntCodeCpu cpu, string csv)
        {
            var program = csv.ToProgram();

            return(cpu.Load(program));
        }