Sudoku technique 10 of 21 · Advanced
X-Wing
Two lines pin a number to four corners. A number boxed into the same two columns in two rows can be crossed out elsewhere in those columns.
The simplest of the “fish” patterns, along with Swordfish and Jellyfish.
Step by step: X-Wing on a real puzzle
-
When a number has the same two spots in two columns, cross it out elsewhere in those rows.
Look at the 1s in columns 4 and 8.
-
Both columns put their 1 in row 1 or row 6.
In column 4 and column 8, the 1 can only go in row 1 or row 6. The four squares make a rectangle.
-
Either way, rows 1 and 6 get their 1 here.
If the 1 in column 4 is in row 1, the 1 in column 8 is in row 6, or the other way around. Both rows are covered by these corners.
-
Cross out the other 1s in rows 1 and 6.
Row 1, columns 3, 5, and 7, and row 6, column 7 can’t be 1. It works the same with rows and columns swapped.
X-Wing
Watch videoAn X-Wing is the first pattern most people learn that works across the whole grid instead of inside one row, column, or box. It looks at one number in two lines at once.
Here’s the setup. In two columns, a number can only go in two squares each, and those squares are in the same two rows. The four squares form the corners of a rectangle. In one column the number goes in the top corner, and in the other column it goes in the bottom corner, or the other way around. Either way, both rows get their copy of the number from these corners. So the number can be crossed out of the rest of both rows.
It works the same with rows and columns swapped: two rows that each have the number in the same two columns let you clear that number from the rest of those columns.
How to spot it
- Pick a number that’s placed in a lot of the grid already.
- Pencil in where that number can still go. Only that number.
- Look for a column (or row) with exactly two spots for it.
- Find a second column (or row) with exactly two spots in the same two rows (or columns).
- Cross the number out of the rest of those rows (or columns).
Marking one number at a time is the key. With all candidates showing, X-Wings are very hard to see.
Why it works
Each of the two columns needs the number once, and each has only two choices. If the first column uses the top corner, the second must use the bottom one, since the top row now has its number. If the first uses the bottom corner, the second uses the top. In both cases, the two rows are covered by the corners, so no other square in those rows can hold the number.
Common mistakes
- Three spots in a line. Each of the two base lines must have exactly two spots for the number. If either has a third, there’s no X-Wing.
- Corners that don’t line up. All four squares must sit on the same two rows and the same two columns.
- Crossing out in the wrong direction. If your two-spot lines are columns, you clear the rows. If they’re rows, you clear the columns.
Questions
Why is it called an X-Wing?
Join the four corners diagonally and you get an X. You’ll also see it called a two-line “fish” pattern.
What’s a Swordfish?
The same idea with three lines instead of two. See Swordfish. If you’re comfortable with X-Wings, the next pattern to learn is the Skyscraper: an X-Wing where only one pair of spots lines up.