User Tools

Site Tools


tutorials:startrek

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
tutorials:startrek [2016/10/16 10:27]
papa
tutorials:startrek [2016/10/17 04:44] (current)
papa
Line 1: Line 1:
-===== Star Trek =====+**Star Trek/Space War** is a text-based strategy game inspired by the television series //Star Trek// and popular on minicomputers, mainframes, and early PCs in the 1970s and -80s. It was originally programmed in 1971 by high-schooler Mike Mayfield for the SDS Sigma 7 mainframe. The TWENEX version of the program is based on David Ahl's DEC BASIC port[*], which Ahl distributed under the name of //Space War// (file name ''SPACWR.BAS''). 
  
 +The //Instructions// section below duplicates the original in-game help text, which Ahl adopted unchanged from Mayfield's source. In addition to adapting the text format, minor corrections have been made to spelling and punctuation. In the game, commands are selected by the number indicated in the headings below (this page's table of contents can serve as a quick command guide).
  
-==== Instructions ====+There are two commands not documented below: 
 + 
 +  * **Command 8** -- to quit the game. 
 +  * (Any other number) -- to display a short list of valid commands. 
 +  
 +===== Invocation ===== 
 + 
 +To play //Star Trek//, log-in to your TWENEX account, enter ''BASIC'', then run the following commands: 
 + 
 +     OLD <PAPA.BASIC>SPCWR10.BAS 
 +     RUN 
 + 
 +===== Instructions =====
  
 The galaxy is divided into an 8,8 quadrant grid which is in turn divided into an 8,8 sector grid. The galaxy is divided into an 8,8 quadrant grid which is in turn divided into an 8,8 sector grid.
Line 13: Line 26:
     *  = Star     *  = Star
  
-=== Command 0 = Warp Engine Control ===+==== Command 0 = Warp Engine Control ====
  
 Course is in a circular numerical vector arrangement as shown. Course is in a circular numerical vector arrangement as shown.
Line 25: Line 38:
       6  7  8       6  7  8
       Course       Course
-       
 Integer and real values may be used. Therefore course 1.5 is half way between 1 and 2. Integer and real values may be used. Therefore course 1.5 is half way between 1 and 2.
  
Line 32: Line 44:
 One warp factor is the size of one quadrant. Therefore to get from quadrant 6,5 to 5,5 you would use course 3, warp factor 1. One warp factor is the size of one quadrant. Therefore to get from quadrant 6,5 to 5,5 you would use course 3, warp factor 1.
  
