# XY-Wing

- Difficulty: Expert
- On the web: https://blinku.app/learn/xy-wing

Three cells with two candidates each form a pivot and two wings, and any cell that sees both wings cannot hold their shared digit.

Find a pivot with candidates A and B. Then find a wing with A and C and another with B and C, each sharing a region with the pivot. Whether the pivot is A or B, one wing becomes C. Remove C from every cell that sees both wings.

## This example, step by step

```text
  1 2 3   4 5 6   7 8 9
1 . 8 6 | . . 1 | . 9 3
2 1 5 . | . . . | . 6 .
3 . 7 . | . . 6 | . 1 4
  ------+-------+------
4 . . . | . 6 7 | 1 5 .
5 5 6 8 | 2 1 . | 9 . 7
6 7 . . | . 9 . | . . 6
  ------+-------+------
7 6 9 7 | 1 3 2 | . . 5
8 8 . . | 6 . . | 3 7 9
9 3 4 5 | 7 8 9 | 6 2 1
```

1. **Where to look**: A pointer first: look at row 1, column 4. It can only be 4 or 5.
2. **XY-Wing**: The pivot, row 1, column 4, can only be 4 or 5. If it is 4, row 1, column 1 is 2; if it is 5, row 3, column 5 is 2. Either way one of them is 2, so no cell that shares a group with both can be 2.

## In hints

The hint first gives a direction. Blue marks the pivot and the two wings, and orange strikes remove C from the cells that see both wings.
