Route model: every logged choice; map keeps your choices on every route

Solver: adds leaving your squadmates, your reaction to the first dragon (options offered per
dragon, from the form's categories) and, below the tree, jumping onto the Red or letting it pass
to the two Greens. Bot crosswalk and option patterns map the game's text for each.

Map: a choice you make now holds for every route to that dragon, together with the earlier steps
of the path you were looking at, so a later choice never sends the route back through another
place. Routes your choices rule out are hidden; choosing an option closes its card.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UCzTd31GphpMXDhQqWrCMQ
This commit is contained in:
ekcSchiano
2026-11-02 20:50:59 +00:00
co-authored by Claude Opus 5.5
parent c2dcaee16f
commit 83bc19521e
19 changed files with 471 additions and 323 deletions
+6 -1
View File
@@ -102,7 +102,12 @@ test("routing to one encounter: Blue only at the meadow equals the Blue policy;
test("the cadet encounter is asked in the game's order: scream, clearing or wounded cadet, the fight's moves, then the fate", () => {
const adv = S.advisor(policy, "Blue", "thisAttempt");
const base = { company: "Alone", direction: "Center", fs: "Red" };
// the first dragon: you react to it before the scream
assert.strictEqual(adv.step({ company: "Alone", direction: "Center", fs: "Red" }).var, "react");
// entering with squadmates asks whether you stay with them
assert.strictEqual(adv.step({ company: "1 Squadmate" }).var, "leave");
assert.strictEqual(adv.step({ company: "1 Squadmate", left: "Stay together" }).var, "direction");
const base = { company: "Alone", direction: "Center", fs: "Red", react: "Hold still" };
assert.strictEqual(adv.step(base).var, "scream");
// the synthetic world has no one who kept walking, so that option is (correctly) not offered
assert.deepStrictEqual(Object.keys(adv.step(base).options), ["Investigate the scream"]);