SudokuHint

XYZ-Wing: An Advanced Wing Technique in Sudoku

An XYZ-Wing is an advanced Sudoku pattern using three cells: a pivot with three candidates (XYZ) connects to two pincers, allowing you to eliminate one candidate from any cell that sees all three. This technique is a powerful extension of the simpler [Y-Wing](/techniques/y-wing) logic, applying to puzzles where basic methods have stalled. When you've exhausted simpler wings and pairs, the XYZ-Wing opens up new logical pathways to crack very hard puzzles by focusing on the connections between tri-value cells.

By SudokuHint TeamLast updated

Definition: The Three-Cell XYZ-Wing Structure

An XYZ-Wing consists of exactly three cells arranged in a specific relationship. The central cell is called the pivot, and it must contain exactly three possible candidates, labeled X, Y, and Z. The two other cells are called pincers. One pincer must share two candidates with the pivot, typically X and Z. The other pincer must share two different candidates with the pivot, typically Y and Z. All three cells must be connected, meaning they must see each other either by being in the same row, column, or 3x3 box.

The classic formation is a pivot with candidates (X,Y,Z), a first pincer with (X,Z), and a second pincer with (Y,Z). The three cells are not required to be in the same row, column, or box; they can be spread out across the grid. The only requirement is that the two pincer cells each see the pivot cell. This connection is what creates the logical tension and enables the elimination.

How the XYZ-Wing Extends Y-Wing Logic

The XYZ-Wing is a direct and more powerful evolution of the Y-Wing. A standard Y-Wing uses a pivot cell with only two candidates (X and Y) and two pincer cells (X,Z and Y,Z). The logic forces one of the pincers to be Z, eliminating Z from common peers.

The XYZ-Wing adds a third candidate to the pivot. With the pivot now holding (X,Y,Z), the logic becomes: whichever candidate ends up in the pivot directly determines the possibilities in the pincers. If the pivot is X, the (X,Z) pincer becomes Z. If the pivot is Y, the (Y,Z) pincer becomes Z. If the pivot is Z, then both pincers cannot be Z. In all scenarios, any cell that can see all three cells of the XYZ-Wing cannot contain the candidate Z. This extends the Y-Wing's elimination power to more complex board states.

Key insight: Think of the XYZ-Wing as a Y-Wing where the pivot has an 'extra' candidate. This extra candidate doesn't break the logic; it just gives the pivot more options while still forcing the same critical conclusion about the shared Z candidate.

How to Spot an XYZ-Wing in a Puzzle

Spotting an XYZ-Wing starts with scanning the grid for pivot candidates. Look for cells that contain exactly three pencil marks. When you find one, note its three candidates (e.g., 4,7,9). Next, look for two other cells that each see this pivot and share two of its candidates. One must share two candidates including one of the pivot's 'wing' digits and the shared 'Z' digit (e.g., 4 and 9). The other must share the other 'wing' digit and the same 'Z' digit (e.g., 7 and 9).

The shared candidate between the two pincers is the elimination target, 'Z'. In our example, that's 9. It's crucial that the two pincer cells do not have to see each other. Their only required connection is that they both see the pivot. This pattern often appears in an 'L' or 'V' shape on the grid, but can take any form.

  • Start your search in areas of the grid that are densely populated with pencil marks.
  • Use the 'Z' candidate as a guide. If you suspect a Z candidate for elimination, look for a tri-value cell and two bi-value cells connected to it that both contain Z.

The XYZ-Wing Elimination Rule

The elimination rule is precise: you can remove the candidate Z from any cell that is a common peer of all three cells in the XYZ-Wing structure. A 'common peer' is a cell that lies in the same row, column, or 3x3 box as the pivot, the first pincer, and the second pincer. This cell must see all three wings of the pattern.

This elimination is valid because, as the logic proves, at least one of the three cells in the wing will ultimately be filled with the digit Z. Therefore, no cell that can see all three possible sources of Z can itself be Z. Making this elimination often directly reveals a Naked Single or breaks open a stuck region, propelling you toward the solution.

When to Look for XYZ-Wings in Your Solve

XYZ-Wings are advanced techniques, so you should search for them after exhausting all basic methods like Naked and Hidden Pairs/Triples and simpler wings like the Y-Wing. They are most commonly needed in Expert and Diabolical level puzzles. If you've found a potential Y-Wing but the pivot has three candidates instead of two, you might actually be looking at an XYZ-Wing.

This pattern is a key tool in the advanced solver's arsenal for How to Solve Hard Sudoku. When the board feels locked and more complex fish patterns like X-Wing or Swordfish aren't apparent, a systematic search for tri-value pivot cells can reveal an XYZ-Wing that provides the critical breakthrough. It elegantly bridges the gap between intermediate and expert-level solving strategies.

Key Facts

  • An XYZ-Wing is a three-cell Sudoku pattern consisting of a pivot cell with three candidates (XYZ) and two pincer cells.
  • One pincer cell shares candidates X and Z with the pivot, while the other shares candidates Y and Z with the pivot.
  • The core logic proves that the candidate Z must appear in at least one of the three cells in the XYZ-Wing structure.
  • You can eliminate the candidate Z from any cell that sees all three cells of the XYZ-Wing (the pivot and both pincers).
  • The XYZ-Wing is a direct extension of the Y-Wing technique, where the pivot cell is allowed to have three candidates instead of two.
  • Finding an XYZ-Wing requires identifying a tri-value cell (the pivot) and two bi-value cells that are both connected to it and share the critical 'Z' candidate.
  • This technique is classified as an advanced or expert-level strategy, often necessary for solving the hardest Sudoku puzzles.
  • The elimination from an XYZ-Wing can instantly place a number or unlock other simpler techniques, breaking a logjam in the puzzle.

Frequently Asked Questions

What is the difference between a Y-Wing and an XYZ-Wing?

A Y-Wing pivot has two candidates; an XYZ-Wing pivot has three. Both use two pincers, but the extra candidate in the XYZ pivot expands the pattern's applicability to more complex board states.

Do the pincer cells in an XYZ-Wing need to see each other?

No. The only required visibility is that both pincer cells must see the pivot cell. They can be in completely different parts of the grid from each other.

What happens if the Z candidate is not in both pincers?

Then it is not a valid XYZ-Wing. The defining feature is that the same candidate (Z) must be present in the pivot and in both of the connected pincer cells.

When should I start looking for XYZ-Wings?

Search for XYZ-Wings after simpler techniques like pairs, triples, and Y-Wings fail. They are essential for expert-level puzzles where the solution path requires advanced logic.