    ********** Star Trek in Just BASIC v0.1 **********
     **********  Variables and Their Use  **********

' integer arrays
' G(8,8) = map of galaxy.  From instructions: each element is 3-digit number showing
'   # of klingons, starbases and stars in quadrant.
' C(9,2) = filled with -1. 0, 1.  Constant.  Used in navigation
' K(3,3) = K[n,1], K[n,2]=location of Klingon in quadrant. K[n,3]=shield strength
' Z(8,8) = Array of scanned quadrants.  0=unscanned
' D() = device damage array.  <0 means device is damaged.
'    Device names are in D$.  1=Engine, 2=Short Range Sensors, 3=Long Range Sensors, 
'    4=Phasers, 5=Photons, 6=damage control, 7=shield control, 8=computer

' stringS
' A$ = 3-character temp string for compares and to place an object.
'   "   "=empty, "<*>"=enterprise, "+++"=klingon, ">!<"=starbase, " * "=star
' C$ = condition of quadrant.
'   GREEN=safe, YELLOW=Low on energy, RED=Klingon in quadrant, DOCKED=at Starbase
' Q$ = 192-character Quadant map.  Used for short range scan

 
' A = user input.  Our Main Command (0-7)
' B3 = # of starbases in quadrant
' B9 = # of starbases in galaxy (all quadrants)
' C1 = user input.  course (1-9) of Enterprise or torpedo
' D0 = flag to show docking status.  Set in short range scan sub
' D$ = strings holding device names ("WARP ENGINES", "L.R.SENSOR", etc.)
' E0 = 3000  Constant. Starting energy for Enterprise
' E  = current enterprise energy
' H = size of phaser hit on ship
' H8 = unused.  looks like it was intended as flag for calculator use but not used.
' I, J = FOR / NEXT loop vars
' K3 = # of Klingons in quadrant
' K7 = starting # of klingons in galaxy.  Use for efficiency rating at end of game.
' K9 = # of klingons in galaxy
' P0 = 10  Constant.  Starting # of photon torpedoes
' P = # of photon torpedoes
' Q1, Q2  = Enterprise Quadrant coordinates
' Q$ = string holding sector information.
' R1, R2 = temp vars for GOSUBs 5510 and 5380
' S = Enterprise shield energy
' S1, S2  = Enterprise sector coordinates
' S3 = # of stars in quadrant
' S9 = 200  Constant  starting Klingon shield strength
' T0 = random # = starting stardate
' T  = current stardate
' T9 = 30 = # of stardates to complete mission
' T7 = Real world starting time for game (in minutes???)
' W1 = user input.  enterprise warp factor
' X  = user input.  phaser energy, shield energy, quadrant coordinate, etc.
' X1, X2 = used in navigation for Enterprise and torpedo
' A$,Z1,Z2,S8 = temporary variables used in GOSUBs 5510 and 5680

' DEF FND(D) = one line function.  Distance between Klingon[I] and S1, S2
'    To work properly change argument D to I and declare S1 & S2 global

' Variables added:
'   gameOver ' game status Flag. 0=keep playing, <0=loss, >0=win
'   newquad  ' Flag. set to 1 when we fly out of quadrant
'   badnav   ' Flag. Set to 1 when we fly into an object.



