Binary Puzzle Generator
A binary puzzle has three rules and no arithmetic at all, which makes it a pure logic exercise and unusually approachable — anybody who can count to four can start, and the deductions get genuinely intricate. Each row and column must hold equal numbers of 0 and 1, no three of the same digit may sit together, and no two rows or columns may be identical. That third rule is the one that turns it from easy into interesting.
What this generator does
Produces a grid that provably satisfies all three rules. Sudoku here guarantees a unique solution; a binary puzzle is generated differently — a valid complete grid is built by backtracking, then squares are removed. The answer shown is therefore *a* solution rather than necessarily the only one, and the page says so rather than implying a guarantee it does not make.
How to use this tool
- Choose a grid size.
- Make a puzzle.
- Fill every empty square with a 0 or a 1 so all three rules hold.
- Reveal the answer when you are done, or stuck.
Understanding the controls
- Grid size
- 6×6, 8×8 or 10×10, all even because each row must split equally between the two digits. A 10×10 is substantially harder, not just larger.
Worked examples
- 6×6
- Three 0s and three 1s in every row and every column.
- Three in a row
- Never allowed — in rows or columns, in the solution or on the way there.
- Two identical rows
- Rejected, which is the rule that makes the hard deductions possible.
- About half the grid removed
- Enough to be a puzzle, enough left to make progress.
Common use cases
- Logic practice that needs no arithmetic, for any age
- A starter activity that works across a wide ability range
- Introducing constraint reasoning before formal logic
- A printable puzzle for a cover lesson or a quiet activity
- Anybody who likes sudoku and wants something with different rules
How this generator works
A complete valid grid is built by backtracking, testing each placement against all three rules as it goes and undoing anything that fails — which is why the finished grid always satisfies them rather than usually satisfying them. Roughly half the squares are then removed to make the puzzle. The complete grid is re-checked before display: equal digits in every row and column, no three in a row anywhere, and no two rows or columns identical.
Randomness and fairness
The grid is built by a randomised backtracking search, so each press gives a genuinely different puzzle. The rules are constraints on that search rather than checks after it, which is why an invalid grid cannot be produced.
For how randomness is produced across the whole site, see how Generate Random works.
Assumptions this tool makes
- The three standard binary-puzzle rules, which is the form the puzzle is usually published in.
Limitations and good to know
- The solution shown is a valid grid rather than a proven unique one — with about half the squares removed, some puzzles will have more than one completion.
- Difficulty is not graded. A 10×10 is harder than a 6×6, but two puzzles of the same size will vary.
- There is no in-page solver or hint system.
- Puzzles are not stored and there is no seed here, so a puzzle you liked cannot be recovered — print it before you leave.
Common mistakes
- Forgetting the no-duplicate-lines rule
- It is the rule that unlocks most of the hard deductions. If you are stuck, compare a nearly-full row with the completed ones.
- Only counting within rows
- Columns have exactly the same constraints. Most progress comes from switching between the two.
- Guessing rather than looking for a forced square
- Look for a pair of identical digits — the square either side is forced, because three in a row is not allowed.
Practical tips
- Start by filling in anywhere a pair forces a digit either side; that usually cascades.
- Count each row and column as you go — once a row has its quota of one digit, the rest are the other.
Privacy and your data
Everything is computed in your browser. There is nothing to type, nothing to upload, nothing stored between visits, and nothing written into the page address. Analytics records that the tool ran and how big the grid was.
Frequently asked questions
- Is there always exactly one solution?
- Not guaranteed. The tool removes about half the grid, which usually leaves a unique completion but does not prove it. The answer shown is a valid solution; yours may differ and still be correct.
- Why must the grid be an even size?
- Because each row and column has to split equally between 0 and 1. An odd-length row cannot be halved.
- How is this different from sudoku?
- Two digits instead of nine, no boxes, and a rule about repeated lines that sudoku has no equivalent of. The deductions feel quite different despite both being pure logic.
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.
- Truth Table GeneratorThe full truth table for an expression you type — or one drawn for you — with the grouping shown fully bracketed and a tautology or contradiction verdict counted from the rows.
- Nonogram GeneratorPrintable nonograms whose clues are proved to have exactly one solution, and to be solvable without guessing.
- Kakuro GeneratorCross-sum puzzles where every run adds to its clue using distinct digits — every clue satisfiable by construction.