A WXYZ-Wing is four cells that hold exactly four candidates between them, with one cell, the pivot, seeing the other three. For every digit but one, all its copies in the four cells see each other, so that digit can fill at most one of them. Four cells need four digits, so the remaining digit, Z, must be in at least one of the cells. Any cell that sees every Z in the wing loses Z.
Cells are named by row and column, so R7C9 is row 7, column 9. The example below is from a real puzzle in our library, with every candidate listed.
- Z = 3 in the wing
- 3 removed
The four cells
- R7C9, the pivot: 2, 3, 7, 8.
- R1C9: 2, 3. It shares column 9 with the pivot.
- R7C6: 7, 8. It shares row 7 with the pivot.
- R7C7: 3, 7. It shares row 7 and box 9 with the pivot.
Between them the four cells hold 2, 3, 7 and 8: four digits for four cells. The wing cells do not have to see each other, and they do not all need Z. R7C6 has no 3.
Find Z: check each digit
For each digit, list the wing cells that have it and ask whether they all see each other.
- 2: R7C9 and R1C9, both in column 9. At most one is 2.
- 7: R7C9, R7C6 and R7C7, all in row 7. At most one is 7.
- 8: R7C9 and R7C6, both in row 7. At most one is 8.
- 3: R7C9, R1C9 and R7C7. R1C9 and R7C7 share no row, column or box, so both could be 3. This is Z.
Exactly one digit fails the check. That is what makes it a WXYZ-Wing. If two digits fail, there is no elimination.
Why one of the cells must be 3
2, 7 and 8 can fill at most one cell each, which covers three of the four cells. The fourth has to be 3. You can also follow it cell by cell: suppose none of the four is 3.
- R1C9 is left with 2, and R7C7 with 7.
- R7C6 sees the 7 in R7C7, so it is 8.
- R7C9 sees the 2 in R1C9 (column 9) and the 7 and 8 in row 7. With 3 ruled out, it has nothing left.
That is impossible, so at least one of R7C9, R1C9 and R7C7 is a 3.
Where the 3 can go
A target must see all three 3s: the pivot R7C9, R1C9 up column 9, and R7C7 in row 7 and box 9. Only cells in column 9 and box 9 do that: R8C9 and R9C9. Both have a 3, so R8C9 goes from {2, 3, 6, 8} to {2, 6, 8} and R9C9 from {2, 3, 6, 7, 8} to {2, 6, 7, 8}.
Two near misses show why every Z counts. R7C2 and R7C5 have a 3 and see the pivot and R7C7, but not R1C9. R2C9 and R3C9 have a 3 and see the pivot and R1C9, but not R7C7. None of them can lose the 3.
WXYZ-Wing vs XYZ-Wing
The XYZ-Wing is the three-cell case: three cells, three digits, and the same count. The WXYZ-Wing adds one cell and one digit. Two things change:
- Z need not be in every cell. In an XYZ-Wing all three cells hold Z. Here R7C6 has no 3 at all; it only supplies the 8.
- The check is per digit. With three cells it is easy to see the shape. With four, go digit by digit as above and find the one whose copies do not all see each other.
What stays the same is the target rule: if the pivot holds Z, a target has to see the pivot as well as the other Z cells, which keeps the eliminations close to the pivot. This position has no XY-Wing and no XYZ-Wing at all, so neither smaller wing can make this move.
In almost locked set terms, R1C9 {2, 3} is one set and R7C6, R7C7, R7C9 (three cells in row 7, digits 2, 3, 7, 8) is the other. Their 2s see each other, and 3 is the shared digit that gets removed: the same move as ALS-XZ.
How to spot a WXYZ-Wing
- Start with a cell that has several candidates. That is the pivot.
- List the cells it sees that have two or three candidates. Two-candidate cells are the easiest to use.
- Pick three so that the four cells hold exactly four digits.
- Check each digit. Exactly one may have copies that do not all see each other. That digit is Z.
- Remove Z from every cell that sees all the Z cells, including the pivot if it has Z.
For the order to learn these in, see the list of sudoku techniques in learning order or the overview of advanced sudoku strategies.
Drill the wing search in the Dojo
Sudoku Royale's Dojo has no WXYZ-Wing drill. The XY-Wing drill trains the same first step: a pivot and the two-candidate cells it sees. Open the XY-Wing drill on your iPhone.
Get Sudoku Royale: Free on iOSFrequently Asked Questions
What is a WXYZ-Wing in sudoku?
Four cells with exactly four candidates between them, where one cell (the pivot) sees the other three. For every digit except one, all its copies in the four cells see each other. The exception, Z, must be in at least one cell, so Z is removed from any cell that sees every Z in the wing.
How is a WXYZ-Wing different from an XYZ-Wing?
An XYZ-Wing uses three cells and three digits, and every cell holds Z. A WXYZ-Wing uses four cells and four digits, and one or more cells may have no Z. The reasoning is the same count: each non-Z digit fills at most one cell, so Z has to fill the last.
Does every wing cell need the digit Z?
No. In the example, R7C6 holds only 7 and 8. Only the cells that do hold Z matter for the elimination: a target has to see all of them.
Does the pivot need all four candidates?
No. The pivot in the example has all four, but the rule only asks that the four cells hold four digits and that exactly one digit has copies that do not all see each other.