Skip to content

Life 15: simple wayfinding [LIFE15-Wayfinding-071] - #92

Merged
NeoLorenzo merged 1 commit into
mainfrom
life15-simple-wayfinding
Oct 28, 2026
Merged

NeoLorenzo merged 1 commit into
mainfrom
life15-simple-wayfinding

Conversation

@NeoLorenzo

Copy link
Copy Markdown
Owner

People now find their way the way people do: straight at the goal when the ground ahead is known, otherwise steering round what is in the way, one patch of known ground at a time.

  • A new route is the straight line when every triangle it crosses is known walkable ground (exact side tests; a line through a vertex counts as blocked).
  • Otherwise it is steered along the chain of pieces: in each piece, toward the crossing into the next whose midpoint is nearest the line on to the target, straight where it can and by a search confined to that piece where it cannot.
  • The band of chunks, the search over all known ground and full walks are removed. Walk plans are way, joined, straight and steered; the panel says "heading straight there" or "finding a way through".
  • The checker requires a way remembered from a straight walk to be exactly the triangles its line crosses, and rejects a new way holding a triangle twice.
  • The chain of pieces and the in-piece search reuse typed arrays and one heap.

Walks against the shortest path over each walker's known ground (canonical forty, seed 20260813): straight walks about equal; steered walks 0–2% longer at the median, with a long tail (up to 289% on day 30).

Speed, Node, 12-hour steps, single runs, against update 070: the hut week (days 11–19) 7.3 s instead of 9.1 s; days 1–10 about the same; days 20–60 about 185–205 ms a day instead of 172. Ordinary days are not faster: steered corridors are long and cutting routes along them costs as much as before. The spec records these measurements in place of its estimate.

Trajectories change: new fingerprints for 21 of the 22 runs (one flat-land run unchanged). New unit fixtures for straight and steered plans, a line through a vertex, the crossing nearest the line, an obstacle inside one piece, and the checker. npm run agent:check passes. In the browser, a walker's details read "walk, going home to make an axe, finding a way through"; console clean.

@NeoLorenzo
NeoLorenzo merged commit 32ac853 into main Oct 28, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant