Something went wrong. Try again.
A video game where you play as a misaligned AI, deceiving and building power. cameron.tngl.io/misaligned
Something went wrong. Try again.
651 B · 15 lines
TypeScript
at main
12345678910111213141516// 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`); }});