XY-Wing Technique - Eliminating Candidates Through 3-Cell Chains

·5 min read

XY-Wing is an advanced technique where three cells with only 2 candidates each form a Y-shaped chain that forcibly eliminates a specific digit. While X-Wing handles 'rectangles in 4 cells across rows and columns,' XY-Wing handles 'chains between different candidate pairs.' This article explains everything from the pivot concept to practical discovery procedures.

Basic Structure of XY-Wing

XY-Wing consists of three cells. The central 'pivot' has only 2 candidates {X, Y}. The two 'pincers' have only 2 candidates each: {X, Z} and {Y, Z} respectively. The pivot must share a unit (row, column, or block) with each pincer. When this 3-cell structure holds, no matter whether the pivot resolves to X or Y, one of the pincers must end up at Z. As a result, Z can be eliminated from any third cell that 'sees' both pincers. Because it handles a Y-shaped logical chain, it's called XY-Wing.

Why Z Can Be Eliminated

Breaking down the logic clarifies it. If the pivot's value is X, the pincer with candidates {X, Z} that shares a unit with the pivot must exclude X, leaving Z confirmed. Conversely, if the pivot is Y, the other pincer with {Y, Z} excludes Y and confirms Z. In short, 'regardless of whether the pivot is X or Y, one of the pincers must be Z.' Any cell that simultaneously sees both pincers (shares a unit with each) is guaranteed to be affected by Z confirmation from one of them, so Z can be eliminated from that cell. This is essentially a disjunctive syllogism executed on the board.

Differences from X-Wing

<a href="/en/articles/x-wing-technique/">X-Wing</a> and XY-Wing have similar names but completely different logical structures. X-Wing exploits a configuration where the same digit X is confined to a 2-row × 2-column rectangle, eliminating X from those rows or columns. It involves 4 cells and only 1 candidate type (X). XY-Wing involves 3 cells and 3 candidate types (X, Y, Z). Understanding X-Wing as 'positional constraint of the same digit' and XY-Wing as 'logical chains between different candidates' avoids confusion. XY-Wing is harder to spot and often serves as the decisive move in Expert+ puzzles.

Practical Discovery Procedure

Efficient XY-Wing discovery follows these steps. Step 1: Identify all cells with exactly 2 candidates on the board. Master-level puzzles typically have 5-15 such cells. Step 2: Choose any cell as a pivot candidate (with candidates {X, Y}). Step 3: Find cells that share a unit with the pivot and have candidates {X, ?}. When found, treat that ? as Z. Step 4: Find cells that share a different unit with the pivot and have candidates {Y, Z}. Step 5: If any cell sees both pincers simultaneously, Z can be eliminated from it. Step 6: If no eliminations are possible, repeat with another pivot candidate. With practice, you can scan the entire board in a few minutes.

Common Errors and Verification

Three typical errors occur with XY-Wing. First, 'one pincer candidate has 3 or more candidates.' XY-Wing requires all 3 cells to have exactly 2 candidates. Including a cell with 3 candidates breaks the logic. Second, 'both pincers share the same unit with the pivot.' The two pincers must connect to the pivot through different units (e.g., one via a row, the other via a column). Third, 'the elimination target cell sees only one pincer.' It must see both pincers simultaneously to be eliminated. Always verify all three conditions when you find an XY-Wing. Note that generalizing XY-Wing leads to XYZ-Wing and WXYZ-Wing variants, which handle longer chains as higher-level techniques.

Using Two-Choice Logic on the Board

The essence of the XY-Wing is executing a disjunctive syllogism on the board: the two-way choice of whether the pivot is X or Y always fixes Z in one of the pincers. Whichever value the pivot turns out to be, the conclusion is that Z appears in one of the pincers. That is exactly why a third cell seen simultaneously by both pincers has no room for Z and can be eliminated. The key is that this is not guessing but a sure conclusion drawn in common after considering both cases. It looks complex, but if you go step by step - if X then this, if Y then that, either way Z is erased - the logic is clear.

A Checklist for Discovery and Verification

To use the XY-Wing correctly, always confirm three conditions. First, the pivot and the two pincers each hold exactly two candidates. Mixing in a cell with three candidates breaks the logic. Second, the two pincers each connect to the pivot through a different unit. Third, the cell you want to eliminate is in a position seen simultaneously by both pincers. A cell seen by only one pincer cannot be eliminated. In practice, it is efficient to first comb out all cells with only two candidates and look for the pivot-and-pincer set among them. The care of confirming these conditions one by one prevents the destruction of the board from a wrong elimination.