S.P.A.R.K. Edition — AI Tools

sudoku grid Sudoku Generator

Watch recursive backtracking build a valid puzzle from scratch — step by step

Sudoku requires a larger screen or landscape orientation.
Please rotate your device or switch to a tablet or desktop.

Generated Puzzle
                 
                 
                 
                 
                 
                 
                 
                 
                 
🐢 200ms
Choose a difficulty and click Generate
Phase 1: Fill Backtrack Kept (needed) Final given
Phase 1 — Fill: fillGrid() recurses on each empty cell, trying digits in random order. A red flash = backtrack (that digit failed downstream). The depth in the log shows how deep the call stack is.
Phase 2 — Remove: Each removed cell is verified by countSolutions() (a second recursive function). A yellow flash = cell restored (its removal broke uniqueness).
Generator Log

Sudoku Home  •  Rules & Strategies
S.P.A.R.K. Chat Log