# Simple Path

> Draw one path from the arrow in to the arrow out that visits every white cell.

Also called: Hamiltonian Path

Kind of puzzle: Lines

Web page: https://inkit.games/puzzles/simple-path

## Origin

Simple Path has no known inventor, and a path that visits every cell once is called a Hamiltonian path after William Rowan Hamilton, whose Icosian game of 1857 was built on the idea.

## Credit

- The idea goes back to William Rowan Hamilton's Icosian game (1857).
- Source: [Wikipedia](https://en.wikipedia.org/wiki/Icosian_game)

## Rules

1. Draw one path from the arrow in to the arrow out, through every white cell.
   - ✓ Right: Every cell
   - ✗ Wrong: Cells missed
2. The path never branches or crosses itself.
   - ✗ Wrong: Branches
3. It goes around dark cells and never crosses a thick wall.
   - ✓ Right: Around the rock
   - ✗ Wrong: Through a wall

## Worked example: First Steps

A 5×5 Simple Path 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":"edge","kind":"door","role":"in","side":"bottom","cell":[4,4]},{"at":"edge","kind":"door","role":"out","side":"right","cell":[2,4]},{"at":"cell","cell":[2,0],"kind":"block"},{"at":"cell","cell":[2,1],"kind":"block"},{"at":"border","cells":[[1,3],[1,4]],"kind":"wall"}]
```

The solution is drawn on the web page: https://inkit.games/puzzles/simple-path

Play it: https://inkit.games/g/simple-path-1

## Playing on inkit

Drag from cell to cell to draw; drag back over a line to erase it.
