SudokuHint

Y-Wing Strategy in Sudoku: The Bent Triple Technique

A Y-Wing is an advanced Sudoku solving technique that uses three cells forming a specific candidate relationship to eliminate a digit from cells that 'see' both ends of the chain. Also known as the XY-Wing, it is a powerful pattern that acts on three cells but functions like a 'bent triple', eliminating candidates that cannot logically coexist. Mastering this pattern is a key step for any player looking to [How to Solve Hard Sudoku](/blog/how-to-solve-hard-sudoku) puzzles without guessing.

By SudokuHint TeamLast updated

The Anatomy of a Y-Wing: Pivot and Pincers

A Y-Wing consists of three specific cells: one pivot cell and two pincer cells. The pivot cell must have exactly two candidates, which we label X and Y. The two pincer cells must also be bivalue cells. One pincer shares candidate X with the pivot and has a second candidate Z (making it an XZ cell). The other pincer shares candidate Y with the pivot and has that same second candidate Z (making it a YZ cell). This creates the XY, XZ, YZ relationship that defines the pattern. All three cells are connected via a shared row, column, or box with the pivot, but the two pincer cells do not need to see each other directly.

How the Y-Wing Elimination Logic Works

The power of the Y-Wing lies in its logical deduction about candidate Z. The pivot cell (XY) will ultimately be filled with either X or Y. If the pivot is X, then the XZ pincer cannot be X, so it must be Z. If the pivot is Y, then the YZ pincer cannot be Y, so it must be Z. In both possible scenarios, one of the two pincer cells is forced to be Z. Therefore, any cell that can see both pincer cells cannot possibly contain Z. This candidate Z can be safely eliminated from all such cells, often cracking open a difficult section of the puzzle.

Key insight: Key Insight: Regardless of whether the pivot becomes X or Y, one of the pincers is forced to be Z. This guarantees that Z is true in at least one pincer, allowing you to eliminate Z from their common peers.

How to Spot a Y-Wing on the Grid

To find a Y-Wing, start by scanning the puzzle for bivalue cells (cells with only two candidates). Look for a potential pivot cell (XY). Then, search for two other bivalue cells that meet these criteria: one must be in the same row, column, or box as the pivot and contain candidates X and Z (the XZ pincer). The other must also be in the same row, column, or box as the pivot (but a different unit is fine) and contain candidates Y and Z (the YZ pincer). Finally, check if there are any cells that can see both the XZ and YZ pincer cells; these are the targets for your elimination of candidate Z. This pattern is more common than larger techniques like the X-Wing and is a crucial pattern to recognize.

  • Focus your search on areas of the puzzle that are rich in bivalue cells.
  • Mentally note or pencil mark bivalue cells as you solve; they are the building blocks for Y-Wings.
  • Candidate Z must be the same digit in both pincer cells.

A Step-by-Step Y-Wing Example

Imagine a pivot cell R5C5 with candidates {2,8}. This is our XY cell (X=2, Y=8). We find a pincer in R5C9 with candidates {2,5}. This is our XZ cell (X=2, Z=5). We find the other pincer in R8C5 with candidates {8,5}. This is our YZ cell (Y=8, Z=5). The pivot sees both pincers (same row and same column, respectively). The logic runs: If R5C5 is 2, then R5C9 must be 5. If R5C5 is 8, then R8C5 must be 5. In all cases, a 5 appears in either R5C9 or R8C5. Therefore, any cell that can see both R5C9 and R8C5 cannot be a 5. This might allow you to eliminate 5 from a cell in the intersection of row 5 and column 5's influence.

Common Pitfalls and Clarifications

A frequent misunderstanding is that the two pincer cells must see each other. They do not. They only each need to share a row, column, or box with the pivot cell. Their connection is through the pivot's logic, not a direct visual link on the grid. Also, all three cells must be distinct. The pattern does not work if the pivot and a pincer are the same cell. The candidates X, Y, and Z must be three different digits. Finally, the elimination is only valid for cells that are peers of both pincer cells. If no cell sees both pincers, the Y-Wing still exists logically, but it yields no immediate eliminations for that particular puzzle state.

Key Facts

  • A Y-Wing is an advanced Sudoku technique that uses three bivalue cells in a specific configuration.
  • The three cells are called the pivot (XY) and two pincers (XZ and YZ), where X, Y, and Z are three different digits.
  • The pivot cell must share a row, column, or block (a 'unit') with each of the two pincer cells.
  • The two pincer cells do not need to be in the same row, column, or block as each other.
  • The core logic: The pivot will be either X or Y, forcing one of the pincers to be Z in either scenario.
  • This guarantees that the digit Z must appear in at least one of the two pincer cells.
  • You can eliminate candidate Z from any cell that is a common peer of both pincer cells.
  • Finding Y-Wings requires actively looking for bivalue cells and checking their candidate relationships.
  • A Y-Wing is sometimes called an XY-Wing, emphasizing the candidate labels of the three cells.
  • It is considered a chain technique and is more commonly found than larger fish patterns like Swordfish.

Frequently Asked Questions

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

There is no difference. Y-Wing and XY-Wing are two names for the exact same Sudoku solving technique. Both refer to the pattern with a pivot cell (XY) and two pincer cells (XZ and YZ).

Do the pincer cells in a Y-Wing have to see each other?

No. The pincer cells only need to each share a row, column, or box with the pivot cell. They can be completely unrelated to each other on the grid. The elimination targets cells that see both pincers.

Can a Y-Wing use a cell with three candidates as the pivot?

No. For a classic Y-Wing, all three cells—the pivot and both pincers—must be bivalue cells (containing exactly two candidates each). The specific XY, XZ, YZ relationship relies on this.

Is a Y-Wing considered 'trial and error' or guessing?

No. The Y-Wing is a pure logic technique. It examines all possible outcomes for the pivot cell and proves that, in every case, a specific candidate must be true in one of the pincers, leading to a definite elimination.

What should I do if I find the pattern but no eliminations are possible?

The Y-Wing pattern exists in the puzzle's candidate placement, but if no cell sees both pincers, there is no immediate elimination. Continue solving; the pattern may become useful later as more candidates are removed.