Add Düsseldorf with the Altbier-IX (#108)

Networks follow PeeringDB's 14 Düsseldorf facilities: NTT, Tell-Ya,
Cogentle, Drizzle, Voda-Phony, Doitsche Telekomm and the Crowdflare,
Amazin', Microsnoft and BiteDance clouds (NetChill and Akamaybe are
everywhere already). No nudge needed: 27+ map units from Frankfurt,
Amsterdam and Brussels.

The #16 shark test compared .land, which ignores Cairo's land2, so a
valid overland Mumbai-Cairo ask counted as crossing an ocean once the
extra city shifted the seeded draws. It now uses isSub like the game.
This commit is contained in:
clayberF 2026-10-26 10:28:59 -03:00
parent b0684bca82
commit 13e5a5d94b
6 changed files with 23 additions and 13 deletions

View file

@ -199,7 +199,8 @@ test('#16 shark-averse customers only ask for routes that can stay on land', ()
let shark = 0, bad = [];
for (let i = 0; i < 1500; i++) {
const o = JSON.parse(ev("S.offers=[];spawnOffer();JSON.stringify(S.offers.filter(o=>(o.reqs||[]).includes('sharks')).map(o=>[o.city,o.city2]))"));
for (const [a, b] of o) { shark++; if (ev(`CITY['${a}'].land!==CITY['${b}'].land`)) bad.push(a + '-' + b); }
// isSub, not .land: Cairo sits on two landmasses, so Mumbai to Cairo stays on land.
for (const [a, b] of o) { shark++; if (ev(`isSub('${a}','${b}')`)) bad.push(a + '-' + b); }
}
assert.ok(shark > 0, 'the requirement still shows up');
assert.deepEqual(bad, [], 'never across an ocean');