Detective / dialogue puzzle
Dialogue-Driven Interrogation Mystery
Tested with Claude · produced Interrogation Room Komiya
The Prompt
Build a complete dialogue-driven interrogation game in ONE self-contained HTML file (inline CSS/JS, no libraries, no external assets). One room, one suspect, one night. The player has 20 moves before the lawyer arrives. Core loop: - Five actions: Question (free, low information), Press (costs 1, pushes on a contradiction), Present evidence (costs 2), Offer tea (costs 1, lowers stress), Stay silent (free, lets the suspect fill the gap). - Four evidence items, each with a description and one contradiction it can expose. Two pieces are red herrings on the obvious route. - A stress meter and a trust meter. High stress closes routes; high trust opens one confession route. Neither is a simple “good” stat. - Three outcomes: charge with the right evidence, charge with the wrong evidence, or let the suspect walk. A fourth secret outcome requires presenting a red herring at the right moment. Writing: - Store every line as data: node id, speaker, text, conditions, effects, next node. No story text inside event handlers. - At least 120 nodes and 40 minutes of unique dialogue across routes. The suspect should lie consistently; every lie must be exposed by exactly one evidence item or one contradiction pair. - No filler small talk that does not change a meter or unlock a route. If a line is decorative, cut it. Presentation: - Single-room noir scene drawn in inline SVG. Rain on the window, a flickering lamp, two chairs, one table. Keep the palette to five colours. - Large readable text, tap or click to advance, a visible move counter, an evidence tray, and a log of contradictions found. - Keyboard shortcuts: 1-5 for actions, Esc for the evidence tray, R to restart. Mobile: bottom action bar with large targets. - Save progress locally after every node; add a route map that shows only the nodes the player has seen. Accessibility and testing: - No timed text, no flashing above 3Hz, and a reduced-motion setting that stops the rain animation. - Build a path checker that explores every combination of actions for 10 moves and reports unreachable nodes, dead ends, outcomes with no valid path, and any contradiction that can never be exposed. - Fix what the checker finds, then print the node count, the four outcomes and their conditions, and the full evidence-to-contradiction table.
What This Prompt Produces
Constraining the player to one room and 20 moves is what turns a chatbot conversation into a game. Interrogation Room Komiya on this site uses the same structure: evidence, pressure, silence and a clock, with the story stored as data so every route can be tested.
Modification Tips
- Make silence a move. The best interrogation games punish players who cannot stop talking.
- Every lie needs exactly one key. If two pieces of evidence expose the same lie, one of them is filler.
- Use a move budget instead of a real-time clock; it makes mobile play fair and testing tractable.
- Run the path checker before writing more dialogue. Unreachable nodes are cheaper to delete than to rewrite.
The Game This Prompt Produced
Want to try it? Open Claude, paste the prompt, and you'll have a playable game in minutes. When you're happy with the result, submit it to Daily AI Games.