Hi,
I have written out the steps to a sudoku solver, do you think I am missing anything?
ThanksCode:-Find empty cell -Check current cell -If current cell not empty, move to next -Stop when empty cell is found -If not empty cells exist the puzzle is solved -Try possible numbers -Start at 1 and work way to 9 -Build list of possible numbers -Check if possible number already exists in row, column and segment -If above is true number is eliminated as it can't go in the cell -Place the number in the cell if it is the ONLY possible number -Repeat this process until the board is solved




Reply With Quote