A good mystery should keep the reader guessing until the very end, but the clues must all be there.
True intelligence is understanding, not just computing.