XY-Wing

An XY-Wing (often called a Y-Wing) uses three cells with exactly two candidates each. The pivot holds {X, Y}. One pincer, which sees the pivot, holds {X, Z}; the other, which also sees the pivot, holds {Y, Z}. Whatever the pivot turns out to be, one of the pincers must be Z — so any cell that sees both pincers cannot be Z.

Level: first needed at Master · Technique 10 of 12 in our grading order

Real position from our master pool (puzzle #1). Press Next step to see how xy-wing applies.

Why it works

Follow the two cases. If the pivot is X, the pincer {X, Z} cannot be X (they see each other), so it is Z. If the pivot is Y, the pincer {Y, Z} must be Z. The pivot is either X or Y, so in every case at least one pincer is Z. A cell that sees both pincers would clash with whichever pincer is Z; therefore it cannot be Z.

The pincers do not need to see each other, and usually they do not. The pivot just needs to see both of them — through a row, a column or a box.

How to spot it

Start with bi-value cells (cells with two candidates). Treat each one as a possible pivot {X, Y}. Look among its peers for a bi-value cell that shares exactly one digit with it — say {X, Z}. Now look among the pivot’s other peers for a cell that is exactly {Y, Z}. If you find it, you have the wing; the eliminations are Z in every cell that sees both pincers.

When the pivot and one pincer share a box and the other pincer is in the pivot’s row or column, the cells seeing both pincers are few and easy to list: usually a couple of cells in the box along the other pincer’s line, plus perhaps the cell at the corner of the shape. The example board, from our Master pool, shows a real XY-Wing found when every tier-4 move had run out. Step through it to see pivot, pincers and the cleared Z.

Thinking in chains

An XY-Wing is the shortest example of an XY-chain: a chain of bi-value cells where consecutive cells share a digit. Logically it says “if the first pincer is not Z, the pivot is X... no, Y, and the second pincer is Z”. Longer chains with the same structure also work and are how many advanced solvers think, but our grader stops at the three-cell wing.

It is also closely related to the XYZ-Wing, where the pivot holds all three digits.

Common mistakes

All three cells must have exactly two candidates. If the pivot has three, you are looking at a possible XYZ-Wing, with a smaller elimination zone. The pincers must share the same third digit Z and each must share a different digit with the pivot. And remember that the target cell must see both pincers; seeing the pivot is irrelevant.

Where it sits in our grading

XY-Wings are tier 5 with the Swordfish, which makes them a Master-level technique. In our Master pool they are the more common of the two. A quick bi-value scan for wings is usually worth doing before any fish hunting — it is faster.

Practice

On a Master board with complete notes, mark every bi-value cell (some players circle them on paper). Then test each as a pivot. You will find that most boards have only ten to twenty bi-value cells, so the search is shorter than it looks. When a hint names an XY-Wing, it lists the pivot and both pincers — check that you can reproduce the two-case argument yourself.

Quick checklist

  1. Mark every bi-value cell on the board.
  2. Take one as the pivot {X, Y} and find a bi-value peer {X, Z}.
  3. Look among the pivot’s other peers for exactly {Y, Z}.
  4. Remove Z from every cell that sees both pincers.

About the example board

The board comes from puzzle #1 of our Master pool. It started with 31 givens; at this point 44 cells are filled and the remaining 37 empty cells hold 99 pencil-mark candidates. Our grader tried every easier technique first and none of them applied — xy-wing was the simplest way forward. The move removes 1 candidate: XY-Wing: pivot R1C9 {2,6} with pincers R1C1 {5,6} and R9C9 {2,5} — one pincer must be 5, so remove 5 from R9C1.

After applying it, the next step the grader finds is a hidden single: In column 1, 5 can only go in R1C1. That is typical: one harder move usually unlocks a run of easier ones.

Related techniques

← Swordfish · XYZ-Wing →

Written by Nina Patel. Example board generated by the Sudokua grader from our own puzzle pool. See all techniques.