9io.ai / Blog

Advanced binary puzzle techniques, and what to do when stuck

Advanced binary puzzle techniques for Evenfold and classic grids: look-ahead counting, chains of = and ×, counts with signs, edge patterns and getting unstuck.

Key takeaways

  • If a line needs one more of a stone, rule out spots that leave three of the other together.
  • Two empty cells between opposite stones always hold one of each, just like a × pair.
  • An even number of × signs along a chain means the cells at its two ends match.
  • On 6×6 boards, alike stones at both ends of a line force the other into cells 2 and 5.
  • Evenfold’s hint checks your board for a wrong stone before it gives you a next step.

When pairs, gaps and counting run dry, the first of the advanced binary puzzle techniques is look-ahead. Take a line that needs only one or two more of a stone, try each place the last one could go, and rule out any that would leave three of the other stone together. Then use the signs. A × pair inside a line always holds one of each, and a chain of signs between two cells makes them match when it has an even number of ×. On 6×6 boards a few edge patterns help too, and if nothing else works, test one cell with a short what-if instead of guessing.

We make Evenfold at 9io, a daily binary puzzle for iPhone and iPad that’s free on the App Store. It plays with ink and pearl stones and = and × signs, and its hints explain each step they find in a sentence or two. Every position below is an original example we made for this guide and checked with a short solver script of our own. Each has exactly one solution, and each step follows from the reason given.

This guide follows on from how to solve binary puzzles, which covers the rules and the basic moves, and it uses the same grids. I is an ink stone, P is a pearl stone and a dot is an empty cell, with = or × between the cells a sign joins. Evenfold’s how to play page has the app’s own rules and FAQ.

Look-ahead: placing the last stone of a line

A line that needs just one more of a stone has only a few places to put it, so test each one. Put the last ink in a spot, fill every other empty cell of the line with pearl, and see whether three pearls end up together. Any spot where they do is ruled out, and the count settles the rest.

Here’s a 6×6 position where pairs, gaps and half-full lines have all run out. It has no signs.

     1   2   3   4   5   6
 1   P   I   I   P   I   P
 2   P   P   I   .   .   I
 3   I   .   P   .   .   I
 4   I   .   P   I   .   P
 5   P   P   I   .   .   I
 6   I   .   P   .   .   P

Row 3 reads I . P . . I. It has two ink and one pearl, so it needs one more ink and two more pearls in columns 2, 4 and 5. Ink in column 2 would leave pearl in columns 3, 4 and 5, three together. Ink in column 5 would leave pearl in columns 2, 3 and 4. Only column 4 works, so it takes ink, and columns 2 and 5 take pearl. Evenfold’s hints call this step “Just one more”.

The test works the same way for a line that needs one more pearl. Run it on every line that’s one stone short of its count.

Placing the last two or three, and squeezed pairs

With two or three of a stone still to place, the spots multiply, so cut the line into pieces first. Two empty cells squeezed between opposite stones, as in P . . I, always hold one of each. Two pearls would make three with the pearl on one side, and two inks three with the ink on the other. Count a squeezed pair as one of each, then look ahead with what’s left.

This 8×8 position, the size of Evenfold’s Friday and Saturday dailies, has stalled too.

     1   2   3   4   5   6   7   8
 1   I   .   .   P   .   .   .   P
 2   P   I   P   P   I   P   I   I
 3   P   .   .   I   P   I   P   I
 4   I   .   .   P   .   .   .   P
 5   I   P   .   I   .   P   .   .
 6   P   I   .   P   .   I   .   .
 7   P   .   .   I   .   .   .   P
 8   I   P   P   I   I   P   .   .

Row 7 reads P . . I . . . P, so it needs three more ink and two more pearls. Columns 2 and 3 are a squeezed pair, which puts one ink and one pearl between them. That leaves two ink and one pearl for columns 5, 6 and 7. Columns 5 and 6 can’t both be ink, or columns 4 to 6 would be three ink in a row, so one of them is pearl and the second ink goes in column 7. Our solver finds three ways to finish row 7, and all three put ink there. Evenfold’s hint for this kind of step is titled “Every way agrees”.

Listing the ways is quicker than it sounds. An 8-cell line has only 34 valid shapes in all,1 and the stones already in place rule out most of them.

Combining counts with = and ×

Signs inside a line change what the line can hold. A × pair always holds one of each, so it counts as one ink and one pearl, whichever way round. An = pair holds two of a kind, so it can never take a line’s last single ink or last single pearl.

Row 5 of this position has both kinds of sign.

     1   2   3   4   5   6
 1   .   .   .   .   P   I
 2   I   P   .   .   .   P
 3   P   I   I   P   I   P
 4   P   .   .   .   P   I
 5   I   .   . = .   . × .
 6   .   P   I   P   .   .

