{
 "schema_version": 1,
 "generated": "2026-10-26",
 "id": "momozi1996-awesome-chinese-folk-game--inspect-and-test-case-engine-logic",
 "repo": "momozi1996/awesome-chinese-folk-game",
 "repo_url": "https://github.com/momozi1996/awesome-chinese-folk-game",
 "repo_slug": "momozi1996-awesome-chinese-folk-game",
 "title": "Inspect and test the case engine's inference logic",
 "page_title": "How to inspect and test the case engine's inference logic with Awesome Chinese Folk Game",
 "summary": "Read the pure-function deduction check in engine.js and run the JavaScript engine test in Node.",
 "who": "A developer who wants to reuse or test the deduction logic of a browser-based mystery game without touching the DOM.",
 "problem": "The developer needs to understand how a deduction is judged and confirm the engine behaves correctly before reusing or changing it.",
 "outcome": "The developer can explain how a pair of clues is judged correct and has a passing engine test run.",
 "steps": [
  "Clone the repository with `git clone https://github.com/momozi1996/awesome-chinese-folk-game.git`.",
  "Enter the folder with `cd awesome-chinese-folk-game`.",
  "Open src/case_engine/engine.js and read the inferenceCorrect function.",
  "Run the engine test with `node tests/engine.cjs`."
 ],
 "agent_prompt": "In the momozi1996/awesome-chinese-folk-game repository at <repo-path>, read src/case_engine/engine.js, explain how inferenceCorrect decides a deduction is correct, and run node tests/engine.cjs. Report the number of tests run and passed. Verify that the engine has no DOM or localStorage calls.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "The README describes the engine test as 2 JavaScript engine tests, so a different count means the repository has changed since the README was written.",
 "category": "Games and hobbies",
 "tags": [
  "Games and hobbies"
 ],
 "lang": "javascript",
 "requirements": [
  "A web browser, for the no-Python route",
  "Python 3.9 or newer, for the launcher route (standard library only)",
  "git, optional, for cloning the repository",
  "Node.js, only if you want to run the JavaScript engine test"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.7,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/momozi1996-awesome-chinese-folk-game/inspect-and-test-case-engine-logic/",
 "md": "https://dedupedai.com/use-cases/momozi1996-awesome-chinese-folk-game/inspect-and-test-case-engine-logic/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/momozi1996-awesome-chinese-folk-game--inspect-and-test-case-engine-logic.json",
 "api_version": "v1"
}
