We’re making a program to solve an asterisk sudoku via a recursive approach with back tracking. The solveIt method calls the solve method which is the recursive method. grid is declared before to be a 9×9 2D array that contains the puzzle to be filled in. If there is one solution, the program must print out the completed puzzle however
Tag: sudoku
Sudoku Backtracking with Solution Counter
Background I’ve implemented a sudoku-solver algorithm (backtracking) that looks like this: This solution is working fine (it can solve sudokus). What I try to achieve I now want to achieve that the algorithm tells me, whether there is only one solution or more solutions. What I’ve tried I tried to achieve my goal, by changing the return type to an