Late April 1962, and Steve Russell, 24, sat at the newly installed PDP-1, a DEC minicomputer at MIT, with the Science Open House only days away. On the screen, two ships waited to fight each other.
Around Russell, the people who had helped build the thing kept working: Martin Graetz, Wayne Wiitanen, Bob Saunders, Steve Piner and others. The real trouble was the memory. Early PDP-1s carried only 1,000 to 4,000 characters of it, so every new feature the group wanted had to fight the others for a share.
The computer had nothing to spare for steering a second ship, so no machine opponent would ever fly against a player. The game needed two people, one at each side of the screen.

The Excuse Kotok Wouldn't Accept
Russell had no plans to write the game himself. Friends kept pressing him anyway, and he kept answering with reasons why he could not.
His best excuse was a gap in the machine's toolkit. The PDP-1 had no routine for sine and cosine, the trigonometry a program needs to turn a spaceship and know which way its nose points. Without one, Russell argued, there was no point starting.
Alan Kotok did not argue back. He phoned DEC, the company that built the PDP-1, and learned that it already had such a routine. In the version of the story that survives, Kotok then drove out to DEC, picked up the tape, and slammed it down in front of Russell. He asked what other excuses Russell had.
Russell had none. Later he explained that no excuse was left, and he had to settle down to figuring. He began writing code around the end of December 1961.
The project already had a spirit behind it. Russell, Martin Graetz and Wayne Wiitanen called themselves the Hingham Institute, because Graetz and Wiitanen lived on Hingham Street in Cambridge. The three set down their precepts: the game should use as much of the computer as possible, every run should be different, and it should be a game. Wiitanen would not be there to see it through, because the US Army Reserve had called him up.
The same month Russell sat down to figure, the PDP-1's new display was finally installed.
A Computer You Could Watch
Russell sat down at the PDP-1 and looked over what the machine could already do: a paper tape reader and writer, and a panel of switches for input. The computer stood on the second floor of Building 26, home of MIT's Electrical Engineering Department. It had arrived there in September 1961 as a companion to the older TX-0.
The demonstrations on offer did not satisfy him. Marvin Minsky had written programs that threw kaleidoscope-like patterns across the display, and Russell judged them "not a very good demonstration." The screen, he told Rolling Stone ten years later, could do all sorts of good things, and so far nobody had shown it.
What made the screen matter was everything it replaced. Before the PDP-1, a user stood in line to hand over punched cards, then waited hours or days to learn whether the program had worked. Here a person typed a program, watched it appear on the display, ran it and got an answer almost at once. It was the first commercial computer to offer that loop.
Russell loved the feel of it. He called the PDP-1 the first appliance computer, and he liked the satisfying clunk of its switch. Outsiders nicknamed it an expensive typewriter, a fair joke about a $120,000 machine that sat in a room and typed. Russell saw something else: a computer you could watch while it worked.

Ships That Refuse to Stop
Russell started with the smallest thing he could make move. Before the end of January 1962 he had a dot on the screen that answered to the switches, and by February the dot had grown into an early game with ships that could turn. He wrote all of it in the PDP-1's assembly language, the machine's own terse instruction set, one hand-counted step at a time.
The ships took their looks from two sources: the spaceships of Buck Rogers and the PGM-11 Redstone rocket. One was a fat, finned needle and the other a slimmer wedge, and together they gave the screen a pulp-magazine feel.
The motion was the hard part, and Russell made a choice that gave the game its character. A ship could spin at a steady rate, with no inertia to slow or speed the turn, but spinning did not change where the ship was going. Point the nose at the opposite corner and the ship kept sliding the old way until its engine pushed it somewhere else.
Russell then put limits on the players. Each ship carried a finite supply of fuel and a finite supply of ammunition, so every burn and every shot had to be paid for.
One more problem showed up as soon as the ships drifted. Against a blank screen, slow motion was nearly impossible to read, because nothing gave the eye a place to stand. Russell added a random star field, a scatter of fixed points that let a player see how fast his ship was really going.
The first version took about 200 hours, roughly six weeks of work for the basic game. What it lacked was a reason for anyone to fear empty space. Russell wanted a star in the middle that pulled on the ships, but pulling meant arithmetic, and the PDP-1's arithmetic was far too slow.
Gravity Costs Too Much
Russell wanted the star in the middle of the screen to pull on both ships, and the program had to work out that pull while it kept the picture alive. Every attempt came out too slow. He could not get the gravity calculations to run fast enough, and the idea stalled at his console.
Dan Edwards broke the stall. He went through the drawing functions, the routines that painted ships and points onto the display, and optimized them. That freed enough machine time for Russell's gravity to run.
Once the star could pull, the players found a use for it. A pilot who swung close to the star got a gravity assist, a free shove from the star's pull, and flying that way became a common tactic. The torpedoes the ships fired were a different matter, because the star's gravity did not touch them. They flew straight. Russell had hoped for more. Gravity-affected torpedoes and refined explosions both fell to the same shortage, because the computer had no resources left to pay for them.
The rest of the rules got settled by trial and complaint. The first hyperspace, a panic button that threw a ship to a new spot on the screen, allowed only three jumps. It carried no risk beyond the chance of landing in a dangerous position. Russell also tried giving the torpedoes a slight variation in speed and direction, so that no two shots flew quite alike. The players complained, and he took the variation out again.
A Planetarium Nobody Owned
In March, Russell reached for the piece the game was missing. As collator of the primary version, he was the one who gathered the other programmers' contributions into a single working program, and among the offerings sat a star-chart program by Peter Samson called Expensive Planetarium. Russell folded it in.
Nobody asked permission, because nobody needed to. In the local programming community, programs passed freely from hand to hand, and anyone with an idea could change them, with no worry about who owned the code or about copyright. Samson's planetarium fit that habit, and it went straight into the duel.

