Advanced Sudoku Techniques — X-Wing, Swordfish and XY-Wing
Cubedoku Guides · Published 2026-06-10
Expert-level Sudoku is not about thinking harder — it is about seeing structures that span the whole grid instead of one row or box. The three patterns here are the classic entry points to that level. Each one is just disciplined pair-logic stretched across multiple units, and each produces eliminations that no local technique can find.
X-Wing
Pick one digit. Suppose that in row 2, the digit can only go in columns 3 and 7 — and in row 6, it can also only go in columns 3 and 7. Four cells, forming a rectangle.
Whatever happens, each of those two rows takes one of the two columns: either (r2c3 and r6c7) or (r2c7 and r6c3). In both scenarios, columns 3 and 7 each receive the digit somewhere inside the rectangle. Conclusion: the digit can be erased from every other cell of columns 3 and 7.
That is an X-Wing — named for the X drawn by the two diagonal possibilities. The search recipe: for each digit, list rows where it has exactly two candidate cells; any two such rows sharing the same column pair form the pattern (and symmetrically with columns eliminating from rows).
Swordfish
The same logic, one size up. Take three rows in which a digit's candidates are confined to the same three columns (each row may use two or all three of them). The three rows must consume the three columns between them — one each — so the digit disappears from every other cell of those three columns.
Swordfish positions are rarer and harder to spot than X-Wings, but the verification habit is identical: rows-confined-to-columns, then erase down the columns. If you can check an X-Wing, you can check a Swordfish — it is purely a bookkeeping upgrade.
XY-Wing
The most elegant of the three, built from three cells that each hold exactly two candidates. You need a pivot cell with candidates XY, and two wingcells it can see — one with XZ, one with YZ. (“Sees” means shares a row, column or box.)
Follow the pivot's two possibilities. If the pivot is X, the XZ wing loses its X and becomes Z. If the pivot is Y, the YZ wing becomes Z. Either way, one of the wings is Z. Therefore any cell that sees both wings can never be Z, and Z may be erased from it. A single elimination from pure case analysis — and frequently the one that breaks an Expert puzzle open.
Hunting advanced patterns efficiently
- They are last resorts. Run the cheaper layers first — singles, then pairs, pointing and box-line. Advanced patterns shine precisely when those are exhausted.
- Candidates must be complete. All three patterns reason about where a digit cannot be; a missing pencil mark silently breaks them. On Expert, maintain full notes before hunting.
- Search bivalue cells for wings. Cells with exactly two candidates are the raw material of XY-Wings; most grids have only a handful, so checking pivot/wing combinations is quicker than it sounds.
- One elimination is enough. After any advanced elimination, fall back to the cheap techniques — a single erased candidate typically cascades into a chain of singles.
Where to practise
Cubedoku's Expert difficulty is calibrated to require this level of reasoning, and every puzzle remains solvable by pure logic — no guessing, ever. For the ultimate test, take these techniques into the 9³ Cube, where each face is a full 9×9 Sudoku and eliminations can propagate across shared edges onto faces you cannot even see. Pattern logic in three dimensions is a different sport — same rules, bigger arena.
Keep reading
- Sudoku Tips for Beginners — 7 Habits That Make You Faster
- Intermediate Sudoku Techniques — Pairs, Triples and Pointing
- How to Play Classic Sudoku — Rules from 6×6 to 25×25
Or put it into practice — play Cubedoku free in your browser, no download or account needed.
