8.8 KiB
Super Star Trek
Brief History
Many versions of Star Trek have been kicking around various college campuses since the late sixties. I recall playing one at Carnegie-Mellon Univ. in 1967 or 68, and a very different one at Berkeley. However, these were a far cry from the one written by Mike Mayfield of Centerline Engineering and/or Custom Data. This was written for an HP2000C and completed in October 1972. It became the “standard” Star Trek in February 1973 when it was put in the HP contributed program library and onto a number of HP Data Center machines.
In the summer of 1973, I converted the HP version to BASIC-PLUS for DEC’s RSTS-11 compiler and added a few bits and pieces while I was at it. Mary Cole at DEC contributed enormously to this task too. Later that year I published it under the name SPACWR (Space War — in retrospect, an incorrect name) in my book 101 Basic Computer Games. It is difficult today to find an interactive computer installation that does not have one of these versions of Star Trek available.
Quadrant Nomenclature
Recently, certain critics have professed confusion as to the origin on the “quadrant” nomenclature used on all standard CG (Cartesian Galactic) maps. Naturally, for anyone with the remotest knowledge of history, no explanation is necessary; however, the following synopsis should suffice for the critics:
As every schoolboy knows, most of the intelligent civilizations in the Milky Way had originated galactic designations of their own choosing well before the Third Magellanic Conference, at which the so-called “2⁶ Agreement” was reached. In that historic document, the participant cultures agreed, in all two-dimensional representations of the galaxy, to specify 64 major subdivisions, ordered as an 8 x 8 matrix. This was partially in deference to the Earth culture (which had done much in the initial organization of the Federation), whose century-old galactic maps had always shown 16 major regions named after celestial landmarks divided into four “quadrants,” designated by ancient “Roman Numerals” (the origin of which has been lost).
To this day, the official logs of starships originating on near-Earth starbases still refer to the major galactic areas as “quadrants.”
The relation between the Historical and Standard nomenclatures is shown in the simplified CG map below.
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | |
|---|---|---|---|---|---|---|---|---|
| 1 | ANTARES | SIRIUS | ||||||
| I | II | III | IV | I | II | III | IV | |
| 2 | RIGEL | DENEB | ||||||
| I | II | III | IV | I | II | III | IV | |
| 3 | PROCYON | CAPELLA | ||||||
| I | II | III | IV | I | II | III | IV | |
| 4 | VEGA | BETELGUESE | ||||||
| I | II | III | IV | I | II | III | IV | |
| 5 | CANOPUS | ALDEBARA | ||||||
| I | II | III | IV | I | II | III | IV | |
| 6 | ALTAIR | REGULUS | ||||||
| I | II | III | IV | I | II | III | IV | |
| 7 | SAGITTARIOUS | ARCTURUS | ||||||
| I | II | III | IV | I | II | III | IV | |
| 8 | POLLUX | SPICA | ||||||
| I | II | III | IV | I | II | III | IV |
Super Star Trek† Rules and Notes
-
OBJECTIVE: You are Captain of the starship “Enterprise”† with a mission to seek and destroy a fleet of Klingon† warships (usually about 17) which are menacing the United Federation of Planets.† You have a specified number of stardates in which to complete your mission. You also have two or three Federation Starbases† for resupplying your ship.
-
You will be assigned a starting position somewhere in the galaxy. The galaxy is divided into an 8 x 8 quadrant grid. The astronomical name of a quadrant is called out upon entry into a new region. (See “Quadrant Nomenclature.”) Each quadrant is further divided into an 8 x 8 section grid.
-
On a section diagram, the following symbols are used:
<*>Enterprise†††Klingon>!<Starbase*Star
-
You have eight commands available to you (A detailed description of each command is given in the program instructions.)
NAVNavigate the Starship by setting course and warp engine speed.SRSShort-range sensor scan (one quadrant)LRSLong-range sensor scan (9 quadrants)PHAPhaser† control (energy gun)TORPhoton torpedo controlSHEShield control (protects against phaser fire)DAMDamage and state-of-repair reportCOMCall library computer
-
Library computer options are as follows (more complete descriptions are in program instructions):
0Cumulative galactic report1Status report2Photon torpedo course data3Starbase navigation data4Direction/distance calculator5Quadrant nomenclature map
-
Certain reports on the ship’s status are made by officers of the Enterprise who appears on the original TV Show—Spock,† Scott,† Uhura,† Chekov,† etc.
-
Klingons are non-stationary within their quadrants. If you try to maneuver on them, they will move and fire on you.
-
Firing and damage notes:
- Phaser fire diminishes with increased distance between combatants.
- If a Klingon zaps you hard enough (relative to your shield strength) he will generally cause damage to some part of your ship with an appropriate “Damage Control” report resulting.
- If you don’t zap a Klingon hard enough (relative to his shield strength) you won’t damage him at all. Your sensors will tell the story.
- Damage control will let you know when out-of-commission devices have been completely repaired.
-
Your engines will automatically shut down if you should attempt to leave the galaxy, or if you should try to maneuver through a star, or Starbase, or—heaven help you—a Klingon warship.
-
In a pinch, or if you should miscalculate slightly, some shield control energy will be automatically diverted to warp engine control (if your shield are operational!).
-
While you’re docked at a Starbase, a team of technicians can repair your ship (if you’re willing for them to spend the time required—and the repairmen always underestimate…)
-
If, to same maneuvering time toward the end of the game, you should cold-bloodedly destroy a Starbase, you get a nasty note from Starfleet Command. If you destroy your last Starbase, you lose the game! (For those who think this is too a harsh penalty, delete line 5360-5390, and you’ll just get a “you dumdum!”-type message on all future status reports.)
-
End game logic has been “cleaned up” in several spots, and it is possible to get a new command after successfully completing your mission (or, after resigning your old one).
-
For those of you with certain types of CRT/keyboards setups (e.g. Westinghouse 1600), a “bell” character is inserted at appropriate spots to cause the following items to flash on and off on the screen:
- The Phrase “*RED*” (as in Condition: Red)
- The character representing your present quadrant in the cumulative galactic record printout.
-
This version of Star Trek was created for a Data General Nova 800 system with 32K or core. So that it would fit, the instructions are separated from the main program via a CHAIN. For conversion to DEC BASIC-PLUS, Statement 160 (Randomize) should be moved after the return from the chained instructions, say to Statement 245. For Altair BASIC, Randomize and the chain instructions should be eliminated.
† Designates trademark of Paramount Pictures Corporation. Used by permission of Paramount Pictures Corporation.
As published in Basic Computer Games (1978):
Downloaded from Vintage Basic at http://www.vintage-basic.net/games.html
Instructions in this directory at instructions.txt
Porting Notes
Many of the programs in this book and this collection have bugs in the original code.
@jkboyce has done a great job of discovering and fixing a number of bugs in the original code, as part of his python implementation, which should be noted by other implementers:
- line
4410:D(7)should beD(6) - lines
8310,8330,8430,8450: Division by zero is possible - line
440:B9should be initialised to 0, not 2