A good fictional detective can trip up a cunning adversary.