Sudoku Strategies: Y-Wings (or XY-Wings)

The Y-Wing (XY-Wing) Sudoku Technique

The "Y-Wing", also known as the "XY-Wing", is an advanced Sudoku solving strategy used to eliminate candidates in complex scenarios. It involves identifying a specific pattern of three bi-value cells (cells with exactly two candidates) that form a chain of relationships.

How the Y-Wing Works

The logic relies on a simple if-then chain. The three cells contain a total of three different candidates (let's call them X, Y, and Z) in specific combinations: (X, Y), (X, Z), and (Y, Z).

Key Components

The Logic

Consider the pivot cell "G3". It must be either 5 or 8:

In both possible scenarios, one of the pincer cells is guaranteed to be "2". Therefore, any other cell in the Sudoku grid that "sees" *both* pincer cells simultaneously cannot contain the candidate "2", allowing for its elimination. In this case the elimination is of candidate "2" in cell "B7".

Step-by-Step Guide to Spotting a Y-Wing

Follow these steps to find and apply the technique:

  1. Pencil in all candidates: Ensure your grid is fully marked with all potential candidate numbers in each cell.
  2. Locate bi-value cells: Look for cells with exactly two candidates remaining. The Y-Wing uses three such cells.
  3. Identify a potential pivot: Find a bi-value cell (X, Y) that shares at least one house (row, column, or box) with two other bi-value cells (pincers).
  4. Confirm the pincer candidates: Verify that the pincers have the candidate combinations (X, Z) and (Y, Z), where Z is the common elimination candidate.
  5. Find the intersection: Locate any third cell(s) that "sees" *both* pincer cells (is in the same row/column/box as both).
  6. Eliminate the common candidate (Z): The candidate Z can be safely eliminated from any cell(s) found in step 5.