The Valley of Fear is a novel by Arthur Conan Doyle, not a play. The mystery revolves around a conspiracy involving the “Scowrers,” a secret criminal society. The true murderer is obscured by layers of misdirection.
Doyle uses red herrings and nested narratives (the story within a story). The immediate killer varies by victim, but the overarching guilt lies with the Scowrer organization and Moriarty’s influence. The novel’s structure delays the revelation until Holmes explains the full conspiracy.
Reading the novel is necessary to follow the twists and determine specific culpability for each death.