-6010    &"COMMAND 1 = SHORT RANGE SENSOR SCAN" +==== Command 1 = Short Range Sensor Scan ==== 
-6020    &"  PRINT THE QUADRANT YOU ARE CURRENTLY IN.  INCLUDING" + 
-6030    &"  STARSKLINGONSSTARBASESAND THE ENTERPRISEALONG" +Print the quadrant you are currently in. Including starsKlingonsstarbasesand the Enterprisealong with other pertinant information
-6040    &"  WITH OTHER PERTINATE INFORMATION." + 
-6045    PRINT +==== Command 2 = Long Range Sensor Scan ==== 
-6046    &"COMMAND 2 = LONG RANGE SENSOR SCAN" + 
-6060    &"  SHOWS CONDITIONS IN SPACE FOR ONE QUADRANT ON EACH SIDE" +Shows conditions in space for one quadrant on each side of the Enterprise in the middle of the scanThe scan is coded in the form XXX, where the units digit is the number of starsthe tens digit is the number of starbasesThe hundreds digit is the number of Klingons
-6070    &"  OF THE ENTERPRISE IN THE MIDDLE OF THE SCANTHE SCAN" + 
-6080    &"  IS CODED IN THE FORM XXX, WHERE THE UNITS DIGIT IS THE " +==== Command 3 = Phaser Control ==== 
-6090    &"  NUMBER OF STARSTHE TENS DIGIT IS THE NUMBER OF STAR-" + 
-6100    &"  BASES THE HUNDREDS DIGIT IS THE NUMBER OF KLINGONS." +Allows you to destroy the Klingons by hitting him with suitably large numbers of energy units to deplete his shield powerKeep in mind that when you shoot at himhe gonna shoot at youtoo
-6110    PRINT + 
-6111    &"COMMAND 3 = PHASER CONTROL" +==== Command 4 = Photon Torpedo Control ==== 
-6120    &"  ALLOWS YOU TO DESTROY THE KLINGONS BY HITTING HIM WITH" + 
-6130    &"  SUITABLY LARGE NUMBERS OF ENERGY UNITS TO DEPLETE HIS " +Course is the same as used in warp engine control. If you hit the Klingonhe is destroyed and cannot fire back at youIf you missyou are subject to his phaser fire
-6140    &"  SHIELD POWER KEEP IN MIND THAT WHEN YOU SHOOT AT HIM,+ 
-6150    &"  HE GONNA SHOOT AT YOUTOO!" +**Note**The library computer (Command 7) has an option to compute torpedo trajectory for you (Option 2). 
-6160    PRINT + 
-6161    &"COMMAND 4 = PHOTON TORPEDO CONTROL" +==== Command 5 = Shield Control ==== 
-6170    &"  COURSE IS THE SAME AS USED IN WARP ENGINE CONTROL" + 
-6180    &"  IF YOU HIT THE KLINGONHE IS DESTROYED AND CANNOT FIRE" +Defines number of energy units to be assigned to shields. Energy is taken from total ship's energyNote that total energy includes shield energy
-6190    &"  BACK AT YOU IF YOU MISSYOU ARE SUBJECT TO HIS " + 
-6200    &"  PHASER FIRE." +==== Command 6 = Damage Control Report ==== 
-6210    PRINT + 
-6211    &"  NOTE THE LIBRARY COMPUTER (COMMAND 7) HAS AN OPTION" +Gives state of repairs of all devices. A state of repair less than zero shows that the device is temporarily damaged
-6220    &"  TO COMPUTE TORPEDO TRAJECTORY FOR YOU (OPTION 2)." + 
-6230    PRINT +==== Command 7 = Library Computer ==== 
-6231    &"COMMAND 5 = SHIELD CONTROL" + 
-6240    &"  DEFINES NUMBER OF ENERGY UNITS TO BE ASSIGNED TO SHIELDS" +The library computer contains three options
-6250    &"  ENERGY IS TAKEN FROM TOTAL SHIP'S ENERGY.+ 
-6251    &"  NOTE THAT TOTAL ENERY INCLUDES SHIELD ENERGY." +=== Option 0 = Cumulative Galactic Record === 
-6260    PRINT + 
-6261    &"COMMAND 6 = DAMAGE CONTROL REPORT" +Which shows computer memory of the results of all previous long range sensor scans. 
-6270    &"  GIVES STATE OF REPAIRS OF ALL DEVICES STATE OF REPAIR" + 
-6280    &"  LESS THAN ZERO SHOWS THAT THE DEVICE IS TEMPORARALY" +=== Option 1 = Status Report === 
-6290    &"  DAMAGED." + 
-6300    PRINT +Which shows number of Klingonsstardatesand starbases left
-6301    &"COMMAND 7 = LIBRARY COMPUTER" + 
-6310    &"  THE LIBRARY COMPUTER CONTAINS THREE OPTIONS:" +=== Option 2 = Photon Torpedo Data === 
-6320    &"    OPTION 0 = CUMULATIVE GALACTIC RECORD" + 
-6330    &"      WHICH SHOWS COMPUTER MEMORY OF THE RESULTS" +Gives trajectory and distance between the Enterprise and all Klingons in your quadrant. 
-6340    &"      OF ALL PREVIOUS LONG RANGE SENSOR SCANS" + 
-6350    &"    OPTION 1 = STATUS REPORT" + 
-6360    &"      WHICH SHOWS NUMBER OF KLINGONSSTARDATES,+===== Notes ===== 
-6370    &"      AND STARBASES LEFT." + 
-6380    &"    OPTION 2 = PHOTON TORPEDO DATA" +[*] Minor incompatibilities between DEC BASIC and TWENEX's BASIC-10 required some modification of the source code: 
-6390    &"      GIVES TRAJECTORY AND DISTANCE BETWEEN THE" + 
-6400    &"      ENTERPRISE AND ALL KLINGONS IN YOUR QUADRANT" +  * Arguments removed from calls to function ''RND'' 
-6500    GOTO 230 +  * Multiple colon-separated statements per line split into multiple single-statement lines. 
-6+  * Semicolons inserted between items in ''PRINT'' statements.
tutorials/startrek.1476613623.txt.gz · Last modified: 2016/10/16 10:27 by papa