The Y-Wing Sudoku technique, also called the XY-Wing, is built from three cells that hold only two candidate digits each. It is the first pattern most solvers meet that spans three different digits, and it is worth learning early because the wings above it are all variations of the same idea.
You need three bivalue cells and exactly three digits between them:
{x,y}.{x,z} and sees the pivot.{y,z} and also sees the pivot.The two pincers do not have to see each other. What matters is that each of them shares the pivot's row, column or box.
Now follow the pivot. If the pivot is x, the first pincer cannot be x, so it must be z. If the pivot is y, the second pincer cannot be y, so it must be z. The pivot has no other options, so one of the two pincers is always z.
That is the whole payoff: z is guaranteed to sit in one of the pincers, so any cell that sees both pincers can never be z.
| Y-Wing | XYZ-Wing | |
|---|---|---|
| Pivot candidates | two: {x,y} | three: {x,y,z} |
| Pincer candidates | {x,z} and {y,z} | {x,z} and {y,z} |
Where z can hide | one of the two pincers | pivot or either pincer |
You eliminate z from | cells seeing both pincers | cells seeing all three |
x and y.x but not y. Call its second digit z.{y,z}.z.z from every one of them, then re-check for new singles.Three cells, with the rest of the grid left out:
c2 c7
r2 {5,8} ... {3,5} <- pivot at c2, pincer at c7 (same row)
. : :
r6 {3,8} ... {1,3,9} <- pincer at c2 (same column), target at c7
The pivot r2c2 is {5,8}. The pincer r2c7 is {3,5} and shares row 2 with it. The pincer r6c2 is {3,8} and shares column 2 with it. The three digits involved are 5, 8 and 3, so z is 3.
Run the two cases. If r2c2 is 5, then r2c7 loses its 5 and becomes 3. If r2c2 is 8, then r6c2 loses its 8 and becomes 3. One of the pincers is a 3 either way.
The cell r6c7 sees r6c2 along row 6 and r2c7 down column 7. So r6c7 cannot be 3, and it drops to {1,9}.
z and no deduction. Count the digits before anything else.The Y-Wing belongs to the tough tier, and it is one of the most frequently needed patterns at that level. Expect it on hard classic Sudoku, where a stalled grid full of two-candidate cells is almost always hiding one.