Samson, a 21-year-old MIT undergraduate, had never been content to sprinkle dots and call it a sky. He wrote his program to chart every star in the band reaching 22.5° north and south of the equator, down to the fifth magnitude, the scale astronomers use for brightness. Russell's random scatter had given the eye a place to stand. When Russell set Samson's chart behind the ships, the eye finally had something to look at.
With the planetarium running behind the ships, the screen showed the night sky over Cambridge, accurate and scrolling slowly past. The two ships now slid and spun and fired across a field of stars that belonged to a real place, and the same hackers who had stared at an empty display weeks earlier could look up from the console and see a sky they might have recognized outside.
Switches That Broke, a Button That Stayed Quiet
Bob Saunders watched a pilot lose a duel he was winning. The man, deep in the fight, strayed onto the computer's control and power switches and flipped them by accident, and the whole machine shut down mid-battle. The game was first controlled with console switches, and players threw those front-panel switches by hand to turn, thrust and fire. The switches had never been built for that kind of work, and they wore out quickly.
The layout caused trouble of its own. Its switches left one player off to one side of the CRT display, in a worse seat for the same game, so anyone who took that spot started the duel at a disadvantage.
Saunders decided to fix the problem with his hands. In March 1962 he built gamepads, an early version of the controller, so that a pilot could steer from a device made for the job instead of a panel of worn switches. He gave his pad a torpedo button that made no sound. A ship's torpedoes needed time to recover after each shot, and while one pilot waited out that cooldown and tried to fire, the opponent got no warning that a shot was coming.
With the pads in their hands, players stayed longer, and the game grew so addictive at MIT that play was banned except at lunchtime and after hours.
The Game Nobody Meant to Make
In May 1962, Graetz stood up at the first meeting of the Digital Equipment Computer Users' Society and presented a paper on the duel. The audience ran the same kind of machine, and they carried the idea home. The game spread to many of the few dozen PDP-1 installations, and it became the first video game played at more than one computer site. Bigger machines caught it too. On mainframes that billed for every minute of computer time, system programmers usually played it when the machine sat idle, often at 2am.
By 1971 a student at Stanford could walk into the student union and drop money into a coin-operated version of the duel. The game had held its place through the 1960s, and for a decade it stayed the most popular game on most computer systems. Now it was leaving the computer rooms. It inspired Galaxy Game and Computer Space, and Nolan Bushnell, who saw its arcade potential, developed Computer Space. Asteroids followed years later. On December 7, 1972, Rolling Stone ran Stewart Brand's article on Spacewar! with photographs by Annie Leibovitz.
None of this made the six programmers rich. Alan Kotok said the only money he ever earned from Spacewar came from consulting on the video game lawsuits of the 1970s, and Russell and Kotok both said they never meant to create a new entertainment medium. The game they never set out to make had been a demonstration and a dare, built on a machine so short of room that it could not even run an opponent, so it took two people. Somewhere, a dot learned to be a ship, a ship learned to drift across a real Cambridge sky, and a button that made no sound sent a torpedo across the dark.
Cover: Joi Ito from Inbamura, Japan · CC BY 2.0 · Wikimedia Commons. Layout and headline text by Signal Titans.
Source: The Physics of Spacewar!: How Steve Russell and the MIT Tech Model Railroad Club Spawned Video Games · Byte Magazine Volume 02 Number 10 – Implementing Space War : Free Download, Borrow, and Streaming : Internet Archive · Byte Magazine Volume 04 Number 05 – Computer Generated Maps : Free Download, Borrow, and Streaming : Internet Archive · Yes, The Library of Congress Has Video Games: An Interview with David Gibson | The Signal · Yes, The Library of Congress Has Video Games: An Interview with David Gibson | The Signal: Digital Preservation · Spacewar! – The Strong National Museum of Play · The Galaxy Gamem · A Long Time Ago, in a Lab Far Away . . . – NYTimes.com · Digital Fetes the 'Germ' That Began a Revolution – The New York Times

Leave a Reply