<s>
Star	B-Application
Trek	I-Application
is	O
a	O
text-based	O
strategy	B-Application
video	I-Application
game	I-Application
based	O
on	O
the	O
Star	B-Application
Trek	I-Application
television	O
series	B-Application
(	O
1966	O
–	O
69	O
)	O
and	O
originally	O
released	O
in	O
1971	O
.	O
</s>
<s>
The	O
player	O
travels	O
through	O
the	O
64	O
quadrants	O
of	O
the	O
galaxy	O
to	O
attack	O
enemy	O
ships	O
with	O
phasers	O
and	O
photon	O
torpedoes	O
in	O
turn-based	O
battles	O
and	O
refuel	O
at	O
starbases	B-Application
.	O
</s>
<s>
Mike	B-Application
Mayfield	I-Application
wrote	O
the	O
game	O
in	O
the	O
BASIC	O
programming	O
language	O
for	O
the	O
SDS	B-Device
Sigma	I-Device
7	I-Device
mainframe	B-Architecture
computer	I-Architecture
with	O
the	O
goal	O
of	O
creating	O
a	O
game	O
like	O
Spacewar	B-Application
!	I-Application
</s>
<s>
He	O
then	O
rewrote	O
it	O
for	O
the	O
HP	B-Language
2000C	I-Language
minicomputer	B-Architecture
in	O
1972	O
,	O
and	O
it	O
was	O
included	O
in	O
Hewlett-Packard	O
'	O
s	O
public	O
domain	O
software	O
catalog	O
the	O
following	O
year	O
.	O
</s>
<s>
It	O
was	O
picked	O
up	O
from	O
there	O
by	O
David	O
H	O
.	O
Ahl	O
,	O
who	O
ported	O
it	O
with	O
Mary	O
Cole	O
to	O
BASIC-PLUS	B-Language
and	O
published	O
the	O
source	O
code	O
in	O
the	O
Digital	O
Equipment	O
Corporation	O
Edu	O
newsletter	O
.	O
</s>
<s>
It	O
was	O
republished	O
with	O
other	O
computer	O
games	O
in	O
his	O
best-selling	O
101	B-Application
BASIC	I-Application
Computer	I-Application
Games	I-Application
book	O
.	O
</s>
<s>
Bob	O
Leedom	O
then	O
expanded	O
the	O
game	O
in	O
1974	O
into	O
Super	O
Star	B-Application
Trek	I-Application
.	O
</s>
<s>
He	O
began	O
porting	O
the	O
games	O
from	O
101	O
to	O
Microsoft	B-Language
BASIC	I-Language
,	O
with	O
the	O
exception	O
of	O
Star	B-Application
Trek	I-Application
,	O
where	O
he	O
ported	O
Leedom	O
's	O
version	O
rather	O
than	O
Mayfield	O
's	O
original	O
.	O
</s>
<s>
The	O
result	O
was	O
released	O
in	O
1978	O
under	O
the	O
new	O
name	O
BASIC	B-Application
Computer	I-Application
Games	I-Application
.	O
</s>
<s>
This	O
hit	O
the	O
market	O
just	O
as	O
the	O
first	O
microcomputers	B-Architecture
able	O
to	O
run	O
the	O
game	O
were	O
coming	O
to	O
market	O
.	O
</s>
<s>
BASIC	B-Application
Computer	I-Application
Games	I-Application
went	O
on	O
to	O
become	O
the	O
first	O
million-selling	O
computer	O
book	O
,	O
and	O
versions	O
of	O
the	O
game	O
were	O
available	O
for	O
almost	O
all	O
personal	B-Device
computers	I-Device
of	O
the	O
era	O
.	O
</s>
<s>
Star	B-Application
Trek	I-Application
is	O
a	O
text-based	O
strategy	B-Application
video	I-Application
game	I-Application
based	O
on	O
the	O
Star	B-Application
Trek	I-Application
television	O
series	B-Application
in	O
which	O
the	O
player	O
,	O
controlling	O
the	O
USS	O
Enterprise	O
starship	O
,	O
flies	O
through	O
the	O
galaxy	O
and	O
hunts	O
down	O
Klingon	O
warships	O
within	O
a	O
time	O
limit	O
.	O
</s>
<s>
Each	O
game	O
starts	O
with	O
a	O
different	O
number	O
of	O
Klingons	O
,	O
friendly	O
starbases	B-Application
,	O
and	O
stars	O
spread	O
throughout	O
the	O
galaxy	O
.	O
</s>
<s>
The	O
number	O
of	O
stars	O
,	O
Klingons	O
,	O
and	O
starbases	B-Application
in	O
any	O
one	O
quadrant	O
is	O
set	O
at	O
the	O
start	O
of	O
the	O
game	O
,	O
but	O
their	O
exact	O
position	O
changes	O
each	O
time	O
the	O
player	O
enters	O
that	O
quadrant	O
.	O
</s>
<s>
Stars	O
,	O
Klingon	O
ships	O
,	O
starbases	B-Application
,	O
and	O
the	O
Enterprise	O
itself	O
are	O
shown	O
as	O
text-based	O
figures	O
in	O
a	O
square	O
grid	O
;	O
the	O
Enterprise	O
,	O
for	O
example	O
,	O
is	O
represented	O
with	O
-E-	O
.	O
</s>
<s>
The	O
player	O
can	O
also	O
use	O
the	O
long-range	O
scan	O
to	O
print	O
out	O
a	O
map	O
of	O
the	O
quadrants	O
lying	O
directly	O
around	O
the	O
Enterprise	O
,	O
with	O
a	O
list	O
of	O
the	O
number	O
of	O
stars	O
,	O
Klingons	O
,	O
and	O
starbases	B-Application
in	O
each	O
quadrant	O
.	O
</s>
<s>
Movement	O
,	O
combat	O
,	O
and	O
shields	O
all	O
drain	O
the	O
energy	O
supply	O
of	O
the	O
Enterprise	O
,	O
which	O
can	O
be	O
restored	O
by	O
flying	O
to	O
a	O
starbase	B-Application
.	O
</s>
<s>
In	O
some	O
versions	O
of	O
the	O
game	O
,	O
there	O
are	O
additional	O
options	O
for	O
emergency	O
situations	O
,	O
such	O
as	O
calling	O
for	O
help	O
from	O
a	O
starbase	B-Application
,	O
using	O
the	O
experimental	O
Death	O
Ray	O
,	O
loading	O
raw	O
dilithium	O
crystals	O
into	O
the	O
warp	O
drive	O
,	O
or	O
abandoning	O
ship	O
.	O
</s>
<s>
In	O
1971	O
,	O
Mike	B-Application
Mayfield	I-Application
,	O
then	O
in	O
his	O
final	O
year	O
of	O
high	O
school	O
,	O
frequented	O
a	O
computer	O
lab	O
at	O
the	O
University	O
of	O
California	O
,	O
Irvine	O
while	O
teaching	O
himself	O
how	O
to	O
program	O
.	O
</s>
<s>
The	O
lab	O
operated	O
both	O
a	O
SDS	B-Device
Sigma	I-Device
7	I-Device
and	O
a	O
DEC	B-Device
PDP-10	I-Device
mainframe	B-Architecture
computer	I-Architecture
.	O
</s>
<s>
The	O
PDP-10	B-Device
hosted	O
a	O
copy	O
of	O
Spacewar	O
!,	O
a	O
multiplayer	O
space	O
combat	O
video	O
game	O
developed	O
in	O
1962	O
in	O
the	O
early	B-Application
history	I-Application
of	I-Application
video	I-Application
games	I-Application
.	O
</s>
<s>
Mayfield	O
had	O
gained	O
illicit	O
access	O
to	O
the	O
Sigma	B-Device
7	I-Device
at	O
the	O
lab	O
and	O
wanted	O
to	O
create	O
his	O
own	O
version	O
of	O
the	O
game	O
for	O
the	O
system	O
.	O
</s>
<s>
Spacewar	B-Application
!	I-Application
</s>
<s>
required	O
a	O
vector	O
graphics	O
display	O
,	O
however	O
,	O
and	O
the	O
Sigma	B-Device
7	I-Device
only	O
had	O
access	O
to	O
a	O
non-graphical	O
Teletype	B-Application
Model	I-Application
33	I-Application
ASR	O
teleprinter	O
.	O
</s>
<s>
Mayfield	O
decided	O
to	O
create	O
a	O
game	O
in	O
the	O
vein	O
of	O
Spacewar	B-Application
!	I-Application
</s>
<s>
As	O
none	O
of	O
the	O
group	O
had	O
much	O
experience	O
with	O
computers	O
,	O
most	O
of	O
the	O
ideas	O
were	O
unfeasible	O
,	O
but	O
one	O
concept	O
he	O
liked	O
and	O
thought	O
was	O
possible	O
was	O
a	O
game	O
based	O
on	O
Star	B-Application
Trek	I-Application
,	O
then	O
in	O
syndication	O
on	O
television	O
.	O
</s>
<s>
Later	O
that	O
summer	O
,	O
Mayfield	O
purchased	O
an	O
HP-35	B-Device
calculator	O
and	O
often	O
visited	O
the	O
local	O
Hewlett-Packard	O
sales	O
office	O
.	O
</s>
<s>
The	O
staff	O
there	O
offered	O
to	O
let	O
him	O
use	O
the	O
HP	B-Language
2000C	I-Language
minicomputer	B-Architecture
at	O
the	O
office	O
if	O
he	O
would	O
create	O
a	O
version	O
of	O
his	O
Star	B-Application
Trek	I-Application
game	O
for	O
it	O
;	O
as	O
the	O
version	O
of	O
the	O
BASIC	O
programming	O
language	O
on	O
the	O
computer	O
was	O
different	O
from	O
the	O
Sigma	B-Device
7	I-Device
,	O
he	O
elected	O
to	O
abandon	O
the	O
Sigma	B-Device
7	I-Device
version	O
and	O
rewrite	O
the	O
program	O
from	O
scratch	O
.	O
</s>
<s>
He	O
completed	O
it	O
on	O
October	O
20	O
,	O
1972	O
,	O
and	O
the	O
game	O
was	O
added	O
to	O
the	O
HP	O
public	O
domain	O
Contributed	O
Program	O
library	O
of	O
software	O
as	O
STTR1	B-Application
in	O
February	O
1973	O
,	O
with	O
Mayfield	O
attributing	O
the	O
game	O
to	O
Centerline	O
Engineering	O
,	O
a	O
company	O
he	O
was	O
considering	O
starting	O
.	O
</s>
<s>
He	O
and	O
fellow	O
employee	O
Mary	O
Cole	O
ported	O
STTR1	B-Application
to	O
DEC	O
's	O
BASIC-PLUS	B-Language
in	O
the	O
summer	O
of	O
1973	O
,	O
with	O
some	O
additions	O
,	O
and	O
he	O
published	O
this	O
version	O
in	O
the	O
newsletter	O
.	O
</s>
<s>
Ahl	O
attributed	O
the	O
game	O
to	O
"	O
Mike	B-Application
Mayfield	I-Application
of	O
Centerline	O
Engineering	O
and/or	O
Custom	O
Data	O
"	O
.	O
</s>
<s>
In	O
late	O
1973	O
,	O
Ahl	O
collected	O
many	O
of	O
the	O
game	O
submissions	O
in	O
the	O
book	O
101	B-Application
BASIC	I-Application
Computer	I-Application
Games	I-Application
,	O
containing	O
descriptions	O
and	O
the	O
source	O
code	O
for	O
many	O
early	B-Application
mainframe	I-Application
games	I-Application
.	O
</s>
<s>
101	B-Application
BASIC	I-Application
Computer	I-Application
Games	I-Application
was	O
a	O
landmark	O
title	O
in	O
computer	O
games	O
programming	O
,	O
and	O
was	O
a	O
best-selling	O
title	O
with	O
more	O
than	O
10,000	O
copies	O
sold	O
more	O
copies	O
than	O
there	O
were	O
computers	O
in	O
existence	O
at	O
the	O
time	O
.	O
</s>
<s>
As	O
such	O
,	O
the	O
BASIC	O
ports	O
of	O
mainframe	B-Architecture
computer	I-Architecture
games	O
included	O
in	O
the	O
book	O
were	O
often	O
more	O
long-lived	O
than	O
their	O
original	O
versions	O
or	O
other	O
mainframe	B-Architecture
computer	I-Architecture
games	O
.	O
</s>
<s>
He	O
included	O
Star	B-Application
Trek	I-Application
in	O
the	O
book	O
as	O
SPACWR	O
,	O
i.e.	O
</s>
<s>
In	O
early	O
1974	O
,	O
Bob	O
Leedom	O
saw	O
Ahl	O
's	O
version	O
of	O
the	O
game	O
in	O
101	B-Application
BASIC	I-Application
Computer	I-Application
Games	I-Application
while	O
working	O
with	O
a	O
Data	B-Device
General	I-Device
Nova	I-Device
800	I-Device
minicomputer	B-Architecture
at	O
Westinghouse	O
Electric	O
Corporation	O
and	O
,	O
having	O
never	O
seen	O
a	O
Star	B-Application
Trek	I-Application
game	O
before	O
,	O
started	O
porting	O
it	O
to	O
the	O
system	O
.	O
</s>
<s>
Ahl	O
ported	O
it	O
to	O
Microsoft	B-Language
BASIC	I-Language
and	O
published	O
the	O
source	O
code	O
of	O
the	O
game	O
as	O
Super	O
Star	B-Application
Trek	I-Application
to	O
distinguish	O
it	O
from	O
the	O
original	O
Star	B-Application
Trek	I-Application
game	O
,	O
calling	O
it	O
"	O
by	O
far	O
the	O
best	O
"	O
version	O
.	O
</s>
<s>
He	O
later	O
included	O
it	O
under	O
that	O
name	O
in	O
the	O
1976	O
anthology	O
The	O
Best	O
of	O
Creative	O
Computing	O
as	O
well	O
as	O
the	O
1978	O
edition	O
of	O
101	B-Application
BASIC	I-Application
Computer	I-Application
Games	I-Application
,	O
retitled	O
BASIC	B-Application
Computer	I-Application
Games	I-Application
.	O
</s>
<s>
BASIC	B-Application
Computer	I-Application
Games	I-Application
was	O
the	O
first	O
million-selling	O
computer	O
book	O
,	O
giving	O
Leedom	O
's	O
version	O
a	O
much	O
wider	O
audience	O
than	O
Mayfield	O
and	O
Ahl	O
's	O
original	O
versions	O
.	O
</s>
<s>
Star	B-Application
Trek	I-Application
,	O
especially	O
the	O
Super	O
Star	B-Application
Trek	I-Application
version	O
,	O
was	O
immensely	O
popular	O
for	O
the	O
era	O
.	O
</s>
<s>
By	O
1975	O
it	O
had	O
spread	O
to	O
mainframes	B-Architecture
across	O
the	O
United	O
States	O
,	O
and	O
Ahl	O
stated	O
in	O
1978	O
in	O
BASIC	B-Application
Computer	I-Application
Games	I-Application
that	O
it	O
was	O
difficult	O
to	O
find	O
a	O
computer	O
installation	O
that	O
did	O
not	O
contain	O
a	O
version	O
of	O
Star	B-Application
Trek	I-Application
.	O
</s>
<s>
By	O
1980	O
,	O
Star	B-Application
Trek	I-Application
was	O
described	O
by	O
Mark	O
Herro	O
in	O
The	O
Dragon	O
magazine	O
as	O
"	O
one	O
of	O
the	O
most	O
popular	O
(	O
if	O
not	O
the	O
most	O
popular	O
)	O
computer	O
games	O
around	O
"	O
,	O
with	O
"	O
literally	O
scores	O
of	O
different	O
versions	O
of	O
this	O
game	O
floating	O
around	O
"	O
.	O
</s>
<s>
At	O
least	O
one	O
published	O
work	O
of	O
fiction	O
that	O
year	O
mentioned	O
the	O
game	O
,	O
the	O
short	O
story	O
"	O
Another	O
Game	O
of	O
Spacewar	B-Application
"	O
,	O
published	O
in	O
an	O
anthology	O
by	O
Creative	O
Computing	O
.	O
</s>
<s>
The	O
widespread	O
popularity	O
of	O
the	O
game	O
,	O
especially	O
Super	O
Star	B-Application
Trek	I-Application
,	O
along	O
with	O
the	O
availability	O
of	O
the	O
source	O
code	O
,	O
led	O
to	O
numerous	O
ports	O
of	O
both	O
versions	O
of	O
the	O
game	O
for	O
mainframe	B-Architecture
and	O
microcomputers	B-Architecture
.	O
</s>
<s>
Alternate	O
versions	O
of	O
the	O
game	O
were	O
also	O
produced	O
,	O
based	O
on	O
Star	B-Application
Trek	I-Application
,	O
Super	O
Star	B-Application
Trek	I-Application
,	O
or	O
both	O
.	O
</s>
<s>
David	O
Matuszek	O
and	O
Paul	O
Reynolds	O
wrote	O
an	O
expanded	O
Fortran	B-Application
version	O
of	O
the	O
original	O
game	O
as	O
UT	O
Super	O
Star	B-Application
Trek	I-Application
;	O
Eric	O
Allman	O
ported	O
this	O
version	O
to	O
the	O
C	B-Language
programming	I-Language
language	I-Language
to	O
become	O
BSD	O
Trek	O
,	O
which	O
is	O
still	O
included	O
in	O
the	O
Debian	O
classic	O
Unix	B-Application
games	O
package	O
.	O
</s>
<s>
In	O
1983	O
BYTE	O
columnist	O
Jerry	O
Pournelle	O
claimed	O
to	O
have	O
written	O
"	O
the	O
world	O
's	O
most	O
complex	O
Star	B-Application
Trek	I-Application
game	O
"	O
in	O
CBASIC	B-Language
.	O
</s>
<s>
A	O
shareware	B-License
version	O
for	O
MS-DOS	B-Application
,	O
EGATrek	O
,	O
was	O
released	O
in	O
the	O
late	O
1980s	O
that	O
replaced	O
the	O
original	O
text-based	O
screens	O
with	O
basic	O
graphics	O
that	O
implemented	O
a	O
multi-paned	O
display	O
.	O
</s>
<s>
In	O
2017	O
,	O
PC	B-Device
Gamer	O
ranked	O
EGATrek	O
among	O
the	O
best	O
Star	B-Application
Trek	I-Application
games	O
.	O
</s>
<s>
Apple	O
Inc	O
.	O
released	O
a	O
version	O
for	O
the	O
Apple	O
II+	O
called	O
Apple	O
Trek	O
in	O
1979	O
,	O
and	O
Atari	O
,	O
Inc	O
.	O
released	O
a	O
version	O
for	O
the	O
Atari	B-General_Concept
2600	I-General_Concept
as	O
Stellar	B-Application
Track	I-Application
in	O
1980	O
.	O
</s>
<s>
The	O
TRS-80	O
had	O
at	O
least	O
three	O
separate	O
commercially	O
available	O
Star	B-Application
Trek	I-Application
games	O
,	O
including	O
Trek-80	O
by	O
Processor	O
Technology	O
(	O
later	O
retitled	O
Invasion	O
Force	O
)	O
which	O
added	O
more	O
interactivity	O
and	O
a	O
number	O
of	O
new	O
options	O
incorporated	O
from	O
the	O
unrelated	O
Trek73	B-Application
,	O
a	O
second	O
Trek-80	O
by	O
Judges	O
Guild	O
,	O
and	O
Startrek	O
3.5	O
from	O
Adventure	O
International	O
.	O
</s>
<s>
Yet	O
another	O
version	O
was	O
written	O
in	O
BASICA	B-Language
for	O
the	O
IBM	B-Device
Personal	I-Device
Computer	I-Device
in	O
1982	O
,	O
Video	B-Application
Trek	I-Application
88	I-Application
;	O
written	O
by	O
Windmill	O
Software	O
,	O
it	O
used	O
numbers	O
for	O
most	O
commands	O
,	O
like	O
the	O
earlier	O
BYTE	O
version	O
.	O
</s>
<s>
Apex	O
Software	O
released	O
TI-Trek	O
for	O
the	O
TI-99/4A	B-Device
in	O
1983	O
,	O
which	O
incorporates	O
speech	O
if	O
the	O
speech	O
synthesizer	O
is	O
present	O
.	O
</s>
<s>
1984	O
's	O
Star	B-Application
Fleet	I-Application
I	I-Application
:	I-Application
The	I-Application
War	I-Application
Begins	I-Application
by	O
Interstel	O
was	O
a	O
variant	O
released	O
commercially	O
for	O
several	O
computer	O
systems	O
.	O
</s>
<s>
This	O
game	O
was	O
successful	O
enough	O
to	O
spawn	O
a	O
series	B-Application
.	O
</s>
<s>
Additionally	O
,	O
some	O
commercial	O
games	O
have	O
been	O
inspired	O
by	O
Star	B-Application
Trek	I-Application
,	O
such	O
as	O
Star	B-Application
Raiders	I-Application
(	O
1980	O
)	O
,	O
which	O
was	O
initially	O
designed	O
as	O
a	O
real	O
time	O
,	O
3D	O
version	O
of	O
the	O
game	O
.	O
</s>
<s>
As	O
late	O
as	O
1994	O
,	O
the	O
collective	O
Star	B-Application
Trek	I-Application
variants	O
were	O
still	O
popular	O
enough	O
that	O
Computer	O
Gaming	O
World	O
claimed	O
that	O
the	O
otherwise	O
unrelated	O
Stellar	O
Explorers	O
gameplay	O
was	O
directly	O
based	O
on	O
it	O
,	O
and	O
that	O
"	O
anyone	O
who	O
remembers	O
the	O
old	O
Trek	O
games[...]	O
will	O
know	O
exactly	O
what	O
this	O
game	O
is	O
all	O
about	O
"	O
.	O
</s>
