Advanced technique

XY-Wing in Sudoku

XY-Wing (also called Y-Wing) is often the first ‘wing’ solvers learn. It uses only cells with two candidates, so it is easy to verify.

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

What it is

Take a pivot cell with {X,Y}. It sees one pincer with {X,Z} and another with {Y,Z}. If the pivot is X, the first pincer becomes Z; if the pivot is Y, the second pincer becomes Z. Either way, one pincer is Z, so any cell that sees both pincers cannot be Z.

When to use it

Hard puzzles where many cells have two candidates and no subset or fish is available.

How to apply it, step by step

  1. Find a cell with exactly two candidates — this is the possible pivot, {X,Y}.
  2. Among the cells it sees, find a two-candidate cell sharing X: {X,Z}.
  3. Find another two-candidate cell it sees that shares Y and the same Z: {Y,Z}.
  4. Find cells that see both pincers.
  5. Remove Z from those cells.

Worked example

Pivot r2c2 = {3,7}. Pincer r2c8 = {3,5} (same row). Pincer r6c2 = {7,5} (same column). Z is 5.

Cell r6c8 sees both pincers (row 6 and column 8). If it lists 5, the 5 can be removed.

Common mistakes

  • Using a pincer with three candidates. All three cells must have exactly two.
  • Forgetting that the pivot must see both pincers, but the pincers do not need to see each other.
  • Removing Z from cells that see only one pincer.

Questions

Is a Y-Wing the same as an XY-Wing?

Yes. Both names refer to the same three-cell pattern.

What is the difference between XY-Wing and XYZ-Wing?

In an XYZ-Wing, the pivot has three candidates, and only cells that see all three cells lose Z.

Your learning path

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