# X-Wing

> An X-Wing is an advanced sudoku pattern where a digit's candidates in two rows sit in the same two columns, letting you remove it from the rest of those columns.

URL: https://www.jessie-games.com/glossary/x-wing

Used in: Sudoku

An **X-Wing** is an advanced sudoku technique. It's worth knowing for the hardest puzzles, once singles and pairs stop finding new moves.

## How it works

Pick a digit. Look for **two rows** where that digit has exactly **two** possible cells each, and those cells are in the **same two columns**. The four cells form the corners of a rectangle.

In each of those rows, the digit must go in one of its two cells. Whichever way it goes, the digit ends up once in each of the two columns, at opposite corners of the rectangle (the "X"). So no other cell in those two columns can hold that digit. Remove it from their [candidates](https://www.jessie-games.com/glossary/candidate).

The same pattern works with two columns and two rows swapped.

## Example

The digit 5 can only go in columns 2 and 7 in row 3, and also only in columns 2 and 7 in row 8. Either row 3 takes column 2 and row 8 takes column 7, or the other way round. Both ways, columns 2 and 7 each get their 5 from rows 3 and 8. Erase 5 from every other cell in columns 2 and 7.

## On Jessie Games

Jessie Games' hard [Sudoku](https://www.jessie-games.com/games/sudoku) puzzles are chosen because they need more than singles. Many fall to [naked pairs](https://www.jessie-games.com/glossary/naked-pair) and [pointing pairs](https://www.jessie-games.com/glossary/pointing-pair); an X-Wing is another tool that can help on the toughest grids. To spot one, you need complete [pencil marks](https://www.jessie-games.com/glossary/pencil-marks) for the digit you're studying. Selecting a cell highlights every copy of its digit, which makes scanning rows and columns quicker.

## Tip

Check one digit at a time across the whole grid. X-Wings are much easier to see that way than by staring at individual cells.
