Advanced technique

XYZ-Wing in Sudoku

XYZ-Wing is a close cousin of XY-Wing. The pivot holds all three digits, which makes the pattern easier to find but narrows the elimination.

XYZ-Wing in Sudoku: worked example diagram
Worked example: the highlighted cells form the pattern; red cells lose a candidate.

What it is

The pivot holds {X,Y,Z}. One pincer it sees holds {X,Z}; another holds {Y,Z}. Whatever the pivot becomes, Z ends up in the pivot or in one of the pincers. So any cell that sees all three cells cannot be Z. Because the pivot is involved, the eliminations are usually in the pivot’s box.

When to use it

Hard puzzles, especially once you are already looking for XY-Wings.

How to apply it, step by step

  1. Find a cell with exactly three candidates: the pivot {X,Y,Z}.
  2. Find a two-candidate cell it sees whose candidates are a subset of the pivot’s, e.g. {X,Z}.
  3. Find another two-candidate cell it sees with the other combination, {Y,Z}.
  4. Look for cells that see the pivot and both pincers — usually in the box that holds the pivot and one pincer.
  5. Remove Z from those cells.

Worked example

Pivot r5c5 = {1,4,8}. Pincer r5c2 = {1,8} (same row). Pincer r4c6 = {4,8} (same box). Z is 8.

Cell r5c4 sees the pivot and r5c2 through row 5, and r4c6 through box 5. Any 8 there can be removed. r5c6 also qualifies.

Why it works: if the pivot is 8, the 8 is in r5c5. If the pivot is 1, r5c2 must be 8. If the pivot is 4, r4c6 must be 8. One of the three cells is always 8, so a cell that sees all three can never be 8.

Second example, in a column: pivot r2c7 = {2,5,9}. Pincer r8c7 = {2,9} (same column). Pincer r3c9 = {5,9} (same box). Z is 9.

Only cells in column 7 inside box 3 see all three: r1c7 and r3c7. Remove 9 from both if it is there. r7c7 sees the pivot and r8c7, but not r3c9, so it keeps its 9.

Common mistakes

  • Eliminating from cells that see only the two pincers. With XYZ-Wing, the cell must see the pivot too.
  • Using a pincer whose candidates are not both in the pivot.
  • Mistaking it for an XY-Wing. If the pivot has two candidates it is an XY-Wing, and cells that see only the two pincers can lose Z.
  • Missing the shared digit. Both pincers must contain Z, and Z is the only digit you remove.

Questions

Why does an XYZ-Wing eliminate less than an XY-Wing?

Because the pivot itself might be Z, the target must also see the pivot.

Where should I look for an XYZ-Wing?

Start from cells with three candidates and check their box and line for two-candidate partners.

How many cells can an XYZ-Wing remove a candidate from?

Usually at most two. The target must see all three cells, which in practice means it lies in the pivot’s box and in the line it shares with the other pincer.

What should I learn after XYZ-Wing?

W-Wing uses two matching pairs and a strong link instead of a pivot. Compare all three wings in our guide to XY-, XYZ- and W-Wings.

Your learning path

Ready to practise?
Try it on today’s free daily Sudoku, or start a practice puzzle at your level.