# Neighbour blocking

- Difficulty: Medium
- On the web: https://blinku.app/learn/non-consecutive

In non-consecutive sudoku, cells side by side can't hold consecutive digits. A digit a cell blocks whichever candidate it takes is out for the cells next to it.

Two cells side by side can't differ by 1, and can't match, as they share a row or column. So a cell next to a 5 can't be 4, 5 or 6.

A cell with candidates 4 and 6 isn't settled, but either way it blocks 5, so the cells next to it lose 5. With candidates 4 and 5, they lose both 4 and 5.

It works the other way too: when every place for 5 in a region touches the same cell, wherever the 5 goes, that cell can't be 4, 5 or 6.

On a board with consecutive bars, two cells side by side without a bar can't differ by 1 either, and the same reasoning works there.

## This example, step by step

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

1. **Where to look**: A pointer first: look at row 2, column 8. Whichever candidate it takes, what can't the cells next to it hold?
2. **Neighbour blocking**: Row 2, column 8 can only be 3 or 5. Whichever it is, the cells next to it can't be 4.

## In hints

The hint marks the cell and those next to it, or the region and the digit's places. Strikes take the digits out.
