Terminator — 32 of 33

Matt Weiner

Release 0

Section 2 - Rejecting Chained Commands

[Chained commands mess things up because the every turn rules are tied to the command prompt, so reject them. (Otherwise we could type "gamma, w. gamma, w. gamma, w. gamma, w." and have gamma move four steps in one turn.)]

First after reading a command when the player's command includes "then":

say "Sorry, but it looks like you've chained more than one command together with the word 'THEN.' This game doesn't support that feature.";

reject the player's command.

First after reading a command when the player's command matches the regular expression "\.":

say "Sorry, but it looks like you've chained more than one command together with periods. This game doesn't support that feature.";

reject the player's command.

[Thanks to Andrew Schultz for the code for that last one!]