Triples and X-wings in Sudoku

Sudoku, level 4

Level 4 asks for two new moves: the triple, which is a pair with one more member, and the X-wing, the first technique that looks across two separate rows or columns at once.

Triples

A triple is three cells in the same row, column or box that between them can only hold the same three numbers, although each cell needn't have all three. In one grid, the bottom-right box had these cells:

  • row 8, column 8: 3 or 8
  • row 8, column 9: 3 or 5
  • row 9, column 7: 5 or 8

Only 3, 5 and 8 appear, so those three cells will use up the box's 3, 5 and 8, and the box's other empty cells can cross all three off.

X-wings

Choose one number and look only at where it can go, and if two rows each have that number in exactly two places, in the same two columns, you have an X-wing.

Here's a level 4 puzzle part-way through, followed by a map of where 2 can still go once the candidates are pencilled in and a few earlier eliminations are done (2 is a placed 2 and o is a cell that could still be 2):

1 2 3 4 5 6 7 8 9
1 1 9 8 6
2 2 6 1
3 5 4 1 7
4 9 3 1 8 4 6 2
5 3 7 4 1
6 1 4 8 6 2 3
7 7 1 8 3 6
8 9 1 3
9 5 3 4 7 6 1
1 2 3 4 5 6 7 8 9
1 X X
2 2
3 o o o o o
4 2
5 o o
6 2
7 o o o
8 o o o o o
9 X X

In row 1 the 2 can only go in column 1 or column 8, and in row 9 it's the same two columns, so those four cells, marked X, form the corners of a rectangle.

Row 1 needs a 2 and so does row 9, and they'll either sit top-left and bottom-right or top-right and bottom-left. Either way column 1 gets its 2 from row 1 or row 9, and so does column 8, so every other o in columns 1 and 8 can go, which clears rows 3, 7 and 8 in both columns. Row 7, column 1 had been down to 2 or 4, so with the 2 gone it's 4.

Why it works

The two rows each need the number once and only have the same two columns to put it in, so between them they fill both of those columns' quota, and the same reasoning works with rows and columns swapped.

Tips

X-wings are easiest to spot if you take one number at a time and look for rows or columns where it has just two possible homes.