Repository navigation
Conversation
…house on a street, roads that reach the streets (gw 70) Asphalt of a town 31 % -> 21 % of its ground (small historic towns 15-25 %, UN-Habitat 2013); street spacing by planning tradition, lanes without sidewalks in grown cores; no building more than 6 m off a street; street graphs inside the ranges of real cities of the same tradition (Boeing 2019); every road in reaches a street of its town by a least-cost path over the land (Galin et al. 2010), 24 of 95 stopped short before. Ice-cream van stops on streets cut by car park entrances. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Uiczdt14xCS9pvwcYytzRr
…V gw 71 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Uiczdt14xCS9pvwcYytzRr
…n's remarks paraphrased Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Uiczdt14xCS9pvwcYytzRr
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). ❌ Slower than main in 3 gating metric(s)
Over budget (ms/frame, budget): drive Land.lightTick 21.52 > 1 · drive Land.gen 7.54 > 0 · tunnel Land.lightTick 3.81 > 1 · drive Land.meshChunk 2.23 > 1 · drive gl.upload 1.16 > 0.8 · tunnel Land.meshChunk 1.35 > 1 · drive Town.update 1.20 > 1 · tunnel Town.update 1.18 > 1 Generated by Claude Code |
…ilway loop planning that ends Rail.make left the last town of a loop out and asked the stale plan again for ever (seed 5150 by the sea in the desert, gw 71+): every plan now costs the loop a town or one of the four sides of a town alone, and with no town left there is no line. tools/rail.mjs test counts the plans. Street.set takes the generator version again. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Uiczdt14xCS9pvwcYytzRr
The medina check of weave.test knows the size of a network: few streets always look ordered (the entropy of n samples, Miller 1955), so the limit is the order of random streets at that size plus the old margin (0.35 at the 35 streets of a medina before WVS_GW). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Uiczdt14xCS9pvwcYytzRr
…tes and shots 487; the second world that never came Seed 260429754 in a forest (Terr.at(-2160, -2736) never returned on main) is the same railway loop planned for ever: it joins the test. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Uiczdt14xCS9pvwcYytzRr
github-actions Bot
added a commit
that referenced
this pull request
Dec 2, 2026
Towns to the measure of real small towns: less asphalt, houses on streets, roads that reach the streets (gw 71) Merge queue: build 487
…s the railway planning test Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Uiczdt14xCS9pvwcYytzRr
k06a
pushed a commit
that referenced
this pull request
Dec 2, 2026
…7; a yard is not put across a road that cannot pass it A road held close by (its town's pad, a ring, a junction with another road) cannot dive a storey under a level yard: the yard slides, takes the other flank or stands farther out from its town (LN_OUT, within LN_FAR of the town's edge) until every road across has the room (Rail.xcount); rline.test checks the room with the roads' own profiles laid. The fix of the loop planner that never ended is taken from #499 as it is; ways.test part ends builds the three regions that never came back. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Uiczds25hPkj1T5izApXNA
This branch has not been deployed
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
Anton pointed out (2026-12-02, on a tiny town drowned in asphalt) that towns had more roads than cars and far too many streets for their size, and asked to take small towns with orderly streets as the model. Towns of new worlds (GENV gw 78,
WVS_GWin34_weave.js) are now measured against real small towns:Street spacing by tradition (
WV_DSK): streets about two rows of lots apart, so a block is no longer one house between two streets; the field turns over a shorter run (WV_NFK) so the fewer, longer streets still wind.Width hierarchy (
Street.set, gw ≥WVS_GW): main street two lanes with narrow sidewalks, streets with narrow sidewalks, the lanes of grown cores (burg, medina, strip, loops, ribbon) one carriageway without sidewalks.A house on a street (
Weave.front, chamfer distance): the ring fill ofSettle.planputs a lot only where its middle lies withinWV_FRONTof a street; the inside of a block is gardens and yards.Roads reach the streets (coordinator, from the residents thread: on seed 20261129, 13 of 31 roads ended 130-544 cells short and
Urban.gatefound no street). The greedy walk ofart, pulled to the road end, could wander off and stop at the edge of the town. A road in is now the least-cost path over the land from where it meets the town to the core (Dijkstra on a 16-cell grid, 16 headings, cost = length × (1 + height off the town level), water dear; Galin et al. 2010, Beneš et al. 2014), smoothed (Chaikin) and joined to the first street it meets.Market squares (
sqinWeave.grow): the lens of a market street is 19-28 × 8-11 m (it was 5-8 m across) and a medina's or link town's disc a little larger, so a market fits once the wide walks along every street are gone;Fest.sitesamples a stall's footprint every half cell (a one-cell hole between samples put a stall over grass).Ice-cream van (
79_icevan.jsgate): a street cut into short pieces by car park entrances still has kerb stops (only real junctions keep the 6-cell distance); 43/46 → 46/46 towns.Railway planning that ends (
Rail.make,35_track.js; found while moving this PR onto main, where it hangs too since gw 71): when the grade could not reach the last town of a loop, the town was left out and the stale plan was asked again for ever, so the world of seed 5150 (a town by the sea in the desert) never came, nor did seed 260429754 in a forest (Terr.at(-2160, -2736)). Every plan now costs the loop a town or, for a town alone, one of the four sides its loop may turn to; with every town left out there is no line.Street.settakes the generator version again (the argument was dropped with the old-version code in Build 468: generator version floor (gw 60), old worlds asked once to rebuild; lot trees keep their places #466).Not changed: a town on a narrow ridge (Königsstadt, seed 20261129) still has only a few houses; that is the next phase (towns shaped by their land: terraces, grade-limited streets).
Tests
tools/weave.test.mjs7-10 (new): asphalt share, houses on streets, street graphs inside the ranges of real cities of the same tradition (tools/weave.real.mjs: Boeing 2019 Table 1, 100 cities), every road in ends on a street.GW=77 node tools/weave.test.mjsshows the old generator failing them (30.8 % asphalt, 682 of 5778 buildings off the streets, 24 roads short).tools/fest.test.mjs: the van in ≥ 95 % of towns (was 90 %).tools/fair.test.mjscaught the smaller squares (36 of 46 towns with a fair, now 39) and the stall on grass.tools/rail.mjs test(new check, failed before the fix on seed 5150 regions 0,0 and 0,1 and on seed 260429754 region -1,-1): the plans of a loop are counted, at most one per town plus the four sides of the last one.weave.test(5) now knows the size of a network (phiFloorintools/weave.lib.mjs): the entropy of n bearings in 18 bins falls short by (18 − 1) / 2n (Miller 1955), so 23 random straight streets already show φ ≈ 0.35. The limit is that floor plus the old margin: 0.35 at the 35 streets a medina had before, 0.45 at 23.tools/cone.test.mjs(the same 6 ceilings),tools/city.mjs test(P.gwis gone since the old-version code was dropped),tools/streets.test.mjs("cars drive on the left" 1.30 %).tools/xing.test.mjsnever ends on main (seed 5150, the railway loop above). With the fix it ends and fails two ceilings that this PR does not move (the same numbers on main with only the railway fix): 4242 lost 2 > 1 and 5150 clash 95 > 5.LIMis not touched here. The railway fix alone, for a hotfix, isgit diff main -- src/game/35_track.js tools/rail.mjs tools/roads.mjs.docs/ARCHITECTURE.md: "Towns to the measure of real small towns".Sources
Screenshots: in the release of this build (
tools/shots/487.mjs, the queue renames it to the build number) and below.https://claude.ai/code/session_01Uiczdt14xCS9pvwcYytzRr
Generated by Claude Code