Repository navigation
Conversation
github-actions Bot
added a commit
that referenced
this pull request
Dec 3, 2026
Critics of the world generators: a random world every run (reach, roads, sea) Merge queue: build 524
Contributor
⏱ Performance: this PR against mainScenarios of src/game/98_perf.js, the two builds by turns on one runner (tools/perf.mjs, CPU side, draws counted not drawn). ✅ No regression against main
Over budget (ms/frame, budget): drive Land.lightTick 13.16 > 1 · drive Land.gen 2.51 > 0 · tunnel Land.lightTick 2.53 > 1 · idle Town.update 2.35 > 1 · drive Land.meshChunk 2.35 > 1 · drive Town.update 1.56 > 1 · tunnel Town.update 1.29 > 1 · night Town.update 1.03 > 1 Generated by Claude Code |
k06a
pushed a commit
that referenced
this pull request
Dec 3, 2026
Critics of the world generators: a random world every run (reach, roads, sea) Merge queue: build 524
…s when high or opening, sea.idle A lane binds a bridge only when a voyage sails it (Ships.spec). With seaways in the game a deck over a lane is a fault only in the state 'low' (Seaway.state); before them the fixed air of 60 cells holds. sea.idle counts a port no voyage sails from. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UiczdvXKSNcFXPzzYu2LYJ
github-actions Bot
added a commit
that referenced
this pull request
Dec 3, 2026
Critics of the world generators: a random world every run (reach, roads, sea) Merge queue
After a gate the worlds of the panel's seeds are other worlds: the two ceilings still hold, the kinds are not held, and UPDATE=1 writes the numbers of the new version. A PR that lands behind a gate no longer turns red on kinds it did not make. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UiczdvXKSNcFXPzzYu2LYJ
k06a
force-pushed
the
claude/project-thread-d204bd
branch
from
December 3, 2026 07:45
e7c255f to
df0b11f
Compare
Owner
Author
|
This work is in main as build 524 (landed through dev in #580 at head 4d8cce5). The commits that came after go into a new pull request from the same branch. Generated by Claude Code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Anton · project thread
What
A suite of critics for the world generators:
node tools/critics.test.mjs(no build, no browser, about a minute a world).Every run makes the worlds of a small fixed panel and one world of a seed drawn anew; the seed is printed and
SEED=<n>makes that world again. The map has no end, so the critics look at the land round the home (seven settlement cells wide) and at squares far away drawn from the seed (up to 128 km).A critic repairs nothing and knows nothing of how a thing was made. It asks the world what the game asks it: the navigator for the way a service car gets (
Navi.start→Navi.ends→Navi.carWay), the one ground finder for where a wheel stands (Ground.at), the blocks for what is in a body's way, with the limits of the driving physics (a step of two cells, the inner 70% of the width free).reach.none / gap / cut,way.off / step / wall / hole / wet / scrape / edge / low / steeproad.lost / step / wet / clash / grade / bend / tree / house) and as it is built, a bus along a lane (lane.*)sea.land / bridge / pier)Each finding names the seed, the place and what the generators say is there (which road and how far from its axis, a deck, which cell of which settlement's plan), so it is clear whose it is.
node tools/critics/view.mjs <seed> <x,z> out.png [span] [to x,z]draws the place with the way to it.What the first worlds show (main, gw 89)
townmountlake, forestThe causes seen so far, each with a place to stand at (they go to the threads that own the generators):
TOWNSofnavi.testcounts the same thing): seed 987654321, New Plaza at 2348,4017, 646 cells;Ratchet
tools/critics.known.jsonholds per panel world the destinations not reached, the faults in all and the kinds seen (one whole per world, the form oftools/drive.known.json). More of either, or a new kind, fails; fewer asks forUPDATE=1, which never raises a number. A kind clean in the panel and in at least twelve random worlds goes on thestrictlist (SEEDS=12 UPDATE=1); from then on one case of it in the random world of any run fails that run. The list is empty today, so the random world reports and does not block.Rule:
docs/ARCHITECTURE.md→ "Critics of the worlds".Prior art used
The first fix: the way round a roundabout
Navi.islegave the arc round an island the lane offset of the road the way came by, so by class 3 and 4 roads the way of the taxi, the police and the fire engine ran 20 to 36 cells outside the ring. The arc now takes the lane of the ring road. Test first: partringoftools/ways.test.mjs(red before: 8.5, 31.9 and 51.9 cells off the middle of the ring for classes 2, 3, 4).navi.testandways.testgreen. Panel after it: world 987654321 reaches 10 of 24 instead of 6 (faults 114 → 96), world 20261129 faults 91 → 85; the numbers oftools/critics.known.jsonare lowered here. Before and after pictures of the way at 850,1566 are in the project thread (no in-game shot list: the change is in the line a driver follows, drawn bytools/critics/view.mjs).Not in this PR
The nightly workflow over many random worlds (a workflow file: its own PR, merged directly), critics for railways, town interiors, buildings and flora, and the other fixes of what was found.
One release note (the roundabout fix).
https://claude.ai/code/session_01UiczdvXKSNcFXPzzYu2LYJ
Generated by Claude Code