MacGyver (1985)
S1E12 Deathlock
MacGyver finds himself confined in a mansion alongside Pete, a specialist in codes, and a government agent whose loyalty is uncertain. To complicate matters, an old adversary has rigged the entire place with electronic traps, ensuring their escape is nearly impossible.