Beispiel #1
0
        public void _Run()
        {
            Results = new List <Result>();

            for (int i = Work.Length - 1; i >= 0; i--)
            {
                string[] split = Work[i].Split(Delimiter);

                Sudoku      soduko = new Sudoku(split[0]);
                SolveResult res    = Solver.Solve(soduko);

                Results.Add(new Result()
                {
                    Input   = split[0],
                    Output  = res.Solved.ToString(),
                    Elapsed = res.Elapsed,
                    Worker  = this
                });
            }

            Finished = true;
            WS.Finish();
        }