Sudoku game (playable)
A uniquely solvable sudoku generated from a seed and playable right on the page: click a cell and press 1–9, move with the arrow keys, clear with Backspace, use pencil-mark notes, conflict highlighting, one-cell hints, undo, a timer and a mistake counter. The same seed plus hole count always produces the same puzzle.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Sudoku board
Select a cell, press 1–9 to fill it, Backspace to clear, arrow keys to move. In notes mode digits are written as small pencil marks.
What this tool does
- Play a sudoku: the page opens on a playable board — click a cell and press 1–9, no app needed.
- Share a board with someone: agree on a seed and hole count and you both get exactly the same puzzle.
- Stuck and want a nudge: select a cell and press "Hint a cell" to reveal just that digit, counted as a hint.
Example
Input
Seed demo-1, target holes 45
Output
36 given digits (the first row reads `. 2 . | . 3 5 | . 8 7`); row 1 column 1 is empty with candidates 4 / 9; after "Hint a cell" it becomes 9 and the hint counter goes up by one.
The same seed plus hole count always generates the same puzzle — the board above is the one you see on first load.
Frequently asked questions
Is the puzzle guaranteed to have a unique solution?
Yes. The board is produced by generating a full solution grid, digging symmetric holes, then counting solutions with a backtracking solver: anything other than exactly one solution is discarded and re-dug. The hole count is adjustable from 17 to 64 (17 is the theoretical minimum for a unique sudoku). More holes means more retries, but the result is still unique.
What does a hint give me?
It fills only the selected cell with the unique solution and increments "hints N". It never reveals the whole grid and never modifies the given digits. Cells already given by the puzzle, or cells you have already filled correctly, do not consume a hint. The panel also shows the legal candidates for the selected cell (digits not excluded by its row, column or box) — an empty candidate list means something earlier is wrong.
Are wrong entries rejected?
No. A wrong digit is written into the cell, counted as a mistake and its conflicting cells are highlighted in red (the highlight can be switched off). That is deliberate: sudoku is about spotting contradictions yourself, and blocking wrong input removes the ability to probe. "Undo" steps back one move at a time.
How do I use the keyboard?
Click the board (or any cell) once to focus it, then press 1–9 to fill, Backspace / Delete / 0 to clear, and the arrow keys to move. With "Notes mode" on, digits become small pencil marks for note-taking; pressing the same digit again removes that mark. Every action is undoable.
Where are the timer and score kept?
The clock starts on your first move and stops when the board is full and fully correct (showing "Time mm:ss · N mistakes · N hints"). All state lives in the page memory only — refreshing restarts, nothing is uploaded and nothing is written to storage. Note the seed and hole count down if you want the same board back.
Keywords:sudoku gamesudoku hint