Learn · Reasoning ideas

Either way

Also called XY-Wing and XYZ-Wing

This cell is a 3 or an 8. Try both. If both roads end at the same answer, that answer is true either way.

The idea

What is an XY-Wing in sudoku?

An XY-Wing is what many solvers call the idea Nocti teaches as “Either way”. Follow both options of a two-digit cell. If both lead to the same digit somewhere, cells that see both ends lose it. This page covers all its usual names: XY-Wing and XYZ-Wing. See the worked example.

A worked example

From a tricky classic sudoku. Highlighted: the cells that make the pattern; dashed: the cells that change.

r4c5 can only be 5 or 7. If it's 5, then r6c6 (5 or 4) must be 4. If it's 7, then r4c7 (7 or 4) must be 4. Either way one of those two cells is 4, so any cell that sees both can't be 4: remove it from r6c9.

Cells are named row then column: r3c5 is row 3, column 5, counted from the top left. More about cell names

Practise with a tricky puzzle