//calling and handling sudoku generator public void GenerateSudoku(string difficulty) { gridHandler.ClearGrid(); generator = new SudokuGenerator(gridHandler); sudoku = generator.GenerateNewSudoku(difficulty); printer.PrintSudokuInGrid(sudoku); }
/// <summary> /// Generates new Sudoku array /// </summary> public void GenerateSolution() { this.Solution = SudokuGenerator.Generate(this).Solution; }