X-Wing, Swordfish & Advanced Sudoku Techniques
Sudoku guide · 4 min read
You only need advanced Sudoku techniques when the basics run out, and most of the time, they don't. Scanning, singles, and pairs finish the great majority of puzzles. But every so often you'll hit an expert or Einstein grid that stalls cold: candidates everywhere, no singles, no pairs, and the puzzle still half empty. That's what these techniques are for. They're not about speed. They're about finding the one elimination that breaks the logjam.
Fair warning: these take practice to spot. The logic is sound and learnable, but training your eye to see an X-Wing in a sea of candidates is the real work. Make sure your pencil marks are complete and accurate before you go hunting, because every technique here depends on them.
Pointing pairs
Start here, because it's the most common advanced move and the easiest to grasp. A pointing pair happens inside a single box.
Suppose, within one 3x3 box, the candidate 6 appears only in two cells, and both of those cells sit in the same row. You don't know which holds the 6, but you know the box's 6 lives somewhere on that row. So 6 cannot appear anywhere else on that row outside the box. Erase it from those cells.
It works for columns too, and it works with three cells (a "pointing triple"). The eliminations are small, usually one or two candidates, but they regularly unstick a frozen grid.
Box/line reduction
This is the same idea running the other direction. Instead of a box constraining a line, a line constrains a box.
If a candidate within a row appears only inside one box, then that candidate must be placed in that box on that row. So you can remove it from the box's other two rows. Pointing pairs look from the box outward; box/line reduction looks from the line inward. Learn them as a pair, because they show up together and cover each other's blind spots.
X-Wing
Now the famous one. An X-Wing is a rectangle, and it works on a single candidate digit.
Find a digit, say 4, that appears as a candidate in exactly two cells of one row. Then find another row where 4 also appears in exactly two cells, and those cells line up in the same two columns. You now have four cells forming a rectangle.
Here's the logic. In each of those two rows, the 4 must go in one of the two corners. Whichever diagonal it takes, the two 4s end up in different columns, since they can't share a column without breaking the row rule. So between the two rows, both of those columns get their 4 from the rectangle. That means 4 can be eliminated from every other cell in both columns.
When an X-Wing lands, it usually clears the middle of the puzzle wide open. It feels great. You can run the whole pattern on columns instead of rows too; the shape is symmetric.
Swordfish
A Swordfish is an X-Wing with three rows (or three columns) instead of two. Same principle, bigger net.
Take a candidate that appears in two or three cells across three different rows, all confined to the same three columns. The logic extends: those three rows must place the digit within those three columns, so the digit can be eliminated from the rest of those three columns.
Swordfish are genuinely rare, and spotting one by eye is hard. Don't go looking for a Swordfish until you've exhausted everything cheaper. When a puzzle truly needs one, you'll usually have narrowed the candidate down enough that the pattern becomes visible.
XY-Wing
The XY-Wing is a small three-cell chain, and it's a different flavor from the rectangle patterns. You need three cells, each with exactly two candidates:
- a "pivot" cell with candidates {X, Y},
- one cell it can see with {X, Z},
- another cell it can see with {Y, Z}.
Whatever the pivot turns out to be, one of the two wing cells is forced to become Z. So any cell that can see both wings cannot be Z. Eliminate it. It's a clever bit of "either way, this happens" reasoning, and once it clicks it's very satisfying to use.
When to reach for each one
Order matters. Burning time on a Swordfish hunt when a pointing pair is sitting right there is the classic mistake. Work up the ladder:
- Pointing pairs and box/line reduction (most common, cheapest).
- X-Wing (the workhorse advanced pattern).
- XY-Wing.
- Swordfish (last resort).
And always, after any elimination, drop back down. One advanced elimination frequently exposes a plain naked single or hidden single, and you can coast for several moves before needing another big technique. The full strategy guide lays out this drop-back loop in detail, and the singles, pairs, and triples article covers the basics these build on.
A realistic expectation
You can be an excellent Sudoku player and rarely touch a Swordfish. These techniques exist for the hardest grids and the satisfaction of solving them cleanly, not as something you'll use every day. Treat them as tools you reach for when the puzzle demands, not a checklist to run on every board.
Want to test them? Our Einstein puzzles are built to need the full toolkit. Fair warning: they don't go down easy.