Row 5 has ink in column 1 and nothing else yet, so it needs two more ink and three pearls. The × joining columns 5 and 6 supplies one of those ink, which leaves one for columns 2, 3 and 4. The = joining columns 3 and 4 can’t take a single ink, so both its cells are pearl, and the ink goes in column 2. Evenfold’s hints call this “Count the signs”, and in Evenfold’s grading it’s the step that makes a puzzle medium.

Chains of = and ×: count the crosses

Signs also link cells that aren’t neighbours. Follow a path of signs from one cell to another through empty cells and count the × signs on the way. An even number means the two cells hold the same stone, and an odd number means they hold different ones, before you know which stone either is. Every × swaps the stone and every = keeps it, so two swaps cancel out.

Here a chain leaves row 2 and comes back.

     1   2   3   4   5   6
 1   P   I   . × .   I   P
 2   I   .   .   .   I   P
             ×   =
 3   I   P   . × .   P   I
                 ×
 4   P   I   .   .   P   I
 5   I   .   .   P   I   P
 6   P   P   I   I   P   I

Start at row 2, column 3. The × below it goes down to row 3, the × in row 3 goes across to column 4, and the = above that comes back up to row 2, column 4. That’s two × signs, so columns 3 and 4 of row 2 hold the same stone. Row 2 reads I . . . I P, so it needs one more ink and two more pearls in columns 2, 3 and 4. A matching pair can’t share a single ink, so columns 3 and 4 are both pearl and column 2 is ink.

With those stones down, the chain fills itself in. The pearl at row 2, column 3 puts ink below it, that ink puts pearl beside it in column 4, the = above agrees, and the × under that pearl puts ink in row 4. In this position none of the earlier techniques finds anything, not even listing the ways to finish each line, so the chain is the way in.

Edge and corner patterns on 6×6 boards

A 6-cell line is short enough that two stones near its ends can force a third with no pair or gap in sight. Our script tried every placement of two stones three or more cells apart on 6-, 8-, 10- and 12-cell lines. On a 6-cell line only the three patterns below force anything, along with the same three with the stones swapped. On 8-, 10- and 12-cell lines, no such placement forces anything at all.

Pattern on a 6-cell line What it forces Why
I . . . I . Pearl in cell 6 Ink there would be the line’s third, leaving cells 2 to 4 all pearl
. I . . . I Pearl in cell 1 It’s the first pattern back to front
I . . . . I Pearl in cells 2 and 5 The last ink has to sit in cell 3 or 4, or three middle cells would all be pearl

A corner cell starts both a row and a column, so one stone there can set off a pattern in each direction.

     1   2   3   4   5   6
 1   I   .   .   P   I   .
         =
 2   .   .   .   I   P   P
 3   P   P   I   I   P   I
 4   .   I   P   P   I   .
 5   I   .   .   .   .   .
 6   .   .   .   . × . = .

The ink in the corner, at row 1, column 1, has a partner four cells along in each direction. Row 1 has ink in columns 1 and 5, so column 6 takes pearl, and column 1 has ink in rows 1 and 5, so row 6 takes pearl. Both are the look-ahead test from the first section in a fixed shape, and Evenfold’s hints present them that way, as “Just one more”.

What if: testing one cell in hard grids

The hardest grids have positions where no line, sign or chain gives anything. Then take one cell and ask what would happen if it held a particular stone. Follow only forced moves from there, the pairs, gaps, counts and signs. If a rule breaks, the cell must hold the other stone. If nothing breaks within ten stones or so, undo all of it and try another cell. It’s a proof by contradiction, and there’s no guess in it.

Binary puzzles are hard in a precise sense. Deciding whether one has a solution at all is NP-complete, a result of De Biasi’s that a 2017 paper on solving binary puzzles cites.2 Evenfold’s generator checks every grid it makes with two solvers. It keeps a puzzle only when its human-style solver finishes it without guessing and an exact solver finds exactly one solution, and only its expert and master puzzles ever need a what-if. Its hints keep each what-if to a chain of ten stones or fewer.

In this 6×6 position, none of the moves above finds anything.

     1   2   3   4   5   6
 1   I   P   .   .   P   I
 2   P   .   .   P   I   I
 3   P   I   .   .   I   P
             =
 4   I   P   .   .   P   I
 5   P   I   .   .   I   P
 6   I   .   .   I   P   P

Pick a cell where either choice forces a lot. Row 4, column 4 is one, because row 4 has only two empty cells, so each choice decides the other, and the cell beside it carries an = sign. Suppose it were pearl. Row 4 would then have pearl in columns 4 and 5, so column 3 takes ink. The = passes that ink up to row 3, column 3, where it makes an ink pair with column 2, so row 3, column 4 takes pearl. Now column 4 has pearl in rows 2, 3 and 4, three in a row. So row 4, column 4 is ink.

Advanced binary puzzle techniques and where Evenfold uses them

Evenfold grades each puzzle by the hardest technique its human-style solver needs, and the grade decides where the puzzle goes. This table pairs each technique with the title its hints use and the first level that needs it, from the game’s code.

