A Python program that solves sudoku problems with backtracking. Tried this out with what's known as the 'world's hardest sudoko', created by Finnish mathematician Arto Inkala. The solution by the program matches the one found online.
- Find empty square
- Try every number from 1 - 9
- Check if it's valid (doesn't violate rules)
- If it is, move on to next empty square
- If not, backtrack to last-entered number and try more digits
- Keep backtracking and entering in solutions until whole grid is complete
Sudoku is a logic-based number puzzle where you fill in numbers on a 9x9 grid. However, each number you fill in must not already be in the same row, column or 3x3 block.