The Imitation Game is a 2014 historical thriller film directed by Mortan Tyldum, with a screenplay by graham Moore loosely based on the biography Alan Turing: The Enigma by Andrew Hogdes. It stars Benidict Cumberbatch as real life British cryptanalyst Alan Turing, who in the film is hired to decrypt German intelligence codes for the British government during World War I