Example #1
0
        public Generator(SudokuGrid.GridOptions options)
        {
            grid = new SudokuGrid(options);
            grid.Setup();

            desc = options.isJigsaw ? "Jigsaw" : options.isKiller ? "Killer" : "Normal";
            if (grid.MajorDiagonal && grid.MinorDiagonal)
            {
                desc += " Cross";
            }
            else if (grid.MajorDiagonal)
            {
                desc += " Major";
            }
            else if (grid.MinorDiagonal)
            {
                desc += " Minor";
            }
            desc += " " + options.Cells;

            new Thread(new ThreadStart(AutoGenerate)).Start();
        }