as Captain
James T. Kirk. Kirk is the only character credited in live-action
Star Trek with succeeding in the
Kobayashi Maru test. The test is introduced in the opening of
Star Trek II: The Wrath of Khan, with Lieutenant
Saavik commanding her crew on a bridge simulator. They receive a distress call from the
Kobayashi Maru and enter the Klingon Neutral Zone to rescue it
. The crew loses contact with the civilian ship and three Klingon vessels attack. With the bridge crew dead and the ship badly damaged, Saavik orders the crew to abandon ship and the simulation ends. When Saavik says the test is unfair because there is no way to win, Admiral
James T. Kirk replies that a starship captain might face an actual "no-win scenario". Later in the film, Kirk reveals that he beat the
Kobayashi Maru as a cadet on his third attempt by reprogramming the simulation to make it possible to rescue the ship, and that he does not actually believe in the idea of a no-win scenario. The 2009 film
Star Trek shows an alternate timeline's version of Cadet Kirk defeating the
Kobayashi Maru test; in contrast to the original timeline where Kirk was commended for his unorthodox approach, this version of Kirk receives an academic reprimand for violating the spirit of the test. The test is also depicted in the
Star Trek: Prodigy episode "Kobayashi". Dal, who is struggling as the starship
Protostar's captain and does not understand the purpose of the
Kobayashi Maru, repeats the simulation many times. Every attempt ends in failure, adding to his despondence. A holographic version of
Spock advises Dal that "the needs of the many outweigh the needs of the few," and Dal finally solves the problem while realizing that he needs to listen to his crew more often. The
Kobayashi Maru is referred to in other live-action and animated content, and characters also use the phrase "
Kobayashi Maru" to describe no-win or desperate situations generally. The fourth-season premiere of
Star Trek: Discovery is titled "Kobayashi Maru" (2021) and depicts the main characters confronting several challenging situations. Licensed media provide additional depictions of and references to the test, and two
Star Trek novels carry the test's name in their title:
The Kobayashi Maru (1989) by
Julia Ecklar and
Kobayashi Maru (2008) by Michael A. Martin and
Andy Mangels. The simulation is performed in the novel
Stone and Anvil (2003), a part of the
Star Trek: New Frontier series by
Peter David. In this version, Klingons are replaced by Romulans (the series takes place after the events of the
sixth film) and the simulation is conducted on the
holodeck. Captain
Mackenzie Calhoun tries to save the
Kobayashi Maru, but when he notices that the enemy ships are using it as cover, he orders it fired upon, resulting in two of the three enemy ships being driven towards each other and exploding. Having saved his crew, Calhoun orders them to escape. The simulation is referred to in the short story "Demon" (2005) by Kevin Hosey, included in the 8th edition of the "
Star Trek: Strange New Worlds (short story collection)" anthologies published by Simon and Schuster. In the story, Capt. James Kirk and the crew of the Enterprise battle against a Klingon cruiser possessed by a destructive alien entity. The entity is defeated but at the cost of the lives of everyone on the Enterprise. Kirk then learns he had unknowingly been subjected to a virtual simulation similar to the
Kobayashi Maru test by an agent of
Section 31 (Star Trek) to determine if Kirk should be asked to join their agency. == Concept and production ==