Star Trek: The original computer game

Into darkness: back to the 1970s, Basic and Ascii art


Antique Code Show Ah, the simple pleasures of the earliest computer games - and you don’t get much earlier than 1971.

As Star Trek: Into Darkness warps onto UK cinema screens this weekend, we look back at not only the first attempt to bring the franchise to computer screens, but what was arguably one of the most popular, certainly the most widespread games of the 1970s and early 1980s: Star Trek.

If you’re of a certain age, you’ll almost certainly have played it, whatever make or makes of computer you used back then. I played it first on a Research Machines 380Z, filling many a school lunchbreak with battles against Klingon warships and the exploration of new star systems, all rendered in Ascii characters. But I also tried at least three versions on my Dragon 32 at home, and I’ve watched pals play the game on their BBC Micros, Sinclair Spectrums, Commodore Vic-20s and even a Texas Instruments TI-99/4A.

USS Enterprise in Ascii

Star Trek got everywhere. The three versions I had at home were a hand-typed copy of the 380Z listing which I keyed in and converted soon after I got my computer. Later, I tried a version originally produced for the Tandy TRS-80 Color Computer but processed to run on the not-quite-compatible Dragon. Not long after, I briefly had a go at Dragon Trek, published by Salamander Software and - ahem - copied quite illicitly using a dual-tape cassette recorder.

There were undoubtedly more versions for the Dragon - I know of at least two more - each ultimately derived from the Basic code written by David H Ahl in 1973, as were the many, many other versions produced for all the other home micros of the period.

But Ahl wasn’t the game’s creator. That honour goes to one Mike Mayfield, who wrote it in Basic during the summer months of 1971. It wasn’t the first computer game named after or based on the Star Trek TV series - Ahl would later say he remembered seeing several in the late 1960s - but it was the first of the ‘find and fight Klingons’ strategy type.

Mayfield wrote Star Trek on a Scientific Data Systems Sigma 7 mainframe operated by the University of California, Irvine. He was still at school, but he says he managed to acquire a user account anyway, by less than legitimate means.

Mike Mayfield's Star Trek listing

Mike Mayfield's HP2000 Basic listing

It proved irresistible to everyone who saw it. Around the same time, for instance, he called in on a nearby HP sales office to buy a HP-35 programmable calculator. He got to know the guys there, and at some point told them about the game he’d written on the Sigma 7. They were so keen to have a go themselves, they asked him to port it to their HP 2000 minicomputer.

The 18-year-old Mayfield agreed and soon got Star Trek running on its second platform, implemented in HP Basic in October 1972, and published early the following year by HP on tape. HP put the software in the public domain. It was this version that Ahl encountered and was sufficiently enthused with to create a third version, this one in Digital Equipment’s implementation of Basic. He produced the code in the summer of 1973, tweaking it a little in the process. He credits DEC’s Mary Cole as a contributor. He published the listing in the DEC User Society newsletter, and soon users were clamouring for copies so they could run Star Trek on their own machines.

Like a virus, the game spread from system to system. Ahl’s Basic version would ultimately lead to Apple Trek, the version Apple itself released commercially for its Apple II microcomputer in 1979. It was written by W Sander, and the name was changed to avoid copyright issues, of course, and that was true of all the other commercial releases. AcornSoft’s release was called Galaxy, for instance; Tandy’s Space Trek. Apple Trek wasn’t the only version published for a late 1970s microcomputer - Star Trek appeared on the Commodore Pet, the Tandy TRS-80 Model I and, as I’ve mentioned the RML 380Z - but the popuarity of the Apple micro and the decision to release the software commercially, undoubtedly means its influence was far reaching.

Apple Trek

Star Trek on the Apple II

It’s almost certainly this version that led to the appearance of Star Trek on the 8-bit home computers of the early 1980s, particularly over here in the UK. That said, here were no shortage of other releases to inspire programmers to adapt versions from one dialect of Basic to another, or simply to write their own code that played the same way. Indeed, there must be thousands of versions which tweaked the gameplay and which never made it beyond their writer’s computer and perhaps one or two friends’ machines. There were the many versions of the game coders got published in the period’s computer listings magazines.

Next page: Boldly going 8-bit

Similar topics


