# Hidoku

> Fill in the numbers 1 to the last so each one touches the next, making one snake through the grid.

Also called: Number Snake

Kind of puzzle: Numbers

Web page: https://inkit.games/puzzles/hidoku

## Origin

Gyora Benedek invented this puzzle and named it Hidato, from the Hebrew for "riddle", and since Hidato is a trademark we call it Hidoku, as many puzzle sites do.

## Credit

- Inventor: Gyora Benedek
- Hidato is a registered trademark, so we use the generic name.
- Source: [Wikipedia](https://en.wikipedia.org/wiki/Hidato)

## Rules

1. Fill every white cell with the numbers 1 to the last one, each once.
   - ✓ Right: 1 to 6, once each
   - ✗ Wrong: 4 twice, no 6
2. Each number touches the next one, at a side or a corner.
   - ✓ Right: Corners count
   - ✗ Wrong: 5 and 6 apart
3. Dark cells are rocks: the snake goes around them.
   - ✓ Right: Around the rock
4. When a puzzle says "sides only", a corner isn't enough.
   - ✓ Right: Side to side
   - ✗ Wrong: 2 to 3 at a corner

## Worked example: Number Snake

A 4×4 Hidoku puzzle, with exactly one solution.

The givens, as inkit's puzzle engine writes them (cells are [row, column] from 0 at the top left):

```json
[{"at":"cell","cell":[1,1],"kind":"block"},{"at":"cell","cell":[2,0],"kind":"block"},{"at":"cell","cell":[0,0],"kind":"number","value":1},{"at":"cell","cell":[1,3],"kind":"number","value":14},{"at":"cell","cell":[3,2],"kind":"number","value":8},{"at":"cell","cell":[0,1],"kind":"number","value":11}]
```

The solution, a line per row (`■` is a black cell given in the puzzle):

```
1 11 12 13
2 ■ 10 14
■ 3 6 9
4 5 8 7
```

## Playing on inkit

Tap a cell, then type its number (1 then 2 makes 12), on the keys under the board or the keyboard. Backspace erases.
