XY-Chain

An XY-Chain is a path of cells that each have exactly two candidates. Neighbouring cells see each other and share a digit: the second digit of one cell is the first digit of the next. If the first cell is not its first digit, it must be its second; then the next cell cannot be that digit and must be its own other digit, and so on to the end. When the first digit of the first cell and the last digit of the last cell are the same digit Z, one of the two end cells is always Z, and every cell that sees both ends can lose Z. The Y-Wing is the shortest XY-Chain, with three cells. The XY-Chain is a Master technique in Bare Sudoku.

When to use it

When the board has many cells with exactly two candidates and the wings find nothing. XY-Chains use only those two-candidate cells, so they are easy to follow once you spot a path whose two ends share a digit.

How to spot it

Pick a two-candidate cell and one of its digits as Z. Move to its other digit, then to a cell that sees it and holds that digit along with one other, and continue with that other digit. Whenever you arrive at a cell whose remaining digit is Z, you have a chain: look for cells that see both the first and the last cell and hold Z.

Example

XY-Chain
c1c2c3c4c5c6c7c8c9
r11682463695378478
r24668934694567345634812
r357342813496
r434795218618
r595867167243
r626261348759
r74673469869456714921457
r881469456723456734937457
r92472951393476378478

Bold digits are given, blue digits were placed while solving, small digits are candidates. Highlighted cells form the pattern, crossed-out candidates are removed, and a circled candidate is the digit to place.

  1. Each cell of the chain r1c5 (6=3) - r9c5 (3=9) - r9c2 (9=2) - r6c2 (2=6) has exactly two candidates. Inside a cell, = joins its two digits: if one is false, the other is true. Between cells, - joins the same digit in two cells that see each other: at most one of them is true.
  2. Suppose r1c5 is not 6. Then it holds its other digit, so the next cell cannot hold that digit and must be its own other digit, and so on along the chain, until the last cell r6c2 is 6.
  3. So 6 is in r1c5 or in r6c2.
  4. A cell that sees both r1c5 and r6c2 cannot be 6. Remove 6 from r1c2.

Common mistakes

In Bare Sudoku

Needed from level: Master
In the game, the hint says: XY-Chain

Play this puzzle · Play Sudoku · Sudoku solver

Practice puzzles

In these puzzles, XY-Chain is the hardest technique you need. Each link opens the puzzle in the game; the solver link shows every step.

  1. Master 6.7 · Sudoku solver
  2. Master 6.7 · Sudoku solver
  3. Master 6.7 · Sudoku solver
  4. Master 6.7 · Sudoku solver
  5. Master 6.7 · Sudoku solver
  6. Master 6.7 · Sudoku solver
  7. Master 6.7 · Sudoku solver
  8. Master 6.7 · Sudoku solver
  9. Master 6.8 · Sudoku solver
  10. Master 6.8 · Sudoku solver

Frequently asked questions

What is an XY-Chain in Sudoku?

A chain of two-candidate cells in which each cell sees the next and shares a digit with it. When both ends can be the same digit Z, one of them is Z, so cells that see both ends lose Z.

How is an XY-Chain related to the Y-Wing?

A [Y-Wing](y-wing) is an XY-Chain of three cells: the pivot and two wings. Longer XY-Chains apply the same reasoning through more cells.

Can the two ends of an XY-Chain see each other?

Yes. Then Z is removed from the cells that see both ends, as usual. When the chain closes into a loop, even more can be removed; Bare Sudoku handles loops as a separate technique.

Does an XY-Chain use only two digits?

No. Each cell has two digits, but the digits can change from cell to cell, as long as each link shares one digit.

All techniques

· Updated