A binary puzzle is a grid you fill with 0s and 1s using three rules: no more than two of the same digit next to each other, the same number of 0s and 1s in every row and column, and no two rows or columns exactly alike. It is also sold as Takuzu, Binairo or Tic-Tac-Logic. You never need to guess: nearly every square in a well-made puzzle falls to two patterns, the pair and the gap, plus counting. This guide explains the rules, six techniques in the order you will use them, and a complete 6×6 puzzle solved square by square, so you can check your method before you try the binary puzzle game.
No three in a row. A row or column may contain 0 0 or 1 1, but never 0 0 0 or 1 1 1, across or down.
Equal counts. Every row and every column has exactly as many 0s as 1s. That is why the grid always has an even size: a 6×6 line holds three of each, an 8×8 line four of each.
No repeated lines. No two rows may be identical, and no two columns may be identical. This rule matters only near the end, when two lines are almost finished.
Some versions use colours (black and white, or blue and red) or the letters X and O instead of digits. The logic is identical. A properly made puzzle has exactly one solution, so every digit you write should be forced by a rule. If you find yourself choosing between two options with no reason, go back and look for a pair or a gap you missed.
The first two rules cut down the possibilities far more than you might expect. We counted every line that has equal 0s and 1s and no three alike in a row, for each common grid size:
A 6×6 row has only 14 legal patterns out of 64 strings of six digits, and only 4,140 complete 6×6 grids satisfy all three rules. That is why a 6×6 puzzle can be solved from as few as seven given digits. On our own 6×6 test, a puzzle with 7 givens had exactly one answer, found by the pair, gap and counting rules alone.
| Grid size | 0s and 1s per line | Legal lines |
|---|---|---|
| 6×6 | 3 and 3 | 14 |
| 8×8 | 4 and 4 | 34 |
| 10×10 | 5 and 5 | 84 |
| 12×12 | 6 and 6 | 208 |
| 14×14 | 7 and 7 | 518 |
1. Pairs: close off two of a kind
Whenever two equal digits sit side by side, the squares at both ends must be the opposite digit. In a row reading . 1 1 . both blanks are 0, because a third 1 on either side would make three in a row. Scan every row and every column for pairs first; each new digit often creates another pair.
2. Gaps: fill between two of a kind
When two equal digits have exactly one empty square between them, as in 0 . 0, the middle square must be the opposite digit, here 1. Pairs and gaps together solve most of an easy puzzle.
3. Counting: complete a line
In a 6×6 grid each line needs three 0s and three 1s. As soon as a row has three 0s, every blank left in it is a 1, and the other way round. In an 8×8 grid the trigger is four of a kind. Keep a running count in your head for the lines that are nearly full.
4. End-to-end: two of a kind at the ends of a 6-line
A row of six with 0 at both ends, 0 . . . . 0, still needs one more 0 and three 1s in the four middle squares. If the second square were 0, the third, fourth and fifth would all be 1, three in a row. So the second square is 1, and by the same argument the fifth square is 1: 0 1 . . 1 0. The same works with 1s at both ends.
5. Count ahead: rule out the digit that would force a triple
Look at 0 . . . 0 . in a row of six. If the last square were 0, the row would already have its three 0s, so the three blanks in the middle would all be 1, which is illegal. The last square must therefore be 1. In general: try a digit in your head, count what the rest of the line would be forced to hold, and reject it if that creates three in a row. Do this only for one line at a time; it is a quick check, not guessing.
6. Compare nearly finished lines
When a row has only two blanks left, one 0 and one 1 to place, compare it with every finished row. If one way of filling it would copy a finished row exactly, the other way is the answer. This is the only technique that uses rule 3, and you rarely need it before the last few squares.
Here is an original 6×6 puzzle with 14 givens and a single solution (we checked it against all 4,140 valid grids). Rows are numbered 1 to 6 from the top and columns 1 to 6 from the left; r3c5 means row 3, column 5. A dot is an empty square. Try it first, then follow the solution.
Solution, step by step
Gap in row 2: 1 · 1, so r2c2 = 0.
Pair in row 6: r6c5 and r6c6 are 0 0, so r6c4 = 1.
Pair in column 2: r4c2 and r5c2 are 0 0, so r3c2 = 1 and r6c2 = 1. Column 2 now holds three 0s (rows 2, 4 and 5), so by counting r1c2 = 1.
Pair in column 3: r1c3 and r2c3 are 1 1, so r3c3 = 0. Column 3 now has three 1s (rows 1, 2 and 4), so r5c3 = 0 and r6c3 = 0. Row 6 is finished: 1 1 0 1 0 0.
Pair in row 1: r1c2 and r1c3 are 1 1, so r1c4 = 0.
Pair in row 5: r5c2 and r5c3 are 0 0, so r5c1 = 1 and r5c4 = 1.
Count column 1: it has three 1s (rows 2, 5 and 6), so r3c1 = 0.
Pair in column 4: r5c4 and r6c4 are 1 1, so r4c4 = 0. Column 4 now reads 0, ·, 1, 0, 1, 1: three 1s, so by counting r2c4 = 0.
Count rows 3 and 4: row 3 reads 0 1 0 1 · 0, three 0s, so r3c5 = 1. Row 4 reads 0 0 1 0 · 1, three 0s, so r4c5 = 1.
Pair in column 5: r3c5 and r4c5 are 1 1, so r2c5 = 0 and r5c5 = 0. Column 5 then holds three 0s (rows 2, 5 and 6), so r1c5 = 1.
Finish the last column: row 1 reads 0 1 1 0 1 ·, three 1s, so r1c6 = 0. Row 2 reads 1 0 1 0 0 ·, a pair of 0s just before the blank, so r2c6 = 1. Row 5 reads 1 0 0 1 0 ·, three 0s, so r5c6 = 1.
Check it against the rules: every row and column has three 0s and three 1s, no line has three alike in a row, and all six rows and all six columns are different. Notice that the whole puzzle fell to pairs, gaps and counting. The no-repeated-lines rule was never needed, which is typical of easier grids; on 10×10 puzzles it usually decides one or two squares near the end.
| c1 | c2 | c3 | c4 | c5 | c6 | |
|---|---|---|---|---|---|---|
| r1 | 0 | · | 1 | · | · | · |
| r2 | 1 | · | 1 | · | · | · |
| r3 | · | · | · | 1 | · | 0 |
| r4 | 0 | 0 | 1 | · | · | 1 |
| r5 | · | 0 | · | · | · | · |
| r6 | 1 | · | · | · | 0 | 0 |
Checking rows but not columns. Every pair and gap works down a column too. After each digit, look both across and down from it.
Losing count in long lines. In 10×10 grids, count both digits each time, not just the one you are placing. Five 1s and four 0s with one blank means the blank is 0.
Guessing to break a stall. A stall usually means a count-ahead (technique 5) is waiting. Pick the fullest line and test each blank in your head.
Forgetting rule 3 at the end. Two rows that differ only in their last two squares are the classic trap: one arrangement would duplicate the other.
Start with 6×6 grids in our free binary puzzle, which also offers 8×8 and 10×10 and can ring any square that breaks a rule. Every puzzle there is checked so that line-by-line logic can finish it, which means the techniques above are always enough. If you enjoy this kind of rule-based deduction, Star Battle uses the same scan-and-eliminate habit with shapes instead of digits (our Star Battle rules and solving guide has a worked 5×5), and nonograms add counting clues to the edges of the grid. For the general method behind all of them, read how to solve logic puzzles, or browse every grid puzzle on the logic games page.
Fill every square with 0 or 1. No row or column may contain three of the same digit next to each other, every row and column must have equal numbers of 0s and 1s, and no two rows and no two columns may be identical.
Yes. Takuzu, Binairo, binary puzzle and Tic-Tac-Logic are names for the same puzzle. Some versions use colours or X and O instead of 0 and 1, but the three rules are the same.
Scan for pairs (0 0 or 1 1, which force the opposite digit at both ends) and gaps (0 · 0 or 1 · 1, which force the opposite digit in the middle), then count each nearly full line. Repeat the scan after every new digit.
Not in a well-made one. If you are stuck, use the count-ahead check on the fullest line: a digit that would force three in a row elsewhere in that line is wrong, so the square takes the other digit.
Because every line must hold the same number of 0s and 1s, which is only possible when the line length is even. Common sizes are 6×6, 8×8, 10×10, 12×12 and 14×14.
Fourteen. Of the 64 strings of six 0s and 1s, only 14 have three of each digit and no three alike in a row, and only 4,140 complete 6×6 grids satisfy all three rules.
Binary puzzles look like a wall of digits, but they run on a short loop: close off pairs, fill gaps, count each line, and look one step ahead when you stall. Work through the 6×6 above, then try a fresh grid in the binary puzzle game and move up a size once 6×6 feels routine.