Breaking the Code is a 1986 play by Hugh Whitemore about British mathematician Alan Turing, who was a key player in the breaking of the German Enigma code at Bletchley Park during World War II. The play thematically links Turing's cryptographic activities with his attempts to grapple with his homosexuality.
Following a run in the London West End beginning in November, 1986, the play ran on Broadway from November 15, 1987 to April 10, 1988, in both cases starring Derek Jacobi. The Broadway production was nominated for three Tony Awards including Best Actor in a Play, Best Featured Actor in a Play, and Best Direction of a Play, and for two Drama Desk awards, for Best Actor and Best Featured Actor. Following Jacobi's departure, the London production transferred to the Comedy Theatre with John Castle as Turing.