* Wandering planet-killer as in "The Doomsday Machine";
see <http://www.ericweisstein.com/fun/startrek/TheDoomsdayMachine.html>.
+BSD-Trek features we haven't swiped yet:
+
+* The cloaking device.
+
+* Summoning Klingons to surrender and taking captives.
+
+* Automatic bugout sets your warp factor to > 6.
+
+* Smarter computer, with multiple requests.
+
+* There is a small probility that a nova event will leave a black hole.
+
+* Multiple laser banks and beam spreading.
+
+* Visual scans for when sensors are out.
<para>You may self-destruct, thus killing yourself and ending the game. If
there are nearby Klingons, you may take a few of them with you (the
-more energy you have left, the bigger the bang).</para>
+more energy you have left, the bigger the bang). It is possible to
+win this way, if you kill off your last adversaries with the blast.</para>
<para>In order to self-destruct you must remember the password you typed in
at the beginning of the game.</para>
game.optime = 0;
}
+/*
+ * A nova occurs. It is the result of having a star hit with a
+ * photon torpedo, or possibly of a probe warhead going off.
+ * Stars that go nova cause stars which surround them to undergo
+ * the same probabilistic process. Klingons next to them are
+ * destroyed. And if the starship is next to it, it gets zapped.
+ * If the zap is too much, it gets destroyed.
+ */
void nova(coord nov)
/* star goes nova */
{
return;
}
+/*
+ * Here's how the mayday code works:
+ *
+ * First, the closest starbase is selected. If there is a
+ * a starbase in your own quadrant, you are in good shape.
+ * This distance takes quadrant distances into account only.
+ *
+ * A magic number is computed based on the distance which acts
+ * as the probability that you will be rematerialized. You
+ * get three tries.
+ *
+ * When it is determined that you should be able to be remater-
+ * ialized (i.e., when the probability thing mentioned above
+ * comes up positive), you are put into that quadrant (anywhere).
+ * Then, we try to see if there is a spot adjacent to the star-
+ * base. If not, you can't be rematerialized!!! Otherwise,
+ * it drops you there. It only tries five times to find a spot
+ * to drop you. After that, it's your problem.
+ */
+
void mayday(void)
/* yell for help from nearest starbase */
{