Puzzles: show one trench or separate paths on the map in every puzzle

Two tubes between the same cities read as one line until clicked (reported by
Thomas Kjær). Every puzzle now draws a shared trench as a bundle with a '2× one
trench' tag and separate paths bowed apart with a '2 paths' tag, at any zoom.
This commit is contained in:
Frederic Jung 2026-10-30 13:15:38 +01:00
parent dbc801169c
commit 7672db1992
No known key found for this signature in database
4 changed files with 15 additions and 4 deletions

View file

@ -545,3 +545,12 @@ test('each pack\'s idea is needed: three stars without it fail, and the one-star
}
assert.deepEqual(errors, []);
});
test('every puzzle tells two tubes in one trench from two separate paths, zoomed out too', () => {
const { ev, errors } = load();
ev("ACT.pzStart({id:'eurotrip'});closeModal()");
build(ev, [['ams', 'fra', 'land', 1], ['ams', 'fra', 'land', 1, 1], ['ams', 'lon', 'nshuttle', 1], ['ams', 'lon', 'concerto', 1]]);
ev("cam.z=0.6;drawFrame(performance.now())");
assert.deepEqual(JSON.parse(ev("JSON.stringify(AR_PILLS.map(p=>p[2]).sort())")), ['2× one trench', '✓ 2 paths']);
assert.deepEqual(errors, []);
});