The XYZ-Wing technique involves three cells. One cell (called the pivot) has three candidate digits. The other two cells each have two candidate digits. The candidate digits in these three cells must fulfill certain relationships. We will demonstrate such relationships below in different patterns.
Consider the following partial Sudoku puzzle:
XZ
XYZ
YZ
In Figure 1a, the pink cell (the pivot) and the two yellow cells form an XYZ-Wing (Block-Row) pattern. The pink cell has three candidate digits X, Y, and Z. One of the yellow cells shares the same 3x3 block with the pink cell and has two candidate digits X and Z. The other yellow cell shares the same row with the pink cell and has two candidate digits Y and Z. Notice that all these three cells have a common candidate digit Z. The pink cell has two other candidate digits X and Y, and each of those is also a candidate digit for one of the two yellow cells.
Let's see what happens to the orange cells under this XYZ-Wing (Block-Row) pattern.
XZ
Z
XYZ
Z
YZ
The orange cells in Figure 1b are those cells falling in the common related area of the pink cell and both yellow cells. That means the orange cells are in the same row, in the same column, or in the same 3x3 block as the pink cell and each of two yellow cells.
There are three possibilities for the pink cell:
So, in any of these three cases, the orange cells cannot be Z.
Example for the XYZ-Wing (Block-Row) technique in a real Sudoku puzzle
Consider the following partial Sudoku puzzle:
XYZ
XZ
YZ
In Figure 2a, the pink cell (the pivot) and the two yellow cells form an XYZ-Wing (Block-Column) pattern. The pink cell has three candidate digits X, Y, and Z. One of the yellow cells shares the same 3x3 block with the pink cell and has two candidate digits X and Z. The other yellow cell shares the same row with the pink cell and has two candidate digits Y and Z. Notice that all these three cells have a common candidate digit Z. The pink cell has two other candidate digits X and Y, and each of those is also a candidate digit for one of the two yellow cells.
Let's see what happens to the orange cells under this XYZ-Wing (Block-Column) pattern.
Z
XYZ
Z
XZ
YZ
The orange cells in Figure 2b are those cells falling in the common related area of the pink cell and both yellow cells. That means the orange cells are in the same row, in the same column, or in the same 3x3 block as the pink cell and each of two yellow cells.
There are three possibilities for the pink cell:
So, in any of these three cases, the orange cells cannot be Z.
Example for the XYZ-Wing (Block-Column) technique in a real Sudoku puzzle