Guides · Sudoku · Techniques

X-Wing.

The first technique that works across the board rather than inside one unit. A digit confined to the same two columns in two different rows forms a rectangle, and the digit cannot appear anywhere else in those columns. Shown on a real Expert board.

About 6 minutes · Eighth technique

What an X-Wing is.

If a digit has exactly two possible squares in each of two rows, and those squares sit in the same two columns, then the digit must occupy diagonally opposite corners of that rectangle, and it can be removed from the rest of both columns.

The name comes from the diagonals: draw lines between the opposite corners and you get an X. It also works turned round, with two columns each pinning the digit to the same two rows, clearing the rows instead.

A Sudoku board from Pocketful with rows 3 and 4 tinted and four squares forming a rectangle ringed, with an X drawn between them
Expert level 237 in Pocketful, seven moves in, with candidates penciled into rows 3 and 4 and the squares around them. Follow the 1s.

How to find one.

Pick a digit. Find a row where it has exactly two possible squares. Then look for a second row where it also has exactly two, in the same two columns. Those four squares are the X-Wing. Cross the digit off every other square in those two columns.

Rows 3 and 4 tinted, with the four squares that can take a 1 ringed and joined by an X
Columns 3 and 6 tinted, the corners ringed and four penciled 1s outside the rectangle crossed out
Row 5 tinted with its remaining square for a 1 ringed
The board after placing the 1 in row 5

Why it works.

Call the corners top-left, top-right, bottom-left and bottom-right. Row 3 puts its 1 in top-left or top-right. If it is top-left, column 3 is used, so row 4 must use bottom-right. If it is top-right, row 4 must use bottom-left. Either way, exactly one 1 lands in column 3 and one in column 6, both inside the rectangle. Each column holds one 1. The rest of both columns is clear.

Spotting them faster.

  • Chase one digit at a time. X-Wings are patterns in a single digit's candidates. In Pocketful, lock the digit on the keypad and pencil it everywhere it fits; the rectangle is then a shape, not a calculation.
  • Look for rows with exactly two. A row with two possible squares for the digit is half an X-Wing. Note its two columns and scan the other rows for a match.
  • Check the columns too. The same pattern with columns as the base rows clears rows instead. Look both ways.
  • Three rows make a Swordfish. The next page extends the same idea to three rows and three columns.

Common questions.

Does an X-Wing need the corners to be the only candidates in their squares?

No. The corner squares can show other candidates. The condition is about the digit: it must have exactly two possible squares in each of the two rows, and they must line up in two columns.

What if a row has three possible squares?

Then it is not an X-Wing, at least not with that row. Either look for a different pair of rows, or move on to the Swordfish, which allows up to three squares per row across three rows.

How often do Pocketful boards need an X-Wing?

Only Expert boards, and not most of them: in a sample of four hundred, about one in fifteen reached a point where an X-Wing was the simplest move. When it happens, it is usually the move that breaks the board open.

Part of Sudoku techniques.

← Hidden pairsSwordfish →

Practice it on a real board.

The board on this page is Expert level 237 in Pocketful. Place the seven singles the blue digits show, pencil the 1s, and find the rectangle.

Download on the App Store