The XYZ-Wing is a Y-Wing with a fatter hinge. Instead of a two-candidate pivot it uses a three-candidate one, and the price of that extra digit is a much smaller elimination zone — but the pattern turns up often enough to be worth learning.
Three cells are involved:
{x,y,z}.{x,z}.{y,z}.The digit z appears in all three cells. Whichever value the pivot takes, one of the three cells ends up holding z:
So z is guaranteed somewhere in those three cells. Any cell that sees all three loses z.
| Y-Wing | XYZ-Wing | |
|---|---|---|
| Pivot | Two candidates | Three candidates |
| Pincers | Two, both bivalue | Two, both bivalue |
| Cells that must see the pattern | The two pincers | The pivot and both pincers |
| Usual targets | Several cells | One or two cells, normally inside the pivot's box |
Because the pivot itself can hold z, the target has to see the pivot too. That is why an XYZ-Wing almost always fires inside the box that contains the pivot.
pivot r2c2 {1,2,3}
pincer r2c5 {1,3} shares row 2 with the pivot
pincer r3c3 {2,3} shares box 1 with the pivot
targets r2c1 {3,5,9} sees all three cells
r2c3 {3,6,9} sees all three cells
The shared digit is 3. Run the three cases: if r2c2 is 3 we are finished; if r2c2 is 1 then r2c5 must be 3; if r2c2 is 2 then r3c3 must be 3. A 3 sits in one of those cells every time.
Now check the targets. Both r2c1 and r2c3 lie in row 2, so they see the pivot and r2c5. Both lie in box 1, so they also see r3c3. They see all three cells, and 3 comes off each of them — leaving {5,9} and {6,9}.
XYZ-Wings show up on hard classic Sudoku, usually right after the simpler wings stop working. They are a good habit to build before you start on chains, because the same pivot-and-pincer reading is what makes longer chain patterns readable later on.