Overview
"A Taste of Armageddon" is the twenty-third episode of the first season of the American science fiction television series Star Trek. Written by Robert Hamner and Gene L. Coon and directed by Joseph Pevney, it was first broadcast on February 23, 1967.
In the episode, the crew of the Enterprise visits a planet engaged in a completely computer-simulated war with a neighboring planet, but the casualties, including the Enterprises crew, are supposed to be real.
Plot
The USS Enterprise travels to Eminiar VII in NGC 321, bringing Ambassador Robert Fox to establish diplomatic relations. Little is known about Eminiar VII, beyond the fact that they have been at war with a neighboring planet, Vendikar.
Nearing Eminiar VII, the Enterprise receives a message from the planet warning them not to approach, but Ambassador Fox orders Captain Kirk to proceed. Kirk, First Officer Spock, and additional security personnel beam down to the planet, where they are met by representatives Mea 3 and Anan 7. During a supposed attack by Vendikar, Anan 7 explains that the war is conducted as a computer simulation, and that the Enterprise has been "destroyed" in the attack. The two planets have a treaty, according to which they have to kill the "victims" of every simulated attack. The crew are thereby expected to report to Eminiar's disintegration chambers for execution, and Kirk's party is taken captive. Spock telepathically plants a suggestion in their jailer's mind, allowing them to escape.
From Wikipedia (CC BY-SA 4.0).