Chess adjacency rules

Some logic puzzles use chess moves to decide which cells cannot contain the same number. In both diagrams, the highlighted cell is the current cell; the marked cells are its adjacent cells.

King adjacency

A king moves one cell in any direction. For the current cell, the eight cells above, below, left, right and diagonally adjacent are king-adjacent. Identical numbers may not appear in any of those cells, even across box borders. Edge and corner cells simply have fewer neighbours.

Knight adjacency

A knight moves in an L shape: two cells in one straight direction and one cell to the side. From the current cell there are up to eight knight-adjacent cells. Identical numbers may not appear in those cells.