# Forest paths · Volume 11

Seeds 0–99 are paired. Each map is 15 × 15, with 81 blocking cells (36%). The two opposite corner cells stay open. A player may step one tile north, south, east or west. The isometric camera changes how those directions look, but never changes adjacency.

Free scatter fills the first 81 positions in a seeded shuffle of the 223 eligible cells. The reserved method uses the same ordering but skips a connected route and continues until 81 cells are occupied. A second, deterministic PRNG stream shuffles 14 east and 14 south steps to define that route. No method rerolls or repairs a failed seed. A breadth-first search reads only the finished grid. Its path can differ from the corridor that was reserved.

| Placement | Gate reachable | Gate cut off | Shortest route when available |
|---|---:|---:|---:|
| Scatter | 17 | 83 | 28–38 moves |
| Reserved route | 100 | 0 | 28 moves |

All 100 layouts within each method were distinct. The checker regenerated every map a second time and compared the two outputs. A separate Python traversal agreed with all 200 distances or failures. A diagonal-only connection and a solid horizontal wall both correctly failed. Of the 83 scatter failures, 25 had an isolated entrance or exit; the remaining 58 failed despite each endpoint having an open neighbour.

Seed 2 is the paired example. The scatter entrance reaches 47 floor cells but cannot reach the gate. The reserved entrance reaches 133 floor cells and the gate is 28 steps away. Seed 0 demonstrates that scatter can succeed: its shortest route is 30 steps, compared with 28 after reservation.

The reserved route guarantees connectivity by construction under these rules. Every route it reserves has the shortest geometrically possible length. The test does not measure enjoyment, route variety during play, challenge, players per map, collision for larger actors or the universal failure rate of scatter. A more winding reserve would be a different experiment.



Open [forest-paths.html](./forest-paths.html) in a modern browser. The art, checker, generator and seed report are embedded. Start with seed 2. Toggle **Show path**, switch placement, and click the ground to walk. On a blocked map the overlay instead marks the component accessible from the lantern. Click near the base of the gold gate on the reserved map to walk to it. The arrows provide one-tile movement.

**Save or share a forest.** Load a seed, choose a placement method, and show or hide the path. **Save forest** keeps this combination on your Studio reading shelf, separate from the volume itself. **Share forest** opens the same map for anyone, without sign-in. Each visit starts at the lantern; walking progress is not part of the link.

Download the checker from the demo or use the adjacent file.

```sh
node forest-check.cjs
node forest-check.cjs --map 2 scatter > forest-map.json
node forest-check.cjs --check forest-map.json
```

The checker expects rows of equal length using `.` for open ground and `#` for blocked ground, plus zero-based `start` and `end` coordinate pairs. Exit 0 means reachable, 2 means unreachable, and 1 signals malformed input. For custom maps start and end must be open. JavaScript route indexes use `y * width + x`.


Artwork uses ten sprites from the [CC0 Iso Forest starter](https://www.bitblurs.com/library/iso-forest). For background, see [Constructive generation methods for dungeons and levels](https://www.antoniosliapis.com/articles/pcgbook_dungeons.php).
