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