Show HN: AI Detective Game – Interrogate AI-generated suspects to solve a crime

4 months ago 20

Repository files navigation

An interactive detective game where you interrogate AI-generated suspects to find the real criminal.

AI Detective Game is a React-based web application that creates a unique detective experience each time you play. The game generates:

  • A crime scenario
  • 6 unique suspects with backstories and personalities
  • Interactive interrogation sessions with each suspect
  1. Start a new case
  2. Review the crime scenario
  3. Interview each suspect by asking questions
  4. Look for inconsistencies - five suspects will lie with obvious mistakes about police procedures
  5. Identify the real criminal - only one suspect tells the truth about committing the crime
  6. Make your accusation!
  • Built with React and Vite
  • Uses TailwindCSS for styling
  • Integrates with a local LLM API (Ollama using Llama3.2 by default)
  • Includes fallback responses if AI is unavailable
  • Responsive design for mobile and desktop
  1. Clone the repository
  2. Install dependencies: npm install or bun install
  3. Start the dev server: npm run dev or bun run dev
  4. For AI integration: run Ollama with Llama3.2 on port 11434

You can customize the AI model by changing the AI_MODEL variable in the App.jsx file.

This project uses:

Read Entire Article