XY-Wing – Two Paths Eliminate the Same Digit
Classic & Cube
This technique works on a single 9×9 grid and on the cube alike. The in-app hint system knows and explains it.
Key rule: When both options of a Pivot cell force the same digit into one of two Wing cells, eliminate that digit from every cell that sees both Wings.
An XY-Wing is often called a Y-Wing. Start with a cell that has exactly two candidates, say {2, 5} — this is the Pivot P. Look for two other cells that see P, one holding exactly {2, 8} and the other holding exactly {5, 8}. They are the Wings (or Pincers) A and B, and both share the same third digit, here 8.
Try both possibilities for P: either way, one of the two Wings must become 8. Any target cell T that sees both Wings can therefore never contain 8.
How to read this page
A candidate is a digit that can still go in an empty cell after checking every face it belongs to. For an edge cell, check both faces; for a corner cell, check all three. In the app, you record candidates as pencil notes. {2, 7} means only 2 or 7 can still go here.
Row 4, Column 7 is the cell in Row 4, Column 7 of the face shown: 4 down, 7 across. Rows are counted from the top and columns from the left, starting at 1. The same arrows appear in the corner of each diagram: ↓ above the row numbers, → before the column numbers.
Two cells see each other when they share a row, a column, or a 3×3 block. On the cube, that holds on every face the cells belong to.
Each diagram shows a complete puzzle. The pencil notes always match the digits already placed on the board.
- Grey digits are already placed in the puzzle. They show where the notes come from.
- Orange: the row, column, or block you are examining. Digits inside it are dark.
- Green: the digits or candidates that drive the deduction.
- Red strikethrough: a candidate you can eliminate. A red × means that cell is ruled out.
- Yellow: a cell whose digit is now forced.
- A teal line along the border marks the shared edge between two faces.
- Small digits are pencil notes. Just like in the app, each digit sits in a fixed slot: 1 at top-left through 9 at bottom-right.
- When a step focuses on a single digit, the diagram shows only that digit’s notes everywhere it fits, just like digit highlighting in the app.
- A frame marks the target cell being asked about.
- Letters label cells referred to in the text. E is always a corner cell and K is always an edge cell.
- A green circle around a digit highlights the digit that forces the deduction.
- For corner techniques, the three faces are unfolded. A dashed line connects the edge that is split apart in the flat view.
Example
- Green: the shared digit carried by both Wings.
- Red strikethrough: the candidate you can eliminate in the target cell.
- Grey digits are already placed in the puzzle.
Pivot P at Row 4, Column 4 holds {2, 5}. Wing A at Row 4, Column 8 holds {2, 8}, and Wing B at Row 7, Column 4 holds {5, 8}. Now inspect target cell T at Row 7, Column 8 with candidates {1, 8, 9}.
- If P is 2, then A in the same row cannot be 2, forcing A to be 8.
- If P is 5, then B in the same column cannot be 5, forcing B to be 8.
T sees A in its column and B in its row. In either case, 8 is ruled out of T, leaving 1 and 9.
How to spot it
- Find a cell with exactly two candidates to serve as a potential Pivot.
- Look for two other two-candidate cells that see the Pivot and each share one of its digits.
- If both Wings share the same third digit, eliminate that digit from every cell that sees both Wings.
Exercise
Try the same deduction across the shared edge between the front face and the right face, counting edge cells from the top:
- P: fifth edge cell with
{3, 7}. - A: on the front face immediately left of P, with
{3, 9}. - B: on the right face one row lower, immediately right of the edge, with
{7, 9}. - T: fourth edge cell directly above P, with
{1, 6, 9}.
P and T belong to both middle edge blocks, on the front face and on the right face. What can you eliminate in T?
Show solution
Eliminate 9 from T. If P is 3, then A in the front block must be 9. If P is 7, then B in the right block must be 9. Because T belongs to both blocks, it can never hold 9 in either case, leaving 1 and 6.
Two-candidate cells are also the starting point for a Naked Subset, whereas an X-Wing locks a single digit into a rectangle across rows and columns.