In Analytics Vidhya’s Python detective game, someone stole the office biryani. Jev reads the detective’s questions. Python picks the suspect’s scripted replies, tracks which clues the player has used, and decides whether an accusation wins.

5:08 · Let Python own the game state

  • The presenter sends the evidence file, the suspect’s alibi and the latest line. One request asks for the topic, tactic, pressure and several yes/no judgments. Python handles the win conditions and the order of the checks.
  • A single line can do two things. The player cites a canceled meeting and asks where the suspect really was. Jev recognizes real evidence but chooses alibi as the topic. The game only credits that clue under calendar.

11:28 · Replay the lost clue

  • The player uses the other clues and accuses the suspect. The accusation fails because the meeting clue never counted. The model returned a valid label; the rule tied clue credit to the wrong field. The presenter suggests letting calendar evidence count on alibi questions, too.
  • In the presenter’s separate comparison on 21 handpicked lines, Jev had 19/21 correct evidence judgments versus 9/21 for GPT‑4o mini. Both returned valid structured outputs. We did not reproduce the run; the figures describe this game’s examples, not general accuracy.

“Python told the story.” — Analytics Vidhya, 19:13

Caveat: This is one game and a small presenter-run test. The narrated run shows the missed clue; it does not validate the thresholds on new inputs.