Threadville PD is fundamentally powered by the Google Gemini 3 API, utilizing a multi-model strategy to deliver infinite, logically consistent murder mysteries. The application leverages Gemini Pro as the core narrative engine, handling complex reasoning tasks such as constructing the case blueprint, establishing suspect motives, and enforcing the constraint satisfaction logic required for solvable forensic puzzles (e.g., ensuring DNA and fingerprint chains strictly match the culprit).

For performance and scale, we utilize Gemini Flash to efficiently generate high-volume textual assets, such as detailed "boring" documents like bank statements, train schedules, and autopsy reports. A critical technical component is Gemini’s structured output capabilities, which allow us to define rigid JSON schemas that parse these creative narratives into structured game data usable by our React frontend.

Additionally, we employ Gemini’s image generation capabilities to dynamically create stylized visual assets for suspects, crime scenes, and evidence photos. The integration is central to the experience; Gemini acts as the Dungeon Master, simultaneously writing the story, drawing the art, and validating the player's deductions in real-time.

Built With

Share this project:

Updates