Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7b0a01efb0 | ||
|
|
fefc163e09 | ||
|
|
cd79dc8c5a | ||
|
|
c943f5a289 |
+14
-14
@@ -7,12 +7,12 @@ Written by `analysis/black/evidence.py` from `data/public/runs_clean.csv`. Count
|
|||||||
| Attempt | Form submissions | Bulk logs | Bot |
|
| Attempt | Form submissions | Bulk logs | Bot |
|
||||||
|---|---|---|---|
|
|---|---|---|---|
|
||||||
| 1 | 97 / 960 (10.1%) | 0 / 29 (0.0%) | 0 / 0 |
|
| 1 | 97 / 960 (10.1%) | 0 / 29 (0.0%) | 0 / 0 |
|
||||||
| 2 | 0 / 296 (0.0%) | 0 / 21 (0.0%) | 0 / 4 (0.0%) |
|
| 2 | 0 / 299 (0.0%) | 0 / 21 (0.0%) | 0 / 4 (0.0%) |
|
||||||
| 3 | 0 / 193 (0.0%) | 0 / 14 (0.0%) | 0 / 5 (0.0%) |
|
| 3 | 0 / 196 (0.0%) | 0 / 14 (0.0%) | 0 / 5 (0.0%) |
|
||||||
| 4-10 | 0 / 538 (0.0%) | 0 / 102 (0.0%) | 0 / 36 (0.0%) |
|
| 4-10 | 0 / 555 (0.0%) | 0 / 102 (0.0%) | 0 / 36 (0.0%) |
|
||||||
| 11-30 | 0 / 627 (0.0%) | 0 / 57 (0.0%) | 0 / 137 (0.0%) |
|
| 11-30 | 0 / 657 (0.0%) | 0 / 57 (0.0%) | 0 / 137 (0.0%) |
|
||||||
| 31 or more | 0 / 694 (0.0%) | 0 / 0 | 0 / 333 (0.0%) |
|
| 31 or more | 0 / 715 (0.0%) | 0 / 0 | 0 / 333 (0.0%) |
|
||||||
| not given | 0 / 1581 (0.0%) | 0 / 149 (0.0%) | 0 / 0 |
|
| not given | 0 / 1582 (0.0%) | 0 / 149 (0.0%) | 0 / 0 |
|
||||||
|
|
||||||
Complete logs (bot and bulk) have 29 first attempts at the tree and 709 later ones, with 0 shadows. Zero in 709 later attempts rules out a rate above 0.4% for them; zero in 29 first attempts only rules out more than 10%.
|
Complete logs (bot and bulk) have 29 first attempts at the tree and 709 later ones, with 0 shadows. Zero in 709 later attempts rules out a rate above 0.4% for them; zero in 29 first attempts only rules out more than 10%.
|
||||||
|
|
||||||
@@ -22,16 +22,16 @@ If the shadow depended only on the choices the form records (company, first dire
|
|||||||
|
|
||||||
| Route | First attempt | Later attempts |
|
| Route | First attempt | Later attempts |
|
||||||
|---|---|---|
|
|---|---|---|
|
||||||
| Alone / West / Assess the situation / Engage the smaller cadet / Squadmate's revenge / West | 23 / 114 (20.2%) | 0 / 94 (0.0%) |
|
| Alone / West / Assess the situation / Engage the smaller cadet / Squadmate's revenge / West | 23 / 114 (20.2%) | 0 / 106 (0.0%) |
|
||||||
| Alone / West / Assess the situation / Engage the smaller cadet / Squadmate's revenge / Forest | 5 / 29 (17.2%) | 0 / 95 (0.0%) |
|
| Alone / West / Assess the situation / Engage the smaller cadet / Squadmate's revenge / Forest | 5 / 29 (17.2%) | 0 / 96 (0.0%) |
|
||||||
| Alone / Center / Assess the situation / Engage the smaller cadet / Squadmate's revenge / Forest | 4 / 29 (13.8%) | 0 / 78 (0.0%) |
|
| Alone / Center / Assess the situation / Engage the smaller cadet / Squadmate's revenge / Forest | 4 / 29 (13.8%) | 0 / 78 (0.0%) |
|
||||||
| 1 Squadmate / East / Assess the situation / Engage the smaller cadet / Squadmate's revenge / East | 2 / 32 (6.2%) | 0 / 67 (0.0%) |
|
| 1 Squadmate / East / Assess the situation / Engage the smaller cadet / Squadmate's revenge / East | 2 / 32 (6.2%) | 0 / 73 (0.0%) |
|
||||||
|
| 2 Squadmates / East / Assess the situation / Engage the smaller cadet / Squadmate's revenge / East | 2 / 45 (4.4%) | 0 / 50 (0.0%) |
|
||||||
| Alone / East / Assess the situation / Engage the smaller cadet / Squadmate's revenge / East | 1 / 34 (2.9%) | 0 / 60 (0.0%) |
|
| Alone / East / Assess the situation / Engage the smaller cadet / Squadmate's revenge / East | 1 / 34 (2.9%) | 0 / 60 (0.0%) |
|
||||||
| 2 Squadmates / East / Assess the situation / Engage the smaller cadet / Squadmate's revenge / East | 2 / 45 (4.4%) | 0 / 48 (0.0%) |
|
|
||||||
| Alone / Center / Assess the situation / Daggers or not (protect squadmate) / Left bullies to the dragons / Forest | 1 / 28 (3.6%) | 0 / 64 (0.0%) |
|
| Alone / Center / Assess the situation / Daggers or not (protect squadmate) / Left bullies to the dragons / Forest | 1 / 28 (3.6%) | 0 / 64 (0.0%) |
|
||||||
| Alone / Center / Assess the situation / Engage the smaller cadet / Squadmate's revenge / West | 2 / 9 (22.2%) | 0 / 81 (0.0%) |
|
| Alone / Center / Assess the situation / Engage the smaller cadet / Squadmate's revenge / West | 2 / 9 (22.2%) | 0 / 81 (0.0%) |
|
||||||
|
|
||||||
Across all 325 recorded routes, comparing first and later attempts on the same route: 93 first-attempt shadows where 39.9 would be expected if the attempt did not matter (odds ratio inf, z = 12.3). First and later attempts choose almost the same routes, so the difference is not in the recorded choices: it is something about the account, or a choice the form does not record.
|
Across all 326 recorded routes, comparing first and later attempts on the same route: 93 first-attempt shadows where 38.8 would be expected if the attempt did not matter (odds ratio inf, z = 12.5). First and later attempts choose almost the same routes, so the difference is not in the recorded choices: it is something about the account, or a choice the form does not record.
|
||||||
|
|
||||||
## 3. On one route, is the shadow decided by the cadet's wing, section and squad?
|
## 3. On one route, is the shadow decided by the cadet's wing, section and squad?
|
||||||
|
|
||||||
@@ -56,14 +56,14 @@ The 97 form runs with a shadow (all attempts) took 47 different recorded routes:
|
|||||||
- **The bullies' fate:** Squadmate's revenge 61, Left bullies to the dragons 25, Killed the bullies yourself 9, Unknown 2
|
- **The bullies' fate:** Squadmate's revenge 61, Left bullies to the dragons 25, Killed the bullies yourself 9, Unknown 2
|
||||||
- **The fork:** West 46, Forest 36, East 14, Unknown 1
|
- **The fork:** West 46, Forest 36, East 14, Unknown 1
|
||||||
|
|
||||||
Shadows reported without both gates: 3 (likely mis-entered).
|
Shadows reported without both gates: 17 (likely mis-entered).
|
||||||
|
|
||||||
## 5. After the shadow: the Blue, then the Black
|
## 5. After the shadow: the Blue, then the Black
|
||||||
|
|
||||||
The riders' notes describe one sequence: follow the shadow, a Blue lands and burns another cadet, the Blue leaves, then the Black appears. The Blue is a trial on the way, not an alternative to the Black.
|
The riders' notes describe one sequence: follow the shadow, a Blue lands and burns another cadet, the Blue leaves, then the Black appears. The Blue is a trial on the way, not an alternative to the Black.
|
||||||
|
|
||||||
- Runs that reached the Black: 79, bonded 57.
|
- Runs that reached the Black: 89, bonded 65.
|
||||||
- Runs that died at the Blue: 16. What their notes say they did: approached the Blue 11, warned the other cadet / intervened 4.
|
- Runs that died at the Blue: 19. What their notes say they did: approached the Blue 11, warned the other cadet / intervened 4.
|
||||||
- The answer given to the Black, where the note says (bonded / runs): held its gaze 29/41; lowered eyes 0/7; ignored the sound 0/1.
|
- The answer given to the Black, where the note says (bonded / runs): held its gaze 29/41; lowered eyes 0/7; ignored the sound 0/1.
|
||||||
|
|
||||||
Holding its gaze is the only answer recorded with a bond, and it still fails about a quarter of the time. The developer says a rider who knows the system bonds with certainty, so those failures are not explained yet: the notes of the riders who died are too short to show what else they did differently.
|
Holding its gaze is the only answer recorded with a bond, and it still fails about a quarter of the time. The developer says a rider who knows the system bonds with certainty, so those failures are not explained yet: the notes of the riders who died are too short to show what else they did differently.
|
||||||
|
|||||||
+12
-12
@@ -93,8 +93,8 @@
|
|||||||
"description": "Every run from every source, one per row, coded into the same columns (collection/etl/runs.py; the form's rules are core/spec/form.yaml). The `source` column says where each run came from.",
|
"description": "Every run from every source, one per row, coded into the same columns (collection/etl/runs.py; the form's rules are core/spec/form.yaml). The `source` column says where each run came from.",
|
||||||
"contentUrl": "https://git.kenschiano.net/DragonKind/threshing-atlas/raw/branch/main/data/public/runs_clean.csv",
|
"contentUrl": "https://git.kenschiano.net/DragonKind/threshing-atlas/raw/branch/main/data/public/runs_clean.csv",
|
||||||
"encodingFormat": "text/csv",
|
"encodingFormat": "text/csv",
|
||||||
"sha256": "ce944619f3a8ca03e67e05438a630d632d6dbe10c13e557e9fcc2fa897cdc932",
|
"sha256": "c4bdba6736380ed0f066ffaffe0d40adeb8eee034fbb170bc31062b982872c28",
|
||||||
"contentSize": "3685124 B"
|
"contentSize": "3747530 B"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"@type": "cr:FileObject",
|
"@type": "cr:FileObject",
|
||||||
@@ -103,8 +103,8 @@
|
|||||||
"description": "The community \"Threshing Routes\" form export as published (headers and rows), with email addresses in free-text answers redacted. The source of runs_clean.",
|
"description": "The community \"Threshing Routes\" form export as published (headers and rows), with email addresses in free-text answers redacted. The source of runs_clean.",
|
||||||
"contentUrl": "https://git.kenschiano.net/DragonKind/threshing-atlas/raw/branch/main/data/public/form_responses.json",
|
"contentUrl": "https://git.kenschiano.net/DragonKind/threshing-atlas/raw/branch/main/data/public/form_responses.json",
|
||||||
"encodingFormat": "application/json",
|
"encodingFormat": "application/json",
|
||||||
"sha256": "3a3322da84274416880d87a400b06e44e0ed97feaf93df839b5269bdaa1badad",
|
"sha256": "8067ac944db2833e6a1203dc6464ed208d60dea4e617ee9b28fc56f285445d2e",
|
||||||
"contentSize": "12640700 B"
|
"contentSize": "12786245 B"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"@type": "cr:FileObject",
|
"@type": "cr:FileObject",
|
||||||
@@ -113,8 +113,8 @@
|
|||||||
"description": "Runs described in the r/fourthwing megathread comments, read into the \"Report a run\" answers: comment id, day and answers only, no usernames or comment text.",
|
"description": "Runs described in the r/fourthwing megathread comments, read into the \"Report a run\" answers: comment id, day and answers only, no usernames or comment text.",
|
||||||
"contentUrl": "https://git.kenschiano.net/DragonKind/threshing-atlas/raw/branch/main/data/public/reddit_comments.json",
|
"contentUrl": "https://git.kenschiano.net/DragonKind/threshing-atlas/raw/branch/main/data/public/reddit_comments.json",
|
||||||
"encodingFormat": "application/json",
|
"encodingFormat": "application/json",
|
||||||
"sha256": "c180f8b82ed1119d4ff28697fcf45d0c7f22859597cd10f5e82a2e50ca1dc51a",
|
"sha256": "b169d157e731db23c99f2f8317a9718d31801b7d64336b3d414511ac13f32493",
|
||||||
"contentSize": "105 B"
|
"contentSize": "23174 B"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"@type": "cr:FileObject",
|
"@type": "cr:FileObject",
|
||||||
@@ -143,8 +143,8 @@
|
|||||||
"description": "Every number the Atlas page shows, for six filter presets (analysis/stats/site_stats.py; what is measured is analysis/stats/measures.yaml).",
|
"description": "Every number the Atlas page shows, for six filter presets (analysis/stats/site_stats.py; what is measured is analysis/stats/measures.yaml).",
|
||||||
"contentUrl": "https://git.kenschiano.net/DragonKind/threshing-atlas/raw/branch/main/data/public/stats.json",
|
"contentUrl": "https://git.kenschiano.net/DragonKind/threshing-atlas/raw/branch/main/data/public/stats.json",
|
||||||
"encodingFormat": "application/json",
|
"encodingFormat": "application/json",
|
||||||
"sha256": "d2a551e785c8593b442d95338a99ea0710ed7df2cd6c6f3ef341bddff1f3689e",
|
"sha256": "bb401225065ae17311bbd02fd63acd4010f4e325d7eab74e044115b98d04bec4",
|
||||||
"contentSize": "5475502 B"
|
"contentSize": "5498476 B"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"@type": "cr:FileObject",
|
"@type": "cr:FileObject",
|
||||||
@@ -153,8 +153,8 @@
|
|||||||
"description": "The route model: the game (core/spec/game.yaml), the count tables behind every roll, and the best decision tree for every dragon colour under two goals, with posterior intervals (planner/build_policy.py).",
|
"description": "The route model: the game (core/spec/game.yaml), the count tables behind every roll, and the best decision tree for every dragon colour under two goals, with posterior intervals (planner/build_policy.py).",
|
||||||
"contentUrl": "https://git.kenschiano.net/DragonKind/threshing-atlas/raw/branch/main/data/public/policy.json",
|
"contentUrl": "https://git.kenschiano.net/DragonKind/threshing-atlas/raw/branch/main/data/public/policy.json",
|
||||||
"encodingFormat": "application/json",
|
"encodingFormat": "application/json",
|
||||||
"sha256": "ef607b9a7fbc7f7d0e647f988fbac94a1685109a78218ce8c6f0ada3e62e2ee4",
|
"sha256": "7af3f5ec0c23fc3067979b03bb030a1ecbbfb88ed2b41cc49d5995e246f3b611",
|
||||||
"contentSize": "986552 B"
|
"contentSize": "987412 B"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"@type": "cr:FileObject",
|
"@type": "cr:FileObject",
|
||||||
@@ -163,8 +163,8 @@
|
|||||||
"description": "The route graph over every run in runs_clean.csv, counted per source (analysis/network/build-graph.js).",
|
"description": "The route graph over every run in runs_clean.csv, counted per source (analysis/network/build-graph.js).",
|
||||||
"contentUrl": "https://git.kenschiano.net/DragonKind/threshing-atlas/raw/branch/main/data/public/graph.json",
|
"contentUrl": "https://git.kenschiano.net/DragonKind/threshing-atlas/raw/branch/main/data/public/graph.json",
|
||||||
"encodingFormat": "application/json",
|
"encodingFormat": "application/json",
|
||||||
"sha256": "112895b711ade4e0aad8e4b7a61dea5db00f4734e484bc20198740e924c14974",
|
"sha256": "f9d1a86f84fcc10ef906af686ce624355ffd729440460288406ba97177ff05da",
|
||||||
"contentSize": "75580 B"
|
"contentSize": "84575 B"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"recordSet": [
|
"recordSet": [
|
||||||
|
|||||||
+5
-5
@@ -10,18 +10,18 @@
|
|||||||
"changed": "2026-11-16"
|
"changed": "2026-11-16"
|
||||||
},
|
},
|
||||||
"reddit_spreadsheet": {
|
"reddit_spreadsheet": {
|
||||||
"sha256": "ca06bbb6914483214801b54b58ed08039c21dc858c59347456ea473b1417fbb4",
|
"sha256": "44eeece5fd75fb27f0c7bdf2729d812ba710f4bfba30dfd5dbee51a7888b8270",
|
||||||
"bytes": 5941127,
|
"bytes": 5994979,
|
||||||
"changed": "2026-11-19"
|
"changed": "2026-11-19"
|
||||||
},
|
},
|
||||||
"register": {
|
"register": {
|
||||||
"sha256": "d6e5085f73adbf047163578c150dd034e2387fe37bd91030b36592df46147261",
|
"sha256": "6efdf107fce4d7b5a48de3d683762b7236a6049c875145bf4aa1608c90f9ae8f",
|
||||||
"bytes": 51331,
|
"bytes": 51331,
|
||||||
"changed": "2026-11-19"
|
"changed": "2026-11-19"
|
||||||
},
|
},
|
||||||
"reported": {
|
"reported": {
|
||||||
"sha256": "8c8721b9c698e155c406da97fb69dda1729a9546290773dc0a044b1cd7eae628",
|
"sha256": "4c62d2e726e7c967d03a6c85d3bb3e09384656b7ffd9ea629d13400fdc37b211",
|
||||||
"bytes": 27492,
|
"bytes": 28296,
|
||||||
"changed": "2026-11-19"
|
"changed": "2026-11-19"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+14
-14
@@ -8,23 +8,23 @@
|
|||||||
],
|
],
|
||||||
"2": [
|
"2": [
|
||||||
0,
|
0,
|
||||||
296
|
299
|
||||||
],
|
],
|
||||||
"3": [
|
"3": [
|
||||||
0,
|
0,
|
||||||
193
|
196
|
||||||
],
|
],
|
||||||
"4-10": [
|
"4-10": [
|
||||||
0,
|
0,
|
||||||
538
|
555
|
||||||
],
|
],
|
||||||
"11-30": [
|
"11-30": [
|
||||||
0,
|
0,
|
||||||
627
|
657
|
||||||
],
|
],
|
||||||
"31 or more": [
|
"31 or more": [
|
||||||
0,
|
0,
|
||||||
694
|
715
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"bulk logs": {
|
"bulk logs": {
|
||||||
@@ -81,11 +81,11 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"same_route": {
|
"same_route": {
|
||||||
"routes": 325,
|
"routes": 326,
|
||||||
"first_shadows": 93,
|
"first_shadows": 93,
|
||||||
"expected": 39.9,
|
"expected": 38.8,
|
||||||
"odds_ratio": Infinity,
|
"odds_ratio": Infinity,
|
||||||
"z": 12.3
|
"z": 12.5
|
||||||
},
|
},
|
||||||
"form_first": [
|
"form_first": [
|
||||||
97,
|
97,
|
||||||
@@ -93,7 +93,7 @@
|
|||||||
],
|
],
|
||||||
"form_later": [
|
"form_later": [
|
||||||
0,
|
0,
|
||||||
2348
|
2422
|
||||||
],
|
],
|
||||||
"best_route": {
|
"best_route": {
|
||||||
"route": [
|
"route": [
|
||||||
@@ -110,18 +110,18 @@
|
|||||||
],
|
],
|
||||||
"later": [
|
"later": [
|
||||||
0,
|
0,
|
||||||
94
|
106
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"shadow_routes": {
|
"shadow_routes": {
|
||||||
"runs": 97,
|
"runs": 97,
|
||||||
"routes": 47,
|
"routes": 47,
|
||||||
"off_gate": 3
|
"off_gate": 17
|
||||||
},
|
},
|
||||||
"after_shadow": {
|
"after_shadow": {
|
||||||
"reached_black": 79,
|
"reached_black": 89,
|
||||||
"bonded_black": 57,
|
"bonded_black": 65,
|
||||||
"died_at_blue": 16,
|
"died_at_blue": 19,
|
||||||
"answers": {
|
"answers": {
|
||||||
"held its gaze": [
|
"held its gaze": [
|
||||||
29,
|
29,
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,737 @@
|
|||||||
|
{
|
||||||
|
"_about": "The answers inside each bonding encounter, transcribed by hand from the community route PDF (see source). Data, not the flowchart: each option's answer (say), the guide's printed rate (pct), whether it is on the guide's recommended dark-tile path (best), whether the guide marks it untested or unconfirmed (unconfirmed), and what follows (then) or how it ends (end); roll marks a step the guide calls an unknown chance or decision. route_encounters: which encounters each bonding encounter of the route model shows. Edit this file when the PDF changes (the daily check opens a pull request on the bot's repo when it does).",
|
||||||
|
"version": 1,
|
||||||
|
"source": {
|
||||||
|
"title": "Threshing Options (community route PDF)",
|
||||||
|
"authors": [
|
||||||
|
"u/ClumsyBadger",
|
||||||
|
"u/Old_Regular3018",
|
||||||
|
"u/Smart_Trifle_2099"
|
||||||
|
],
|
||||||
|
"version": "2026-11-16",
|
||||||
|
"link": "https://drive.google.com/file/d/17o72ehHsSPW4UdsKF-sXTxMLEuinWeEg/view",
|
||||||
|
"note": "Percentages are the guide's, from documented runs; options off the recommended path often rest on fewer than three records."
|
||||||
|
},
|
||||||
|
"encounters": {
|
||||||
|
"valley-Red": {
|
||||||
|
"title": "The valley Red",
|
||||||
|
"scene": "You're moved by an instinctual feeling that this...",
|
||||||
|
"options": [
|
||||||
|
{
|
||||||
|
"say": "Is your dragon",
|
||||||
|
"best": true,
|
||||||
|
"then": [
|
||||||
|
{
|
||||||
|
"say": "You're sure",
|
||||||
|
"best": true,
|
||||||
|
"then": [
|
||||||
|
{
|
||||||
|
"say": "Continue approach",
|
||||||
|
"best": true,
|
||||||
|
"then": [
|
||||||
|
{
|
||||||
|
"say": "Touch its talon",
|
||||||
|
"best": true,
|
||||||
|
"pct": "93%",
|
||||||
|
"end": "Bonded"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Run to mount its foreleg",
|
||||||
|
"end": "Bonded"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Exit gracefully",
|
||||||
|
"end": "That was close (on to the meadow)"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "On second thought…",
|
||||||
|
"end": "That was close (on to the meadow)"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Is not your dragon, leave",
|
||||||
|
"end": "That was close (on to the meadow)"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"tree-Red": {
|
||||||
|
"title": "The Red below the tree",
|
||||||
|
"scene": "A red dragon prowls ten feet beneath you.",
|
||||||
|
"warning": "The guide gives a 98% chance of dying if you engage this dragon.",
|
||||||
|
"options": [
|
||||||
|
{
|
||||||
|
"say": "Jump on its back, or jump to land by its tail",
|
||||||
|
"then": [
|
||||||
|
{
|
||||||
|
"roll": "Some unknown chance or decision roll"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Hold the Red's gaze",
|
||||||
|
"then": [
|
||||||
|
{
|
||||||
|
"say": "Jump off and hope",
|
||||||
|
"end": "Incinerated"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Drop to your stomach",
|
||||||
|
"then": [
|
||||||
|
{
|
||||||
|
"say": "Hang tight",
|
||||||
|
"end": "Incinerated"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Crawl to the seat",
|
||||||
|
"pct": "2%",
|
||||||
|
"end": "Bonded"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Lower your eyes",
|
||||||
|
"end": "Incinerated"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Wait and pursue the Green",
|
||||||
|
"end": "On to the two Greens"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"tree-Greens": {
|
||||||
|
"title": "The two Greens",
|
||||||
|
"scene": "You enter a clearing with two Green dragons.",
|
||||||
|
"options": [
|
||||||
|
{
|
||||||
|
"say": "Turn to the right dragon",
|
||||||
|
"best": true,
|
||||||
|
"then": [
|
||||||
|
{
|
||||||
|
"say": "Glance to the left dragon",
|
||||||
|
"end": "Incinerated"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Don't move a muscle",
|
||||||
|
"best": true,
|
||||||
|
"then": [
|
||||||
|
{
|
||||||
|
"say": "Stay still",
|
||||||
|
"best": true,
|
||||||
|
"then": [
|
||||||
|
{
|
||||||
|
"say": "Decapitation isn't scary",
|
||||||
|
"best": true,
|
||||||
|
"then": [
|
||||||
|
{
|
||||||
|
"say": "You respect their nature",
|
||||||
|
"best": true,
|
||||||
|
"end": "Bonded (Right Green)"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "You don't know",
|
||||||
|
"end": "Incinerated"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Greens have the best magic",
|
||||||
|
"best": true,
|
||||||
|
"end": "Bonded (Left Green)"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Intellect match",
|
||||||
|
"best": true,
|
||||||
|
"end": "A Brown saves you: Bonded (Brown)"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Sidestep out of its mouth",
|
||||||
|
"end": "Incinerated"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Sidestep out of its mouth",
|
||||||
|
"end": "Incinerated"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Turn to the left dragon",
|
||||||
|
"best": true,
|
||||||
|
"then": [
|
||||||
|
{
|
||||||
|
"say": "Glance to the right dragon",
|
||||||
|
"end": "Incinerated"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Don't move a muscle",
|
||||||
|
"best": true,
|
||||||
|
"then": [
|
||||||
|
{
|
||||||
|
"say": "Hold your ground",
|
||||||
|
"best": true,
|
||||||
|
"then": [
|
||||||
|
{
|
||||||
|
"say": "You always overextend",
|
||||||
|
"best": true,
|
||||||
|
"end": "Bonded (Right Green)"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "You lack flaws",
|
||||||
|
"end": "Incinerated"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "You struggle with temper",
|
||||||
|
"best": true,
|
||||||
|
"end": "Bonded (Left Green)"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "You're always right",
|
||||||
|
"best": true,
|
||||||
|
"end": "An Orange saves you: Bonded (Orange)"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Step back",
|
||||||
|
"end": "Incinerated"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Stay neutral",
|
||||||
|
"end": "Incinerated"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"meadow-Orange": {
|
||||||
|
"title": "The meadow Orange",
|
||||||
|
"scene": "You approach the Orange dragon.",
|
||||||
|
"options": [
|
||||||
|
{
|
||||||
|
"say": "Absolutely sure, Orange",
|
||||||
|
"best": true,
|
||||||
|
"pct": "90%",
|
||||||
|
"then": [
|
||||||
|
{
|
||||||
|
"say": "Roar right back at it",
|
||||||
|
"best": true,
|
||||||
|
"pct": "69%",
|
||||||
|
"then": [
|
||||||
|
{
|
||||||
|
"say": "Flee",
|
||||||
|
"end": "Incinerated"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Attempt to mount",
|
||||||
|
"best": true,
|
||||||
|
"end": "Bonded"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"roll": "Possibly an unknown decision or chance mechanic (20%)"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Hit the ground",
|
||||||
|
"best": true,
|
||||||
|
"then": [
|
||||||
|
{
|
||||||
|
"say": "Run to mount its foreleg",
|
||||||
|
"best": true,
|
||||||
|
"end": "Bonded"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Look it in the eye",
|
||||||
|
"then": [
|
||||||
|
{
|
||||||
|
"say": "Run to mount",
|
||||||
|
"end": "Bonded"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Maintain eye contact",
|
||||||
|
"end": "Incinerated"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Run at the claw",
|
||||||
|
"then": [
|
||||||
|
{
|
||||||
|
"say": "Hold tight for balance",
|
||||||
|
"end": "Incinerated"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Climb with strength",
|
||||||
|
"end": "Bonded"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Run, this was a mistake",
|
||||||
|
"end": "Incinerated"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "On second thought…",
|
||||||
|
"pct": "10%",
|
||||||
|
"end": "Incinerated"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"meadow-Brown": {
|
||||||
|
"title": "The meadow Brown",
|
||||||
|
"scene": "You approach the Brown dragon.",
|
||||||
|
"options": [
|
||||||
|
{
|
||||||
|
"say": "Run after the Brown",
|
||||||
|
"best": true,
|
||||||
|
"then": [
|
||||||
|
{
|
||||||
|
"say": "On second thought…",
|
||||||
|
"end": "Incinerated"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Your heart is sure",
|
||||||
|
"best": true,
|
||||||
|
"then": [
|
||||||
|
{
|
||||||
|
"say": "Shout at it to stop",
|
||||||
|
"pct": "50%",
|
||||||
|
"then": [
|
||||||
|
{
|
||||||
|
"say": "Apologise immediately",
|
||||||
|
"pct": "50%",
|
||||||
|
"end": "Incinerated"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Await judgment, or pray",
|
||||||
|
"pct": "90%",
|
||||||
|
"then": [
|
||||||
|
{
|
||||||
|
"say": "Mud fight!",
|
||||||
|
"then": [
|
||||||
|
{
|
||||||
|
"say": "Wipe off the mud",
|
||||||
|
"pct": "90%",
|
||||||
|
"then": [
|
||||||
|
{
|
||||||
|
"say": "The dragon speaks",
|
||||||
|
"then": [
|
||||||
|
{
|
||||||
|
"say": "Defend the kingdom",
|
||||||
|
"end": "Death 50/50"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Defend the powerless",
|
||||||
|
"end": "Bonded"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Seek revenge",
|
||||||
|
"end": "Incinerated"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Throw mud at the dragon",
|
||||||
|
"pct": "60%",
|
||||||
|
"end": "Bonded"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Find a better dragon",
|
||||||
|
"end": "Not recorded"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Indecisively chase it",
|
||||||
|
"end": "Incinerated"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Mount the Brown's tail",
|
||||||
|
"best": true,
|
||||||
|
"then": [
|
||||||
|
{
|
||||||
|
"say": "Throw your weight",
|
||||||
|
"best": true,
|
||||||
|
"then": [
|
||||||
|
{
|
||||||
|
"say": "You'll charm it",
|
||||||
|
"best": true,
|
||||||
|
"end": "Bonded"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Hope for a clean death",
|
||||||
|
"end": "Incinerated"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "It's already talking to you",
|
||||||
|
"end": "Bonded"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Wait for a better angle",
|
||||||
|
"end": "Incinerated"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Turn to the Orange",
|
||||||
|
"end": "Incinerated"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"meadow-Blue": {
|
||||||
|
"title": "The meadow Blue",
|
||||||
|
"scene": "You approach the Blue dragon.",
|
||||||
|
"options": [
|
||||||
|
{
|
||||||
|
"say": "Change to Orange",
|
||||||
|
"pct": "?",
|
||||||
|
"unconfirmed": true,
|
||||||
|
"end": "Not tested"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Change to Brown",
|
||||||
|
"pct": "?",
|
||||||
|
"unconfirmed": true,
|
||||||
|
"end": "Not tested"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Absolutely, Blue Dragon",
|
||||||
|
"best": true,
|
||||||
|
"pct": "90%",
|
||||||
|
"then": [
|
||||||
|
{
|
||||||
|
"say": "Hold glare and advance",
|
||||||
|
"best": true,
|
||||||
|
"pct": "80%",
|
||||||
|
"then": [
|
||||||
|
{
|
||||||
|
"say": "Do nothing",
|
||||||
|
"best": true,
|
||||||
|
"pct": "83%",
|
||||||
|
"then": [
|
||||||
|
{
|
||||||
|
"say": "Lower your eyes",
|
||||||
|
"pct": "?",
|
||||||
|
"unconfirmed": true,
|
||||||
|
"end": "Incinerated"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Help the cadet",
|
||||||
|
"pct": "0%",
|
||||||
|
"end": "Incinerated"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Hold glare and watch",
|
||||||
|
"best": true,
|
||||||
|
"pct": "80%",
|
||||||
|
"then": [
|
||||||
|
{
|
||||||
|
"say": "Straighten your spine",
|
||||||
|
"best": true,
|
||||||
|
"pct": "82%",
|
||||||
|
"then": [
|
||||||
|
{
|
||||||
|
"say": "Hold steady",
|
||||||
|
"pct": "0%",
|
||||||
|
"unconfirmed": true,
|
||||||
|
"end": "Incinerated"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Launch yourself right",
|
||||||
|
"best": true,
|
||||||
|
"pct": "85%",
|
||||||
|
"then": [
|
||||||
|
{
|
||||||
|
"say": "You already know",
|
||||||
|
"pct": "?",
|
||||||
|
"unconfirmed": true,
|
||||||
|
"end": "Not tested"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Bring down an empire",
|
||||||
|
"best": true,
|
||||||
|
"pct": "80%",
|
||||||
|
"then": [
|
||||||
|
{
|
||||||
|
"say": "Seize the chance to mount",
|
||||||
|
"pct": "50%",
|
||||||
|
"end": "Incinerated"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Move slowly forward",
|
||||||
|
"best": true,
|
||||||
|
"pct": "80%",
|
||||||
|
"end": "Bonded"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Hold still",
|
||||||
|
"pct": "50%",
|
||||||
|
"end": "Incinerated"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "I want revenge",
|
||||||
|
"pct": "?",
|
||||||
|
"unconfirmed": true,
|
||||||
|
"end": "Not tested"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Defend the helpless",
|
||||||
|
"pct": "?",
|
||||||
|
"unconfirmed": true,
|
||||||
|
"end": "Not tested"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Speak first",
|
||||||
|
"pct": "20%",
|
||||||
|
"end": "Incinerated"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Do nothing",
|
||||||
|
"pct": "?",
|
||||||
|
"end": "Incinerated"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Intervene and help",
|
||||||
|
"pct": "?",
|
||||||
|
"end": "Incinerated"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Lower gaze, halt advance",
|
||||||
|
"pct": "0%",
|
||||||
|
"end": "Incinerated"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Lower gaze, advance",
|
||||||
|
"pct": "0%",
|
||||||
|
"end": "Incinerated"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"shadow": {
|
||||||
|
"title": "The shadow",
|
||||||
|
"scene": "You've seen a shadow, where will it lead...",
|
||||||
|
"options": [
|
||||||
|
{
|
||||||
|
"say": "A green sounds good",
|
||||||
|
"unconfirmed": true,
|
||||||
|
"end": "Not tested"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Stay the course",
|
||||||
|
"best": true,
|
||||||
|
"then": [
|
||||||
|
{
|
||||||
|
"say": "Well this is intriguing",
|
||||||
|
"best": true,
|
||||||
|
"then": [
|
||||||
|
{
|
||||||
|
"say": "Curiosity sated, retreat",
|
||||||
|
"then": [
|
||||||
|
{
|
||||||
|
"say": "Find that Green",
|
||||||
|
"end": "On to the two Greens"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Go towards the valley",
|
||||||
|
"unconfirmed": true,
|
||||||
|
"end": "Not tested"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Freeze and lower your eyes",
|
||||||
|
"best": true,
|
||||||
|
"then": [
|
||||||
|
{
|
||||||
|
"say": "Warn the cadet",
|
||||||
|
"end": "Incinerated"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Hold still",
|
||||||
|
"best": true,
|
||||||
|
"then": [
|
||||||
|
{
|
||||||
|
"say": "Aid the cadet",
|
||||||
|
"unconfirmed": true,
|
||||||
|
"end": "Not tested"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Hold position",
|
||||||
|
"best": true,
|
||||||
|
"then": [
|
||||||
|
{
|
||||||
|
"say": "Approach the Blue",
|
||||||
|
"then": [
|
||||||
|
{
|
||||||
|
"say": "On second thought…",
|
||||||
|
"unconfirmed": true,
|
||||||
|
"end": "Not tested"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "You're sure",
|
||||||
|
"unconfirmed": true,
|
||||||
|
"end": "Incinerated?"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Await judgement",
|
||||||
|
"best": true,
|
||||||
|
"then": [
|
||||||
|
{
|
||||||
|
"say": "Help the cadet",
|
||||||
|
"best": true,
|
||||||
|
"then": [
|
||||||
|
{
|
||||||
|
"say": "Use your dagger",
|
||||||
|
"best": true,
|
||||||
|
"then": [
|
||||||
|
{
|
||||||
|
"say": "Head south and hope",
|
||||||
|
"best": true,
|
||||||
|
"end": "On to the Black"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Take them to cold water",
|
||||||
|
"end": "Head back for the Greens, or explore other dragons"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Clean their uniform",
|
||||||
|
"end": "Head back for the Greens, or explore other dragons"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Leave to find your dragon",
|
||||||
|
"end": "Head back for the Greens, or explore other dragons"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Run towards the other cadet",
|
||||||
|
"unconfirmed": true,
|
||||||
|
"end": "Not tested"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Last chance to escape",
|
||||||
|
"end": "Head back for the Greens, or explore other dragons"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Leave while it's distracted",
|
||||||
|
"end": "Head back for the Greens, or explore other dragons"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Too big, you're out",
|
||||||
|
"end": "Head back for the Greens, or explore other dragons"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"black": {
|
||||||
|
"title": "The Black",
|
||||||
|
"scene": "A branch snaps behind you...",
|
||||||
|
"note": "Lowering your eyes has frequently ended in incineration; what follows it is unconfirmed.",
|
||||||
|
"options": [
|
||||||
|
{
|
||||||
|
"say": "Ignore it, keep walking",
|
||||||
|
"end": "Incinerated"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Turn to face the threat",
|
||||||
|
"best": true,
|
||||||
|
"then": [
|
||||||
|
{
|
||||||
|
"say": "Lower your eyes",
|
||||||
|
"end": "Incinerated"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"say": "Hold its gaze",
|
||||||
|
"best": true,
|
||||||
|
"end": "Bonded"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"route_encounters": {
|
||||||
|
"valley-Red": [
|
||||||
|
"valley-Red"
|
||||||
|
],
|
||||||
|
"tree-Red": [
|
||||||
|
"tree-Red"
|
||||||
|
],
|
||||||
|
"tree-Greens": [
|
||||||
|
"tree-Greens"
|
||||||
|
],
|
||||||
|
"meadow-Orange": [
|
||||||
|
"meadow-Orange"
|
||||||
|
],
|
||||||
|
"meadow-Brown": [
|
||||||
|
"meadow-Brown"
|
||||||
|
],
|
||||||
|
"meadow-Blue": [
|
||||||
|
"meadow-Blue"
|
||||||
|
],
|
||||||
|
"shadow-Blue": [
|
||||||
|
"shadow"
|
||||||
|
],
|
||||||
|
"shadow-Black": [
|
||||||
|
"shadow",
|
||||||
|
"black"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+2553
-2361
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
+58
-2
@@ -757,7 +757,62 @@
|
|||||||
* colour (data/tree.json, analysis/tree/build_tree.py), with what every other answer did. Only shown when the bot's
|
* colour (data/tree.json, analysis/tree/build_tree.py), with what every other answer did. Only shown when the bot's
|
||||||
* way goes through the same encounter as the route; the community form does not record these answers. */
|
* way goes through the same encounter as the route; the community form does not record these answers. */
|
||||||
const TREE_SIDE = (enc) => (/^(valley|meadow)-/.test(enc) ? "valley" : "tree");
|
const TREE_SIDE = (enc) => (/^(valley|meadow)-/.test(enc) ? "valley" : "tree");
|
||||||
|
/** The community route PDF's answers for an encounter (data/pdf_encounters.json): its recommended (dark-tile) answers
|
||||||
|
* as numbered steps toward this dragon, then the whole tree. */
|
||||||
|
// the goal inside one encounter: a bond with this colour, or (an encounter that leads on, like the shadow before
|
||||||
|
// the Black) the way on to the next one
|
||||||
|
const isGoal = (end, colour, onward) => onward ? new RegExp(`^On to the ${onward}`).test(end || "")
|
||||||
|
: /^Bonded|Bonded \(/.test(end || "") && (!/\(/.test(end) || new RegExp(colour).test(end));
|
||||||
|
function leadsTo(o, colour, onward) {
|
||||||
|
if (o.end) return isGoal(o.end, colour, onward);
|
||||||
|
return (o.then || []).some((c) => !c.roll && leadsTo(c, colour, onward));
|
||||||
|
}
|
||||||
|
function guidePath(options, colour, onward) {
|
||||||
|
const steps = [];
|
||||||
|
let opts = options;
|
||||||
|
while (opts && opts.length) {
|
||||||
|
const live = opts.filter((o) => !o.roll);
|
||||||
|
const pick = live.find((o) => o.best && leadsTo(o, colour, onward)) || live.find((o) => leadsTo(o, colour, onward));
|
||||||
|
if (!pick) break;
|
||||||
|
const roll = opts.find((o) => o.roll);
|
||||||
|
steps.push({ pick, others: live.filter((o) => o !== pick), roll: roll ? roll.roll : null });
|
||||||
|
if (pick.end) break;
|
||||||
|
opts = pick.then;
|
||||||
|
}
|
||||||
|
return steps;
|
||||||
|
}
|
||||||
|
const endOf = (o) => (o.end ? o.end : "continues");
|
||||||
|
function treeList(options) {
|
||||||
|
return `<ul>${options.map((o) => o.roll ? `<li class="roll"><em>${esc(o.roll)}</em></li>` :
|
||||||
|
`<li class="${o.best ? "best" : ""}${o.unconfirmed ? " pale" : ""}">${esc(o.say)}${o.pct ? ` <small>${esc(o.pct)}</small>` : ""}${o.end ? ` → <b>${esc(o.end)}</b>` : ""}${o.then ? treeList(o.then) : ""}</li>`).join("")}</ul>`;
|
||||||
|
}
|
||||||
|
function guideAnswers(enc) {
|
||||||
|
const g = st.guide;
|
||||||
|
if (!g) return "";
|
||||||
|
const keys = (g.route_encounters || {})[enc] || [];
|
||||||
|
if (!keys.length) return "";
|
||||||
|
const src = g.source || {};
|
||||||
|
const blocks = keys.map((k, ki) => {
|
||||||
|
const E = g.encounters[k];
|
||||||
|
if (!E) return "";
|
||||||
|
const next = keys[ki + 1] ? (g.encounters[keys[ki + 1]] || {}).title || "" : "";
|
||||||
|
const steps = guidePath(E.options, st.colour, next ? next.replace(/^The /, "") : null);
|
||||||
|
const rows = steps.map((s, i) => `<li><span class="n">${i + 1}</span><div><b>${esc(s.pick.say)}</b>${s.roll ? `<small class="ex-roll">The guide notes: ${esc(s.roll)}.</small>` : ""}
|
||||||
|
<small>${s.pick.pct ? `the guide's rate: ${esc(s.pick.pct)}` : ""}${s.pick.unconfirmed ? " · unconfirmed" : ""}${s.pick.end ? `${s.pick.pct ? " · " : ""}${esc(s.pick.end)}` : ""}</small>
|
||||||
|
${s.others.length ? `<details><summary>Other answers here</summary><ul>${s.others.map((o) => `<li>${esc(o.say)}${o.pct ? ` <small>${esc(o.pct)}</small>` : ""} → ${esc(endOf(o))}</li>`).join("")}</ul></details>` : ""}</div></li>`).join("");
|
||||||
|
return `<p class="small"><b>${esc(E.title)}</b>: <em>${esc(E.scene)}</em>${E.warning ? ` <span class="ex-warn">${esc(E.warning)}</span>` : ""}</p>
|
||||||
|
${rows ? `<ol>${rows}</ol>` : `<p class="small muted">The guide shows no way to bond a ${st.colour} here.</p>`}
|
||||||
|
${E.note ? `<p class="small muted">${esc(E.note)}</p>` : ""}
|
||||||
|
<details class="ex-fulltree"><summary>Every answer in the guide's tree</summary>${treeList(E.options)}</details>`;
|
||||||
|
}).join("");
|
||||||
|
return `<div class="ex-inside"><span class="eyebrow">Inside the encounter: the community guide's answers</span>${blocks}
|
||||||
|
<p class="small muted">From the <a href="${esc(src.link || "#")}" target="_blank" rel="noopener">community route PDF</a> by ${esc((src.authors || []).join(", "))} (${esc(src.version || "")} version), transcribed as data. ${esc(src.note || "")}</p></div>`;
|
||||||
|
}
|
||||||
|
|
||||||
function encounterAnswers(enc) {
|
function encounterAnswers(enc) {
|
||||||
|
return guideAnswers(enc) + botAnswers(enc);
|
||||||
|
}
|
||||||
|
function botAnswers(enc) {
|
||||||
const t = st.tree;
|
const t = st.tree;
|
||||||
if (!t) return '<p class="small muted ex-inside">Loading the answers inside the encounter…</p>';
|
if (!t) return '<p class="small muted ex-inside">Loading the answers inside the encounter…</p>';
|
||||||
const best = (t.best || {})[st.colour];
|
const best = (t.best || {})[st.colour];
|
||||||
@@ -766,7 +821,7 @@
|
|||||||
const side = hourAt >= 0 && /valley/i.test(picks[hourAt].text) ? "valley" : "tree";
|
const side = hourAt >= 0 && /valley/i.test(picks[hourAt].text) ? "valley" : "tree";
|
||||||
const viaShadow = picks && picks.some((p) => /shadow/i.test(p.text) && !/descend/i.test(p.text));
|
const viaShadow = picks && picks.some((p) => /shadow/i.test(p.text) && !/descend/i.test(p.text));
|
||||||
const fits = picks && hourAt >= 0 && side === TREE_SIDE(enc) && (enc.startsWith("shadow-") ? viaShadow : !viaShadow || side === "valley");
|
const fits = picks && hourAt >= 0 && side === TREE_SIDE(enc) && (enc.startsWith("shadow-") ? viaShadow : !viaShadow || side === "valley");
|
||||||
if (!fits) return `<p class="small muted ex-inside">The bot hasn't bonded a ${st.colour} through ${esc(ENC_NAME[enc] || enc)} yet, so the answers inside this encounter aren't mapped. The community form records only how the encounter ended, not the answers given.</p>`;
|
if (!fits) return `<p class="small muted ex-inside">The DragonKind bot hasn't bonded a ${st.colour} through ${esc(ENC_NAME[enc] || enc)} yet, so it can't confirm these answers. (The community form records only how the encounter ended, not the answers given.)</p>`;
|
||||||
const died = (o) => (o.to && o.to.DIED ? o.to.DIED.n : 0);
|
const died = (o) => (o.to && o.to.DIED ? o.to.DIED.n : 0);
|
||||||
const rows = picks.slice(hourAt + 1).map((p, i) => {
|
const rows = picks.slice(hourAt + 1).map((p, i) => {
|
||||||
const sc = t.screens[p.screen] || { options: {} };
|
const sc = t.screens[p.screen] || { options: {} };
|
||||||
@@ -779,7 +834,7 @@
|
|||||||
${others ? `<details><summary>Other answers here</summary><ul>${others}</ul></details>` : ""}</div></li>`;
|
${others ? `<details><summary>Other answers here</summary><ul>${others}</ul></details>` : ""}</div></li>`;
|
||||||
}).join("");
|
}).join("");
|
||||||
const end = Object.keys((t.screens[picks[picks.length - 1].screen] || { options: {} }).options[picks[picks.length - 1].option]?.to || {}).find((k) => k.startsWith("BONDED"));
|
const end = Object.keys((t.screens[picks[picks.length - 1].screen] || { options: {} }).options[picks[picks.length - 1].option]?.to || {}).find((k) => k.startsWith("BONDED"));
|
||||||
return `<div class="ex-inside"><span class="eyebrow">Inside the encounter: the answers that bonded</span>
|
return `<div class="ex-inside"><span class="eyebrow">What the DragonKind bot did: the answers that bonded</span>
|
||||||
<ol>${rows}</ol>
|
<ol>${rows}</ol>
|
||||||
<p class="small muted">${end ? `Bonded a ${end.split(":")[1]}. ` : ""}From the bot's own runs (it logs every screen it sees), so the counts are small; untested answers may also work.</p></div>`;
|
<p class="small muted">${end ? `Bonded a ${end.split(":")[1]}. ` : ""}From the bot's own runs (it logs every screen it sees), so the counts are small; untested answers may also work.</p></div>`;
|
||||||
}
|
}
|
||||||
@@ -960,6 +1015,7 @@
|
|||||||
render();
|
render();
|
||||||
// the screen tree (the answers inside each encounter), for the "Bonding encounter" step
|
// the screen tree (the answers inside each encounter), for the "Bonding encounter" step
|
||||||
fetch("data/tree.json").then((r) => r.json()).then((t) => { st.tree = t; if (st.expanded === "encounter") render(); }).catch(() => { st.tree = { best: {}, screens: {} }; });
|
fetch("data/tree.json").then((r) => r.json()).then((t) => { st.tree = t; if (st.expanded === "encounter") render(); }).catch(() => { st.tree = { best: {}, screens: {} }; });
|
||||||
|
fetch("data/pdf_encounters.json").then((r) => r.json()).then((g) => { st.guide = g; if (st.expanded === "encounter") render(); }).catch(() => {});
|
||||||
fetch("data/policy.json").then((r) => r.json()).then((p) => {
|
fetch("data/policy.json").then((r) => r.json()).then((p) => {
|
||||||
st.policy = p;
|
st.policy = p;
|
||||||
S.useGame(p.samples.all); // the game (and where each colour can be bonded) comes with the route model
|
S.useGame(p.samples.all); // the game (and where each colour can be bonded) comes with the route model
|
||||||
|
|||||||
@@ -354,6 +354,12 @@ footer { border-top-color: var(--line); }
|
|||||||
.ex-inside small { color: var(--muted); }
|
.ex-inside small { color: var(--muted); }
|
||||||
.ex-inside details summary { cursor: pointer; font-size: var(--step--1); color: var(--muted); }
|
.ex-inside details summary { cursor: pointer; font-size: var(--step--1); color: var(--muted); }
|
||||||
.ex-inside ul { margin: 4px 0 0 16px; padding: 0; font-size: var(--step--1); }
|
.ex-inside ul { margin: 4px 0 0 16px; padding: 0; font-size: var(--step--1); }
|
||||||
|
.ex-inside + .ex-inside { margin-top: 8px; }
|
||||||
|
.ex-inside .ex-roll { display: block; font-style: italic; }
|
||||||
|
.ex-fulltree ul { list-style: disc; }
|
||||||
|
.ex-fulltree li.best { font-weight: 600; }
|
||||||
|
.ex-fulltree li.pale { opacity: 0.7; font-style: italic; }
|
||||||
|
.ex-fulltree li.roll { list-style: none; }
|
||||||
.ex-head { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
|
.ex-head { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
|
||||||
.ex-head svg { width: 64px; height: 52px; }
|
.ex-head svg { width: 64px; height: 52px; }
|
||||||
.ex-head h2 { color: var(--c); }
|
.ex-head h2 { color: var(--c); }
|
||||||
|
|||||||
+1
-1
@@ -27,7 +27,7 @@ for (const f of fs.readdirSync(path.join(root, "site/atlas"))) copy(`site/atlas/
|
|||||||
copy("core/graph.js", "graph.js");
|
copy("core/graph.js", "graph.js");
|
||||||
copy("core/solver.js", "solver.js");
|
copy("core/solver.js", "solver.js");
|
||||||
// The numbers the page shows (all computed in Python) and the published data
|
// The numbers the page shows (all computed in Python) and the published data
|
||||||
for (const f of ["stats.json", "register.json", "graph.json", "policy.json", "black.json", "tree.json", "experiments.json"]) copy(`data/public/${f}`, `data/${f}`);
|
for (const f of ["stats.json", "register.json", "graph.json", "policy.json", "black.json", "tree.json", "experiments.json", "pdf_encounters.json"]) copy(`data/public/${f}`, `data/${f}`);
|
||||||
copy("data/public/runs_clean.csv", "data/runs_clean.csv");
|
copy("data/public/runs_clean.csv", "data/runs_clean.csv");
|
||||||
for (const f of ["croissant.json", "dictionary.yaml"]) copy(`data/${f}`, `data/${f}`);
|
for (const f of ["croissant.json", "dictionary.yaml"]) copy(`data/${f}`, `data/${f}`);
|
||||||
// Source files shown in the page's "view the code" panel
|
// Source files shown in the page's "view the code" panel
|
||||||
|
|||||||
Reference in New Issue
Block a user