Sleuth is based on a 1970 play written by English writer Anthony Shaffer (1926-2001). Shaffer said the play was partially inspired by one of his friends, composer Stephen Sondheim, whose intense interest in games-playing is mirrored by the character of Wyke.