Skip to content
UniKit

Sudoku

Generate a uniquely solvable sudoku from a seed and play it on the board: four difficulty levels, optional candidate display, live highlighting of conflicts and wrong cells, hints that explain whether a cell has a single candidate, plus a real timer and a locally stored best time. The same seed and difficulty always give the same puzzle, and no guessing is involved.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Sudoku board

Click a hole, then press keys 1-9 to fill it and Backspace to clear it; click the board once to use the keyboard.

Filled 41 / 81 · 40 empty · 0 conflict(s) · 0:00 · New game: difficulty Medium, puzzle fixed by seed demo-1
Givens
41
Filled
41
Empty
40
Conflicts
0
Wrong cells
0
Time
0:00
Best time
-

Arrow keys / W A S D move the cursor, 1-9 fill, Backspace / 0 clears

What this tool does

  • Play a sudoku: pick a difficulty and solve it on the board, clicking a hole and pressing 1-9 to fill it (Backspace clears).
  • Check your work as you go: cells repeating a digit in their row, column or box are highlighted, and mistakes are counted against the unique solution.
  • Stuck? Press “Hint a cell”: it first gives a cell with a single remaining candidate (a real deduction) and otherwise fills one cell from the unique solution and says so.

Example

Input

Seed demo-1, difficulty “Medium” → New game

Output

Puzzle (41 givens, 40 holes):
. 2 . | . 3 5 | . 8 7
. 7 3 | . 9 . | 6 5 1
. . 5 | . . 4 | 2 . .
------+-------+------
. 8 7 | . . . | . 1 .
6 5 . | 1 7 . | 9 3 .
1 3 . | . . . | . . 2
------+-------+------
. 9 . | . 5 . | 3 . .
5 . 2 | . 6 . | . 7 .
. 4 8 | 9 . . | . . .
Status: Filled 41 / 81 · 40 empty · 0 conflict(s) · 0:00

The same seed and difficulty always give the same puzzle; changing the difficulty only changes how many holes are dug, and puzzles are always uniquely solvable.

Frequently asked questions

Are the puzzles generated here? Can they have several solutions?

The puzzle comes from the seed: a full board is built by backtracking, then cells are removed one by one and only kept removed while the solution stays unique. Uniqueness is decided by backtracking with a solution-count limit of two, so it is a proof rather than a heuristic.

How do I fill in digits?

Click a hole to select it and press keys 1-9 (or move the cursor with the arrow keys and press 1-9); Backspace or 0 clears the current cell. The givens of the puzzle cannot be edited — clicking one tells you so.

What is the difference between a conflict and a wrong cell?

A conflict means the same digit repeats in a row, column or box, independent of the solution, and is highlighted; a wrong cell is one that differs from this puzzle’s unique solution. Both counts are computed live, and the puzzle is finished only when every cell is right.

Are the timer and the best time real?

Yes. The timer counts from the moment a new puzzle starts using the browser’s high-resolution clock and stops when you finish; the best time is stored per difficulty in this device’s local storage only — nothing is uploaded.

How is this different from the Sudoku solver?

This tool is for playing: generating puzzles, filling them in, watching conflicts, timing and hints. To paste a grid and solve it in one click, decide unique/multiple/unsolvable or step through deductions with reasons, use the Sudoku solver instead.

Keywords:sudoku

Related tools