Technique Evenfold’s hint title First needed at Examples in Evenfold
Pairs, gaps, half-full lines, a sign beside a stone Two side by side, A gap between two, A full row, A full column, Follow the sign Easy Monday and Tuesday dailies, the Gentle pack
Counting with signs Count the signs Medium Wednesday and Friday dailies, the Steady and Medium packs
Look-ahead for the last stone Just one more Hard Most Thursday dailies, Saturday dailies, the Hard pack
Listing the ways to finish a line Every way agrees Expert Sunday dailies in alternate weeks, the Expert pack
Testing one cell What if… Expert for one or two, master for three or more Sunday dailies in alternate weeks, the Expert and Master packs

Chains and edge patterns have no titles of their own. An edge pattern comes up as “Just one more”, and a chain gets resolved one “Follow the sign” at a time once a stone lands anywhere on it.

How Evenfold’s hints point to a mistake first

Before it looks for a next step, Evenfold’s hint compares your board with the puzzle’s one solution. If any stone is wrong, the hint is about that stone, under the title “Something’s off”. It prefers a stone that breaks a rule you can see, such as three in a row, too many of one stone in a line or a broken sign, and names that rule. A wrong stone that breaks nothing yet gets a message that it leads to a dead end further on. Tap Hint again and the stone comes off.

Take the look-ahead position from the first section and put ink at row 3, column 2 by mistake. Nothing is broken yet, since row 3 would simply have its three ink. But its last two empty cells would then both be pearl, three in a row with column 3. On that board an Evenfold hint would say “Row 3, column 2 doesn’t fit: an ink stone there leads to a dead end further on. Tap Hint again to take it back.”

With no wrong stone on the board, the hint finds the easiest next step, choosing the one nearest the stone you placed last. It highlights the cells involved and explains the step in a sentence or two, and a second tap applies it.

What to do when you’re stuck on a binary puzzle

Work through this list from the top, and go back to the start whenever a stone goes down.

  1. Check for a mistake. Look for three in a row, an over-full line or a broken sign, and in Evenfold ask for a hint, which shows a wrong stone before anything else.
  2. Rescan every row, then every column, for pairs, gaps, half-full lines and signs beside a stone.
  3. For each line that’s one stone short of its count, test every spot for that last stone.
  4. Count squeezed pairs and × pairs as one of each and = pairs as two of a kind, then look ahead again.
  5. Trace each chain of signs through empty cells and count its × signs.
  6. On a 6×6 board, check the ends of every line for the three edge patterns.
  7. Pick the tightest cell and run a what-if of ten stones at most. If nothing breaks, undo all of it before you try the next cell.

One decision rule covers that last step. Place a stone after a what-if only when the opposite stone has broken a rule, never because a choice seemed to work.

Our other two daily logic puzzles have guides of their own, how to solve crown puzzles for Crownfold and how to solve number path puzzles for Pathfold.


  1. OEIS, “A177790”, https://oeis.org/A177790. Its term for n = 4 is 34, and a comment on the entry notes that the terms count the possible rows or columns of a 2n by 2n binary puzzle. ↩

  2. Putranto H. Utomo and Rusydi H. Makarim, “Solving a Binary Puzzle”, Mathematics in Computer Science, 2017, https://doi.org/10.1007/s11786-017-0322-4 ↩

Frequently asked questions

What should I do when I’m stuck on a binary puzzle?

Check for a mistake first, then rescan every row and column for pairs, gaps and half-full lines. If that finds nothing, take each line that needs one more of a stone and rule out every spot that would leave three of the other together. Then count × pairs and squeezed pairs as one of each, follow chains of signs, and only then test one cell with a short what-if.

What are the advanced techniques for binary puzzles?

Look-ahead counting for the last one or two stones of a line, squeezed pairs between opposite stones, counting with = and × signs, chains of signs, edge patterns on 6×6 boards and, for the hardest grids, a what-if that follows forced moves from one cell until a rule breaks.

How do chains of = and × work in a binary puzzle?

Follow the signs from one cell to another through empty cells and count the × signs on the way. An even number means the two cells hold the same stone and an odd number that they hold different ones, before you know which stone either is.

Do hard binary puzzles need trial and error?

A well-made one never needs a guess, but the hardest can need a what-if. Assume a stone in one cell, follow only forced moves, and if a rule breaks, the cell takes the other stone. In Evenfold only expert and master puzzles need it.

Why does Evenfold’s hint show a mistake instead of the next step?

Every step built on a wrong stone would lead you further off. So the hint compares your board with the puzzle’s one solution first and points to a wrong stone if there is one, naming the rule it breaks or saying it leads to a dead end. A second tap takes it back.

Work with us

Building something like this?

9io is a small team of senior engineers with a fractional CTO. We work by the hour, and plans start at $5,000. Send us a note about your product. The reply comes from the person who'd do the work.