Sudoku Learn
繁中

Typical level: Expert

X-Wing

The X-Wing is the gateway to advanced Sudoku. It looks at one digit across two rows at once. If, in each of two rows, a digit can only go in the same two columns, those four cells form the corners of a rectangle. The digit must occupy two opposite corners. Whichever diagonal it takes, both columns get their copy of the digit from those two rows, so the digit can be removed from every other cell in those columns.

How to find it

  1. 1Choose one digit and look only at its pencil marks.
  2. 2Find a row where the digit has exactly two possible cells.
  3. 3Find a second row where the digit has exactly two possible cells in the same two columns.
  4. 4The four cells form a rectangle. The digit must sit on one of its two diagonals.
  5. 5Remove the digit from every other cell in those two columns.
  6. 6The same works with columns and rows swapped: two columns with the digit in the same two rows clear those rows.

Worked example

Partial board. Only the digits needed for this pattern are shown.

Rows 2 and 6 lock 7 into columns 3 and 8
  • Pattern cells
  • Candidates removed

Why it works

In the example, row 2 can only place its 7 in R2C3 or R2C8, and row 6 can only place its 7 in R6C3 or R6C8. If R2C3 is 7, then R2C8 is not, so row 6 must use R6C8. If R2C8 is 7, row 6 must use R6C3.

In both cases, columns 3 and 8 each receive a 7 from rows 2 and 6. So none of the other cells in columns 3 and 8 can be 7: R3C3, R4C3, R7C3, R8C3 and R9C3, and the same rows in column 8, all lose that candidate.

Tips for spotting it faster

  • Start with digits that are already placed five to seven times. With only a few copies left to place, rows and columns where the digit has exactly two spots become common, and those are the building blocks of an X-Wing.
  • Work one digit at a time. In our game, tap any cell holding the digit (or the digit button with no cell selected) to light up all its pencil marks. Then write a short list as you scan: for each row where the digit has exactly two candidates, note the two column numbers, for example "row 2: 3 and 8". Two rows with the same pair of columns are an X-Wing.
  • Do the same scan down the columns, noting row numbers. Many players only check rows and miss half of the X-Wings on the board.
  • Before you celebrate, check that the cover lines still hold the digit somewhere else. If the two columns have no other candidates for it, the pattern is real but removes nothing, so move on to the next digit.
  • A digit that refuses to resolve while most others are finished is the best place to look. When pairs and pointing patterns have stalled, cycle through the unfinished digits in order rather than staring at the whole board.

Common mistakes

  • Using rows where the digit has three or more options. Each base row must have exactly two candidate cells for the digit.
  • Eliminating from the base rows instead of the columns. When the pattern is built from rows, the eliminations happen in the columns, and the other way round.
  • Searching with several digits at once. X-Wings are much easier to spot if you filter your view to a single digit.

When to use it

Look for an X-Wing in Expert puzzles once pairs and pointing patterns have run out. Its bigger cousins, Swordfish (three rows) and Jellyfish (four rows), follow the same idea.

Practise on a Expert puzzle

Frequently Asked Questions

Why is it called an X-Wing?
The two possible placements of the digit run along the rectangle's diagonals, which cross like an X.
What is a Swordfish?
A Swordfish extends the X-Wing to three rows and three columns. If a digit in three rows is confined to the same three columns, it can be removed from the rest of those columns.