...a random Star Trek episode

The Original Series
Season 3, 
Episode 17
That Which Survives
The crew of theĀ EnterpriseĀ visits an abandoned outpost guarded by a mysterious computer.