# core The shared model. Every other part uses it, so a change here touches everything: run `npm test` after any edit. | File | What it does | |---|---| | `engine.js` | Turns a row of the community form (any version of it) into one coded run: the run format, every coding rule, missing answers, email redaction. Also the statistics the site shows. | | `python/clean.py` | The same coding rules in Python. `tests/parity/` fails if the two ever disagree. | | `graph.js` | The route graph: the bot's scene graph, the decision-variable graph shared by all sources, the crosswalk from the bot's on-screen text to form answers, Beta credible intervals. | | `solver.js` | The decision model: every choice and roll in a run, chance estimates with empirical-Bayes back-off, backward induction for each dragon, and the advisor the site and the bot use to get advice from any point in a run. | All three JS files have no dependencies and run unchanged in Node and the browser. The site and Ken's bot load the published copies (`https://ekcschiano.github.io/threshing-atlas/solver.js` etc.), so their file names on the site must not change. To change a coding rule, edit `codeRow()` in `engine.js` **and** `code_row()` in `python/clean.py`.