Sudoku Variant Generator
This is the sudoku a solver reaches for once the plain one has stopped surprising them: the same grid, with one or more further rules laid over it. The usual rows, columns and boxes always apply — these are sudoku with more rules, never sudoku with different ones — and every extra rule is a setting rather than a page of its own. That means you can do the thing a book of variants cannot offer, which is switch two of them on together and find out what happens. What happens is checked rather than assumed: the finished grid is solved again under whatever rules are on, and a puzzle that turns out to have two answers is never handed over.
What this generator does
Lays one or more extra rules over an ordinary sudoku grid, fills a grid that satisfies all of them, then removes clues only for as long as the puzzle still has exactly one answer under those same rules.
How to use this tool
- Choose the grid size and how hard you want it.
- Tick the extra rules. One is plenty to start with; two makes a very different puzzle.
- Make the puzzle. A grid with several rules on it can take a few seconds to settle.
- Show the answer, or print the puzzle with the answer on a second sheet.
- Give a seed if you want the same puzzle again.
Understanding the controls
- Grid size
- Four, six or nine. Not every rule fits every size, and the ones that do not are simply not offered rather than offered and then refused.
- How hard
- Sets how few clues to aim for. Fewer than a plain sudoku of the same name, because the extra rules do some of the work a clue would otherwise have to do.
- The extra rules
- Tick as many as you like. Two at once is a genuinely different puzzle, and the answer is re-proved unique under whatever combination is on.
- Seed
- A word gives back the same grid and the same clues while the generator is unchanged, which is what you want when a room needs the same puzzle.
Common use cases
- A solver who has run out of interest in the plain grid
- A puzzle page where the rules have to be printed alongside
- Testing whether two rules can be satisfied at once
- A club or classroom set where everyone gets the same grid
- Practice at a specific technique that a rule forces
Randomness and fairness
The filled grid and the order clues are removed in are decided using the browser's secure generator. Typing a seed switches to a repeatable sequence so the same puzzle can be printed twice; that path exists for reproducibility and is not cryptographically strong.
For how randomness is produced across the whole site, see how Generate Random works.
Limitations and good to know
- Some pairs of rules cannot be met together, and that is proved by trying every placement: diagonal with anti-knight on a four grid, and on a six grid any two of diagonal, anti-knight, anti-king and non-consecutive. On a nine grid nothing is proved impossible, but hyper with non-consecutive has never built here, and diagonal with non-consecutive is given up on about two seeds in five. The page says which happened — no grid can exist, or none was found in the time allowed — rather than producing a puzzle that does not work.
- A grid with several rules on it takes a few seconds to settle, and a pairing the search gives up on takes about five seconds to give up. That is the cost of proving the answer rather than assuming it.
- The clue counts are targets, not promises. Carving stops the moment the next clue removed would give the grid a second answer, so a puzzle sometimes keeps more clues than the setting asked for.
- Difficulty here is the clue count and the rules, not a measurement of which solving techniques are needed. The plain sudoku page grades by technique; this one does not claim to.
Related generators
- Sudoku GeneratorPrint a sudoku with exactly one solution — 4x4, 6x6 or full 9x9, four difficulties, with the answer key and a seed to reprint it.
- Killer Sudoku GeneratorSudoku with cage totals in place of given digits: the grid is divided into cages, and only one grid fits them.
- Printable Puzzle Book GeneratorBuilds a printable book of up to 250 sudoku, mazes, word searches, nonograms, fill-in crosswords and codewords — sectioned, ramped from gentle to hard, numbered front to back, with an answer key that matches.
- Tarsia Puzzle GeneratorCut-out triangle matching puzzles that fit together into one large triangle only when every touching edge is a question and its own answer, with the finished shape as the answer sheet.
- Futoshiki GeneratorA Latin square solved from greater-than signs rather than given digits, with every clue proved necessary and exactly one answer.
- Wordoku Puzzle GeneratorA full 9x9 sudoku with nine letters standing in for the nine digits, chosen so the finished grid's own diagonal spells a real nine-letter word.