Technique

X-Wing and XY-Wing: Your First Advanced Techniques

Two patterns that look intimidating and turn out to be neat little logic puzzles of their own, with a mention of Swordfish at the end.

Published October 27, 20262 min read

These are the first two patterns that look across several units at once. Each looks intimidating on paper, but each is a small piece of logic you can check one step at a time.

X-Wing

An X-Wing appears when a digit has exactly two possible cells in each of two rows, and those four cells line up in the same two columns. Here is the reasoning. The digit must appear once in each of the two rows, and it can only land in the columns shown. Whichever cells it uses, those two columns are then taken by the digit. So it cannot appear anywhere else in those two columns.

The example below uses the digit 9. It has only two possible cells in rows 6 and 7, and those cells sit in columns 2 and 9. Every other note for 9 in those two columns can be deleted.

rows 6 and 7columns 2 and 9the four cornerscan be crossed out
Candidate map for 9. In row 6 and in row 7 (blue) the 9 fits in only two cells, and they are in the same two columns, 2 and 9. The four yellow corners form the X-Wing. The 9 in each row must take one corner, so each of those two columns will get its 9 from the wing: every other 9 candidate in columns 2 and 9, namely R4C9, R8C2 (red), can be crossed out.

The same pattern works with columns and rows swapped. The rectangle is always the key: two lines, two cells each, same two crossing lines.

XY-Wing

An XY-Wing uses three cells, each with exactly two notes. The pivot is the middle cell. Say its notes are X and Y. Its two pincers each share one of those digits with the pivot: one pincer has X and Z, the other has Y and Z. The two pincers therefore share a third digit, Z.

Here is why it works. Whatever digit the pivot takes, one of the two pincers is forced to take the shared third digit. So any empty cell that can see both pincers (shares a row, column or box with each of them) cannot hold that third digit.

The figure below shows a real example. The pivot is R2C1. The shared digit that gets removed is 4.

pivotpincers4 can be crossed out
The pivot R2C1 (pink) has only two candidates, 5 and 7. The pincers (blue) each see the pivot: R6C1 holds 4 and 5 and R1C3 holds 4 and 7. If the pivot is 5, then R6C1 cannot be 5, so it is 4. If the pivot is 7, then R1C3 cannot be 7, so it is 4. Either way, one of the two pincers is 4. Any cell that sees both pincers (R4C3, R6C3, red) can therefore never be 4. For clarity only these cells show their notes.

Swordfish

A swordfish is an X-Wing across three rows and three columns. It is rarer, and it turns up only in Hard puzzles in our test (0.5%).

How Often They Appear

  • Medium: XY-Wing appeared in 1.1% of puzzles and X-Wing in 0.2%.
  • Hard: XY-Wing appeared in 5.6%, X-Wing in 1.3%, and Swordfish in 0.5%.

If you are stuck on a Hard puzzle, check pairs and pointing patterns first. X-Wing and XY-Wing are worth looking for once those are exhausted.