Advanced Sudoku Techniques: X-Wing, Swordfish, XY-Wing & Coloring
You've conquered intermediate strategies — singles, pairs, pointing patterns — and Hard puzzles are falling. But every so often a puzzle shrugs off everything you know. That's where advanced techniques live. You'll use them rarely (that's what makes a puzzle hard), but when an X-Wing finally clicks into place, it feels like a magic trick. Let's demystify four of them.
Fair warning: these require full, accurate pencil marks. There's no spotting an X-Wing in a half-marked grid. If your notation is sloppy, these patterns stay invisible.
X-Wing
The X-Wing is the most famous advanced pattern, and the best one to learn first. Here's the setup: pick a digit — say 5. Find two rows where 5 appears as a candidate in exactly the same two columns. Those four cells form a rectangle — the "X-Wing."
c1 c2 c3 c4 c5 c6 c7 c8 c9
r1 . . . . . . . . .
r2 . . [5] . . . [5] . .
r3 . . . . . . . . .
r4 . . . . . . . . .
r5 . . [5] . . . [5] . .
r6 . . . . . . . . .
Why does this matter? In row 2, the 5 must go in either c3 or c7. In row 5, same choice: c3 or c7. Either way, columns 3 and 7 each get their 5 from one of these four cells — so no other cell in column 3 or column 7 can be 5. Delete 5 from every other candidate in those two columns.
The eliminations are the whole point. One X-Wing often unlocks a hidden single or naked pair elsewhere, and suddenly the puzzle moves again. X-Wings can also be built on two columns sharing two rows — same rectangle, same logic, rotated 90 degrees.
Spotting tip: scan your marks digit by digit. When you notice a digit appearing exactly twice in a row, check whether another row has its two in the same columns. Your eyes will learn the rectangle shape quickly.
Swordfish
A Swordfish is the X-Wing's bigger sibling: three rows where the digit appears as a candidate in the same three columns (two or three positions per row, all within those three columns). Nine cells max, forming a 3×3-ish net.
Digit 9's candidates across three rows, all within columns 2, 5, 8:
c2 c5 c8
r1 [9] . [9]
r4 . [9] .
r7 [9] . [9]
The logic mirrors the X-Wing: each of the three rows must place its 9 inside those three columns, so the three columns get all their 9s from this net. Delete 9 from every other cell in columns 2, 5, and 8.
Swordfish are rarer than X-Wings and mostly appear in Evil-level puzzles. The pattern also generalizes to columns (three columns sharing three rows). If you ever spot the four-row/four-column version, congratulations — that's a Jellyfish, and you can brag about it.
XY-Wing
The XY-Wing is a different animal: instead of lining up one digit, it pivots on a cell with exactly two candidates. You need three cells:
- A pivot cell with candidates {X, Y}
- A pincer that sees the pivot with candidates {X, Z}
- A second pincer that sees the pivot with candidates {Y, Z}
"Sees" means sharing a row, column, or box. Here's a concrete example:
Pivot r5c5: {2,7} Pincer A r5c8: {2,9} Pincer B r8c5: {7,9}
Now reason it through: the pivot is either 2 or 7. If the pivot is 2, then Pincer A (which sees the pivot and shares the 2) cannot be 2, so Pincer A must be 9. If the pivot is 7, then Pincer B cannot be 7, so Pincer B must be 9. Either way, one of the two pincers is 9. Therefore, any cell that sees both pincers cannot be 9 — delete 9 from all of them.
XY-Wings are compact and common enough to be worth hunting on Hard puzzles. Look for a bivalue cell (two candidates) whose two digits each appear alongside a common third digit in neighboring cells.
Simple Coloring
Coloring tracks what happens if a digit goes one way or the other through a chain of either-or choices. Start with a digit that forms conjugate pairs — cells where the digit appears as a candidate exactly twice in a unit, so one of the two must be true. Link these pairs into a chain, coloring cells alternately (say, green-blue-green-blue...). Cells of the same color share the same fate: either all true or all false.
Digit 4 chain (conjugate pairs linked across units):
r1c3(green) —— r1c7(blue)
|
r6c7(green) —— r6c2(blue)
Two powerful conclusions fall out:
- Same color twice in one unit: if two green cells share a row, column, or box, green must be false (they can't both be 4) — so every green cell in the chain is false, and every blue cell is true. Fill them in!
- A cell seeing both colors: any uncolored cell that shares a unit with both a green and a blue cell can't be 4 either way — delete it.
Coloring feels abstract until your first chain collapses a stuck puzzle. Start with short chains (4–6 cells) on Hard puzzles; the long ones belong to Evil and Nightmare territory.
When to Use These (and When Not To)
Honesty time: on Easy and most Medium puzzles, you'll never need this page. Advanced techniques exist for the moments when singles, pairs, and pointing patterns are exhausted — typically Hard puzzles and up. If you find yourself hunting X-Wings on an Easy, your pencil marks probably have an error; go re-check them first. (Our difficulty guide maps each technique to the level where it actually appears.)
Learn them in this order: X-Wing first (most common, clearest logic), then Swordfish, then XY-Wing, then coloring. One pattern per practice session, same as before.
Test yourself on SudokuPuzzle.pro — Hard and Evil puzzles are where these patterns live, and the Daily Challenge serves a fresh Hard puzzle every single day. Infinite puzzles. Infinite glory.