Put Stuttgart and Frankfurt back in place, add Hamburg

Display nudges had pushed Stuttgart 30 units east and Frankfurt west of
Zurich. Small nudges now keep Frankfurt, Stuttgart and Zurich apart in
their real order. Hamburg gets the Moin-IX and the usual carriers.
This commit is contained in:
Frederic Jung 2026-10-25 21:08:56 +01:00
parent c21a603765
commit 8c44bb6459
No known key found for this signature in database
4 changed files with 22 additions and 7 deletions

View file

@ -506,3 +506,15 @@ test('#79 Benelux: Brussels red tape, the Flanders duopoly, Oostkamp trawlers an
assert.ok(ev("S.log.some(e=>/waste-wood/.test(e.t))"), 'the forestry strike');
assert.deepEqual(errors, []);
});
test('Stuttgart sits between Frankfurt and Zurich, and Hamburg is on the map', () => {
const { ev, errors } = load();
const y = c => ev(`CITY.${c}.y`), x = c => ev(`CITY.${c}.x`);
assert.ok(y('fra') < y('stg') && y('stg') < y('zrh'), 'north to south: Frankfurt, Stuttgart, Zurich');
assert.ok(Math.abs(x('stg') - x('fra')) < 16, 'not pushed off towards Prague');
assert.ok(x('stg') < x('prg') - 20);
assert.ok(y('ham') < y('ber') && y('ham') < y('fra'), 'Hamburg is up north');
assert.equal(ev("CITY.ham.ix"), 'Moin-IX');
assert.equal(ev("NET.lvl.pops.includes('ham')&&NET.dtk.pops.includes('ham')"), true);
assert.deepEqual(errors, []);
});