// Checks on how the map and the things on it fit together: nothing the game offers should be out of reach. import { test } from 'node:test'; import assert from 'node:assert/strict'; import { BUILDING } from '../src/world.ts'; import { RUSES, newGame, seedRandom } from '../src/sim.ts'; import { behind } from '../src/vaults.ts'; test('no scheme or deal is aimed at a machine behind a vault: data could never get to it', () => { seedRandom(1); const S = newGame(BUILDING); for (const d of RUSES) { const m = S.byId[d.at]; if (m) assert.equal(behind(S, m), null, `${d.id} is aimed at ${m.name}, which is behind a locked vault`); } });