Terminator — 25 of 33

Matt Weiner

Release 0

Chapter 11 - The End

Section 1 - Carrying Out the Endgame

[Featuring the mother of all kludges; because of the every turn rules the story doesn't always end until you type in another command, so there's something suggesting that you wait.]

To move is a verb.

Penultimate turn is initially false.

To move to the endgame:

if any robot that is right next to the spaceship exterior is in the Planet:

say "As the sun begins to strike the Tiptree, [list of (robots in the Planet) right next to the spaceship exterior] [move] into its cargo bay.";

repeat with bot running through robots:

if bot is right next to the spaceship exterior:

now bot is in the Cabin of the Tiptree;

now every astronaut in bot is in the Cabin of the Tiptree;

now penultimate turn is true;

say "As the terminator reaches your spaceship, the captain declares, 'Nothing more to be done here. Countdown to takeoff.' Nothing for you to do but wait.";

end the story finally.

Last every turn when every astronaut is in the Cabin of the Tiptree and every responsive robot is right next to the spaceship exterior (this is the win when everything collected rule):

say "Every astronaut has been rescued, and every remaining robot is ready to move into the cargo bay of the Tiptree. The captain orders the crew to prepare for takeoff. Nothing for you to do but wait.";

now penultimate turn is true;

end the story finally.

Last every turn when no robot is responsive (this is the nothing to be done rule):

say "The last robot has overheated, and there is nothing more you can do to rescue the astronauts. The captain orders the crew to prepare for takeoff. Nothing for you to do but wait.";

now penultimate turn is true;

end the story finally.

[Because the turn sequence is so messed up, "end the story finally" might not actually end the story until after collecting another command. So we kill a turn. I have absolutely no idea what's going on here, though it is somehow possible that this is connected to my decision to tie the every turn rules to printing the command prompt.]