village-builder

VB-438: Slopes by Tobler’s hiking function, symmetric around the flat

Status: done (2026-11-13) Priority: 2 Size: S Design ref: design.md, World and scale (Walking and terrain); src/sim/rules.js SLOPE Goal: Walking slows on a slope by the factor a walker’s speed falls by, the same up and down, on any terrain. Acceptance criteria:

Decisions (Kim, 13 November, asked in the session)

Tobler (1993): a walker makes 6 exp(-3.5 |S + 0.05|) km an hour at slope S. Kim asked for it symmetric around 0, so the 0.05 is dropped and the speed falls by exp(-3.5 |S|).

Implementation notes

Numbers (small map, 10 years; before → after)

Rise between walkable neighbours (small and medium, seeds 7 and 42): 0.03 to 0.04 at the median, 0.08 to 0.12 at the 90th percentile, 0.16 to 0.24 at the 99th, 0.4 to 0.5 at most. On meadow a step cost about 1.2, 1.6, 2.2 and 3; it costs about 1.2, 1.7, 2.9 and 6.

Run Living at year 10 Mean grain Walking, share of job hours
founders, seed 7 19 → 19 657 → 662 14.8% → 14.6%
founders, seed 42 21 → 20 565 → 496 17.3% → 16.2%
populous, seed 7 410 → 409 594 → 623 16.7% → 17.3%
populous, seed 42 431 → 433 585 → 592 18.5% → 19.4%

(The walking share sums the hours report’s rows over its groups of households, unweighted: a description, not a target.)

Validation