Star Trek (text game)
A simple version of Star Trek, running in a Linux command terminal. The Enterprise, represented by the "-E-", is alone in a quadrant with four stars.
Star Trek is a text-based computer game that puts the player in command of the USS Enterprise on a mission to hunt down and destroy an invading fleet of Klingon warships. Written in BASIC, it was widely copied to most home computers in the late 1970s when the Super Star Trek version was included in BASIC Computer Games, propelling its sales to become the first million-selling computer book. Versions for a wide variety of BASICs were available, as well as ports to different languages, platforms, and more recently, the replacement of the text-based display with a variety of graphical versions.
In addition to being tied to the Star Trek subculture, popular with computer experts and programmers, Star Trek is itself a piece of hacker lore.
- This description is based on the most common version, Super Star Trek.
The game starts with a short text description of the mission, which required the Enterprise to fly through the galaxy and hunt down a number of Klingon ships within a certain time. Each game started with a different number of Klingons, friendly starbases and stars, spread throughout a galaxy that was arranged as an 8 by 8 grid of "quadrants". Each quadrant is further divided into an 8 by 8 (10 by 10 in some versions) grid of "sectors". The number of items in any one quadrant was fixed at the start of the game, but their exact position within the quadrant was not recorded, and the precise layout would change when the quadrant was left and re-entered.
The Enterprise's local surroundings can be displayed by issuing the short-range scan command,
SRS, which prints a text-based map of the current quadrant's sectors. Stars were represented with a
*, Klingon ships as a
+K+, star bases as an
<*>, and the Enterprise itself with an
-E-. The user can also use the long-range scan,
LRS, to print out an abbreviated map of the quadrants lying directly around the Enterprise, listing only the number of stars, Klingons and starbases in each quadrant.
Klingon ships can be attacked with either phasers or photon torpedos. Phasers do not have to be aimed, but their power falls off with distance, requiring the player to estimate how much power to put into each shot. Torpedoes do not suffer this drop in power and will destroy a Klingon ship with a single hit, but they have to be aimed using polar coordinates, so misses are possible. Klingon ships move after firing on the Enterprise, making re-aiming torpedoes after every "turn" a chore. Most versions of the game included a calculator that will provide the proper angle, so in spite of the tedium of re-aiming it was commonly the primary weapon used. In most versions of the game, stars will absorb torpedoes and require the user to maneuver within the quadrant using the impulse drive,
IMP, to get a clear shot.
Movement, combat and shields all drain the energy supply of the Enterprise, which can be topped up again by flying to a starbase.
The game normally proceeds with the player eliminating Klingons in the opening quadrant, if any. The player then uses long-range scanners to look for nearby ships, selecting a new quadrant and moving there using the warp drive,
WAR. Play continues in this fashion until the Enterprise is low on energy or torpedoes, requiring the player to warp to a starbase to refuel and repair. Each command takes up some game time, closing on the limit imposed at the start of the game.
The game ends when the Enterprise is destroyed, all Klingons are destroyed, or the time limit runs out. A score in the form of a ranking is presented at the end of the game, based on energy usage, damage taken and inflicted, and any remaining time.
Trek developed out of a brainstorming session between Mike Mayfield and several high school friends in 1971. The original Star Trek television show had only recently ended its run and was still extremely popular. Mayfield and his "geek friends" wrote down a number of ideas for a game, and during the summer holidays he then started incorporating as many of them as he could on an SDS Sigma 7, using an illicitly borrowed account at the University of California, Irvine.[a]
Later that summer Mayfield purchased an HP-35 calculator and often visited the local Hewlett-Packard sales office looking for help programming it.[dubious ] They mentioned that they would give him time on their HP 2000C time-sharing computer system if he would port his Star Trek game to it, an offer he readily accepted. HP later started distributing this version of the game as "STTR1" on their Contributed Program tape library.
David H. Ahl worked in DEC's education department, and as a hobby he collected BASIC games and distributed them in a newsletter for DEC users (DECUS). He found Mayfield's HP2000C version, ported it to DEC BASIC-PLUS and sent it out in the newsletter. This version rapidly proliferated through the large DEC community of the early 1970s. He later collected many of the DECUS games into a book, 101 BASIC Games, calling the DEC version SPACWR (as in Space War).
Super Star Trek
In early 1974 Bob Leedom saw Ahl's DEC BASIC version and started porting it to the Data General Nova while working at Westinghouse. During the porting process he took the time to clean up the user interface, introducing the three-letter commands that all following versions used. He wrote a letter about this version in the People's Computer Company magazine, offering a copy to anyone who wrote him.
Ahl had recently left AT&T (where he worked after DEC) to start Creative Computing magazine, and saw Leedom's letter in the PCC. He obtained a copy and published it under the name Super Star Trek in Creative Computing with both of their names on it. It was republished in The Best of Creative Computing in early 1978. Later that year Ahl ported many of the games in the original 101 to Microsoft BASIC, which was rapidly becoming a standard in the home computer market, and published the results as BASIC Computer Games.
This book was published right as the home computer revolution was really starting, and the game was easily ported to most of the platforms being released. Sales of the book, of which Super Star Trek was by far the largest game, reached one million copies by 1979, the first computer book to do so.
Although the history is not recorded specifically, at some point during the game's evolution Ahl obtained permission to use the Star Trek name from Paramount Pictures. David Gerrold, one of Star Trek's writers, was featured in Creative Computing advertising.
The original Sigma 7 version, and its descendants, were ported or copied to a wide variety of platforms. David Matuszek and Paul Reynolds wrote UT Super Star Trek, a version written in FORTRAN that is unrelated to the Super version above. Eric Allman (of sendmail) ported this version to the C programming language to become BSD Trek. The Allman version still exists today as part of the bsdgames package which contains several classic UNIX text games.
Microcomputer versions were widely available and modified. BYTE published a BASIC version by David Price in March 1977, and in 1983 BYTE columnist Jerry Pournelle claimed to have written "the world's most complex Star Trek game" in CBASIC. A version written in Integer BASIC for the Apple II+ was called Apple Trek. Yet another version was written in BASICA for the IBM PC; written by Windmill Software, it was called Video Trek 88, and used numbers 1-9, rather than letter combinations, for most commands. Texas Instruments released TI-Trek for the Texas Instruments TI-99/4A, which incorporated speech if the speech synthesizer and either Speech Editor or Terminal Emulator II cartridge are present. A version of the original game for the Commodore PET was published in the cassette-based magazine Cursor. A lesser known variant, which was also inspired partly by Seabat in More Basic Computer Games, was named Quadrant.
The original Super was later ported to GW-BASIC and shipped as part of that distribution on all new IBM PCs in the early 1980s. By this point the era of type-in programs was ending, and BASIC on the PC never had the same universality as it did on the 8-bit home computers. However, this version kept the game alive and under constant development due to the large installed base of machines. This led to the shareware EGATrek, which replaced the original text-based screens with basic graphics that implemented a multi-paned display.
In early 2000s, Tom Almy created another C port of the original Fortran code by David Matuszek and Paul Reynolds. This port was more feature-rich than the one of Eric Allman, and it became a base for a few independent projects to enrich the game functionality. In 2005 they joined their efforts and created SST2K. This project later started the Python port of the code, but, as of 2012, it is still not completed. SST2K, in addition to the classic text-based control, also has a TUI that allows to see the long-range and short-range scans in real time, as well as many other useful things. In 2008, Michael Birken created a C# port of the original 1971 version, and Kevin Gabbert in 2014 created another C# port called Star Trek KG which has additional features.
Games inspired by it
The original Super Star Trek game also served as the primary inspiration that led former Atari employee Doug Neubauer to write Star Raiders for the Atari 8-bit line of microcomputers in 1979. It was later ported to the Atari 2600 and 5200. Atari also produced an Atari 2600 version of the original text-based game in the Sears-only release Stellar Track. Unlike Star Raiders, the 2600 version more closely followed the layout of the original Star Trek text game. The joystick is used to scroll through the commands and the fire button selects the command.
Another commercial variant was 1985's Star Fleet I: The War Begins, which was text-based and turn-based like the original, but featured greatly expanded detail in almost every part of the game. This game was successful enough to spawn a series.
In the late 1990s, Tom Spreen wrote the Apple Macintosh game Rescue!, loosely based on the original Super. Like Star Raiders, Rescue! was real-time and fully graphical, although presented in 2D in a top-down fashion. Unlike Star Raiders, or the original Super, Rescue! had a much more in-depth mission outline and many more systems to operate (transporters, etc.) The goal in this game was to rescue a number of colonists on various planets and return them to a starbase, then strike out to eliminate the invasion fleet.
Rescue! was written to take place in the Star Trek: The Next Generation universe; by this point in time, Paramount Pictures was aggressively defending its intellectual property, and the author was forced to re-release it with all of the Star Trek related names removed.
The popularity of the original Star Trek show in the mid-1960s generated in the 1970s a wide variety of games known as "Star Trek" or simply "Trek", but that are otherwise unrelated to the games discussed above. Examples include Trek73 and Netrek. A common example in the 1970s and 80s was the Star Trek (script game), which used a "conversational" interface based on statements between the crew and player. This version appeared in Announcing Computer Games for the TRS-80, which was sold through Radio Shack.
- Galaxy Trek
- Star Fleet (game series)
- Star Trek (script game)
- Star Trek: The Kobayashi Alternative
- "Super Star Trek Rules and Notes"
- "Star Trek - To boldly go... and then spawn a million offshoots — "History"". Games of Fame. 13 December 2000. Retrieved 20 May 2009.
- Wilson, Johnny L. (November 1991). "A History of Computer Games". Computer Gaming World. p. 10. Retrieved 18 November 2013.
- "Star Trek". Pete Turnbull's Web site (Clara.net). 26 March 2005. Retrieved 20 May 2009.
- David Ahl and Mary Cole, "Super Star Trek", BASIC Computer Games, 1978
- John Anderson, "Dave tells Ahl; The history of Creative Computing", Creative Computing, Volume 10 Number 11 (November 1984), pg. 66
- "Creative Computing" (advertisement), Popular Science, February 1981, pg. 25
- Price, David (March 1977). "Flights of Fancy with the Enterprise". BYTE. pp. 106–113. Retrieved 16 October 2013.
- Pournelle, Jerry (December 1983). "Buddy, Can You Spare a Door Latch?". BYTE. p. 59. Retrieved 20 October 2013.
- "Star Raiders - One of the best games ever. - "History"". Games of Fame. 1 January 2001. Retrieved 20 May 2009.
- "Stellar Track". Atari Protos.com - Atari 2600 Prototypes. 2002. Retrieved 20 May 2009.
- Murphy, Brian J. (1986-09). "Game Room". inCider. pp. 113–114. Retrieved 2 July 2014. Check date values in:
- Herro, Mark (June 1980). "The Electric Eye". The Dragon (38): 53–54.
- bitsavers.informatik.uni-stuttgart.de — HP 2000C BASIC source code for Mike Mayfield's STTR1 game, extracted from the HP Contributed Library tapes (tar.gz archive)
- Pete Turnbull's Star Trek game ports page (includes a version of the original 1972 HP BASIC source code)
- Chris Nystrom's Classic Computer Game: Star Trek page (C port of the Ahl version)
- History of Star Trek PC Games at the Wayback Machine (archived June 16, 2010) at GameSpot
- C, C++, and C# conversions of the 1976 Tiny BASIC version
- EGA Trek (1992, DOS shareware)
- Visual Star Trek (1990, DOS), features a mouse-based interface
- Star Trek 3.4 TRS-80 version (in Java). This version has numerous changes, including three levels of "depth".
- Star Trek: The Game (Ahl's version in Pascal)
- Startrek - an open source version (written in Seed7) and a history of Startrek