示例#1
0
        public void SolvePart1()
        {
            string[]   code      = InputParser.ReadToStringArr(Day, "1");
            GBExecutor exec      = new GBExecutor(code);
            IInspector inspector = new D08P1Inspector();

            exec.Run(inspector);
        }
示例#2
0
        public void SolveTest()
        {
            string[]           code      = InputParser.ReadToStringArr(Day, "Test");
            GBExecutor         exec      = new GBExecutor(code);
            D08P2InspectorTest inspector = new D08P2InspectorTest(new List <long>());
            int n = 10000;
            int i = 0;

            while (exec.ExitCommand.Name != "COMPLETE")
            {
                exec.Run(inspector);
                inspector = new D08P2InspectorTest(exec.Inspector.UtilityListLong);
                if (i > n)
                {
                    break;
                }
                else
                {
                    i++;
                }
            }
        }