Exemplo n.º 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);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Generates new Sudoku array
 /// </summary>
 public void GenerateSolution()
 {
     this.Solution = SudokuGenerator.Generate(this).Solution;
 }