Route planner: the solver's options and odds drawn on the valley map

- New "Route Planner" tab: pick a dragon colour, a goal (only this dragon /
  best odds this run) and a data sample. The solver runs in the browser from
  policy.json and walks the valley: every decision shows each option's
  chance of bonding the colour (with the best play afterwards) and of
  reaching an encounter alive; every roll shows its probabilities; deaths
  show where they happen; "stays best in N% of re-runs" and "no clear
  winner" flag noisy recommendations. Click any option on the map or in the
  list to explore another branch.
- solver.js: values now carry P(reaching an encounter alive); advisor.step()
  gives the planner the next decision, roll or outcome at any history.
- valley.js shares its painting with the planner.
- Fix: route-map target chips no longer capture clicks on other chip rows.
- Pages build gets a doctype and charset.

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-01 22:50:23 +00:00
co-authored by Claude Opus 5.5
parent d2ffb84b5e
commit bdf66afabc
7 changed files with 435 additions and 12 deletions
+1 -1
View File
@@ -26,7 +26,7 @@
function rng(seed) { let s = seed >>> 0; return () => ((s = (s * 1664525 + 1013904223) >>> 0) / 4294967296); }
// ------------------------------------------------------------ tabs
const TABS = ["overview", "valley", "flow", "rare", "dragons", "deep", "share"];
const TABS = ["overview", "planner", "valley", "flow", "rare", "dragons", "deep", "share"];
function showTab(name, focus) {
if (!TABS.includes(name)) name = "overview";
TABS.forEach((t) => {