Other stories you might like

  • Tesla disables in-car gaming feature that allowed play while MuskMobiles were in motion
    Hey Elon, it's no secret that distracted driving is a major cause of US car fatalities

    A software upgrade will disable a "feature" that allows the touchscreen on Tesla cars to play video games - even while the vehicles are in motion- after the USA's National Highway Traffic Safety Administration (NHTSA) investigated a complaint about the tech.

    The feature, called "Passenger Play", has been available since 2020 in the Tesla Model 3, S, X, and Y. As the name implies, it was aimed at passengers. Prior to 2020, occupants of the car could only play games while the vehicle was in park.

    “Following the opening of a preliminary evaluation of Tesla’s ‘Passenger Play,’ Tesla informed the agency that it is changing the functionality of this feature. In a new software update, “Passenger Play” will now be locked and unusable when the vehicle is in motion,” said a statement from NHTSA.

    Continue reading
  • New World: Grindy? Check. Repetitive? Check. Fun? We hate to say it... but check
    Goddamn it, Jeff Bezos' lot can make a passable MMORPG after all

    The RPG Greetings, traveller, and welcome back to The Register Plays Games, our (sometimes) monthly gaming column. At long last, New World is out and we've been diligently grinding our faces off to answer the question: Can Jeff "mountains of cash" Bezos make a decent MMO?

    On 28 September, Amazon Games released its first serious, big-boy-pants-on video game: New World. Why does this matter? First of all, it's Amazon. Not content with anything short of global domination, Jeff Bezos' e-commerce and cloud computing juggernaut has had a sticky start with gaming – two titles prior to New World, Breakaway and Crucible, were scrapped – and people would love to see the venture fail. I would love to see the venture fail.

    Secondly, New World is an MMORPG. That's "massively multiplayer online roleplaying game" to the untainted. As far as game development goes, it's hard to think of a more complicated and ambitious genre, especially as this has transpired to be Amazon's "debut" outside of the mobile platform.

    Continue reading
  • The inside story of ransomware repeatedly masquerading as a popular JS library for Roblox gamers
    Ongoing typosquatting attacks target kids as Discord drags its feet

    Since early September, Josh Muir and five other maintainers of the noblox.js package, have been trying to prevent cybercriminals from distributing ransomware through similarly named code libraries.

    Noblox.js is a wrapper for the Roblox API, which many gamers use to automate interactions with the hugely popular Roblox game platform. And for the past few months the software has been targeted by "a user who is hell-bent on attacking our user-base with malware, and continues to make packages to this end," explained Muir in an email to The Register.

    This miscreant, with the assistance of at least one other, has been "typosquatting" the noblox.js package by uploading similarly named packages that deliver ransomware to NPM, a registry for open source JavaScript libraries, and then promoting the malware-laden files via Discord, a messaging and chat service.

    Continue reading
  • Real world not giving you enough anxiety? Try being hunted down by the perfect organism in Alien: Isolation
    2014 stealth-em-up hasn't aged a day

    The RPG Greetings, traveller, and welcome back to The Register Plays Games, our monthly gaming column. Not that anybody noticed but we skipped the last edition for a number of reasons. 1) Too many betas. Though we were monitoring developments in potential World of Warcraft killer New World and Left 4 Dead's spiritual successor, Back 4 Blood, we didn't see anything that could be discussed fairly. 2) Generally no new full releases of interest. 3) We had to RMA a graphics card and got sad. However, when setting out the vision for this column, there were no hard and fast rules about what got covered. So this time we're headed back to 2014 and a crumbling space station where something extremely violent and dangerous lurks in the shadows…

    I own two copies of Alien: Isolation. The first was bought on disc for the Xbox One at release seven years ago. At this point I had never truly committed to a "survival horror" simply because, while horror films and literature are great, horror games are another kettle of fish.

    The flicking of pages and glow from the big screen are gentle reminders that you are "safe". But gaming, as a far more immersive and active (dare I say) art form, is too real. Done well, your body and mind can forget that you're not actually about to be murdered – at least in my case.

    Continue reading
  • Amazon Game Studios to its own devs: All your codebase doesn't belong to us
    E-goliath's subsidiary drops 'draconian' contract terms that absorbed personal work, demanded license rights

    Analysis Amazon Game Studios has reportedly dropped terms in its employment contract that gave the internet giant a license to the intellectual property created by employees, even to games they develop on their own time.

    The expansive contractual terms received some attention last month when James Liu, a software engineer at Google, recounted via Twitter how in 2018 he turned down a job offer at Amazon "due to absolutely draconian rules regarding hobbyist game dev."

    His Twitter post from July 6, 2021, since deleted, included a screenshot of a contractual agreement that laid out specific terms by which employees were allowed to develop or release "Personal Games."

    Continue reading
  • Days Gone PC: Melting pot of open-world influences makes for one of the more immersive zombie slayers out there
    Decent port of a PlayStation 4 'exclusive', but it's far from original

    The RPG Greetings, traveller, and welcome back to The Register Plays Games, our monthly gaming column. In May, the industry finally pushed some hot properties out the door including Resident Evil Village, Biomutant, and the Mass Effect remasters. But we opted to check out something just a little bit older.

    Though pop culture might have reached peak zombie almost a decade ago, Oregon-based Bend Studio still managed to walk away with a decent game in the 2019 PlayStation 4 "exclusive" Days Gone. We say "exclusive" because we've been playing the PC port, which came out on 18 May. This follows a recent trend of titles made specifically for Sony's last-gen console being re-released for PC a couple of years later including Death Stranding and Horizon Zero Dawn.

    Yes, the world stopped giving a toss after the eleventy-first season of AMC's flagging comic book adaptation The Walking Dead, but somehow surviving a zombie apocalypse remains a gripping setting for many – yours truly included. Even if it's one of the most done-to-death concepts under the sun, Bend has done a fantastic job of rendering an Oregon scorched by a mysterious viral epidemic that has turned 99 per cent of the population into rabid, shambling cannibals.

    Continue reading
  • If you're not sold on the benefits of 5G, Ericsson suggests you keep an eye on gaming, home broadband
    NA CEO predicts takeoff in 18 months max

    Folks in the US will see the transformative effects of 5G first in the areas of online gaming and fixed wireless broadband internet connections, Ericsson North America CEO Niklas Heuveldop said on Thursday.

    "When it comes to new services, look at gaming as one of the sectors that holds promise for 5G. You need the unique throughput that 5G offers ... and the instant response," he said during a webcast hosted by The Washington Post. And yes, Heuveldop works for the Ericsson that makes and sells 5G network equipment.

    5G networks – which promise increased capacity as well as high throughput and low latency – could move game console hardware from the edge of your furniture to the edge of a network, he said, adding that is already happening in places such as South Korea, where high-performance 5G networks are operational. That is to say, the gameplay processing is done remotely and piped to a relatively simple terminal in your home, potentially using 5G if the connectivity is available.

    Continue reading

Biting the hand that feeds IT © 1998–2022