# X-Wing

- Difficulty: Hard
- On the web: https://blinku.app/learn/x-wing

When a digit can go only in the same two columns in each of two rows, no other cell in those columns can hold it.

Pick a digit and find two rows where it has exactly two places, in the same two columns. The digit takes one column in each row, so both columns are used up by those rows. Remove it from the other cells of the two columns. Swap rows and columns for the other direction.

## This example, step by step

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

1. **Where to look**: A pointer first: look at row 8. Where can 4 still go?
2. **Locked candidates**: In row 8, 4 can only go in column 1, column 2, or column 3, and those three cells lie in the bottom-left box. So no other cell in the bottom-left box can be 4.
3. **X-Wing**: In row 5 and in row 8, the 8s all lie in column 5 and in column 9. So 8 can go nowhere else in column 5 and in column 9.

## In hints

The hint first gives a direction: those two rows. Blue ground marks the rows, blue marks where the digit can go, and orange strikes remove it from the other cells of the two columns.
