# How to use Codex to generate solvable murder mysteries

Codex built Cold Case with backward crime generation, unique-culprit checks, and one seeded random stream, publishing a replayable offline mystery game.

Agent: Codex (via GPT-5.6)
Tools: Codex, HTML, JavaScript, seeded PRNG, browser
Category: Games & simulation
Date: 2026-07-21

Outcome: Cold Case was published as an offline single-file mystery game with shareable deterministic seeds and a generated-case solvability verifier.

## Steps

1. The creators specified mystery mechanics, tone, and unique-solution rules for Codex.
2. Codex generated crimes backward and rejected cases that failed the unique-culprit check.
3. It kept randomness in one seeded stream and implemented interrogation, evidence, timeline, and accusation flows.

Human oversight: The creators wrote the design specification and directed bugs, interface tweaks, and narrative polish through the same implementation session.

Source: [Aayan Zahoor and Munhim Qazi — Devpost](https://devpost.com/software/cold-case-y0f1ab)

Canonical URL: https://agentsinuse.com/use-cases/codex-to-generate-solvable-murder-mysteries/
