ASP-2: Hints that win: prove in clingo a player following the hints can finish the hunt
Size: D · Needs first: — · Done when: for each adventure khel's batch tools generate, clingo either shows a run where following the hints alone ends in the goal, or names the moment where the hints leave the player stuck
Parked 2026-11-14: an idea to come back to, not today's work.
Next step
Model one built adventure (The repeater's ID or The evening report) as a small state machine in clingo: the player's position and what they've heard as fluents, the moves a player can make (drive, stop, take a bearing, ask the lookout) as actions, and "follow the hint" as the only choice. Ask clingo for a plan that reaches the goal within N steps. Then break the adventure on purpose (drop one hint) and check clingo finds the stuck moment.
Parts
Software only; nothing to buy.
- ☐ clingo (in khel's dev shell)
- ☐ khel's adventure format:
levels/adventures/*.jsonandrules/adventures/*.pl
Ideas (2026-11-14)
khel's tools/story_batch.py already checks every generated adventure with clingo, and the
checks are good at form and coverage: valid JSON, ASP that parses, real worlds and foxes, a
goal that's possible, rules that only use the game's facts, and something said at the start
and whenever a fox is heard without a bearing. None of them asks whether the advice
actually helps. An adventure can pass every check and still send the player in circles.
Solvability is the stronger check: plan over the game's moves with the hint rules as the player's only guide, and see whether the goal is reachable.
- Reachable: a witness run, step by step, which doubles as a walkthrough and a test.
- Not reachable: the first state where no hint applies or every hint leads away; that is exactly what a writer (or a model) needs to fix.
- The event cards' "fair" field is checked today only by length. The same planner could check fairness for real: the clues the player can hear are enough to identify the answer.
Open questions: how much of the game's physics the plan needs (distances as grid steps, a
bearing as a sector?), and whether #minimize over steps gives "the hints are efficient"
as a bonus measure.
Builds on ASP-1's bearing fix in clingo, but doesn't need it first.