Here's a simple implementation of a function to generate a Sudoku board using backtracking in Python:
main.py1946 chars67 lines
You can then use this function to generate a Sudoku board:
main.py38 chars3 lines
This will output a 9x9 grid representing a randomly generated Sudoku puzzle.
gistlibby LogSnag