ArticleslgStudy

computer science

Spacewar!

Spacewar! is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Spacewar! rather than just read about it. In short: Spacewar! is a space combat video game developed in 1962 by Steve Russell in collaboration with Martin Graetz, Wayne Wiitanen, Bob Saunders, Steve Piner, and others. It was written for the newly installed DEC PDP-1 minicomputer at the Massachusetts Institute of Technology.

Spacewar! — main illustration
Spacewar! — illustration

Key takeaways

  • Spacewar! belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Spacewar! to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Spacewar! from memory before moving on to harder problems.

Reference excerpt

Spacewar! is a space combat video game developed in 1962 by Steve Russell in collaboration with Martin Graetz, Wayne Wiitanen, Bob Saunders, Steve Piner, and others. It was written for the newly installed DEC PDP-1 minicomputer at the Massachusetts Institute of Technology. It was later expanded by other students and employees of universities in the area, including by Dan Edwards and Peter Samson. It also spread to many of the few dozen installations of PDP-1s, making it the first video game to be played at multiple computer installations. The game features two spaceships, "the needle" and "the wedge", engaged in a dogfight while maneuvering in the gravity well of a star. Both ships are controlled by human players. Each ship has limited ammunition and fuel for maneuvering, and the ships remain in motion even when the player is not accelerating. Flying near the star to provide a gravity assist is a common tactic. Ships are destroyed when they collide with a torpedo, the star, or each other. At any time, the player can engage a hyperspace feature to jump to a new and random location on the screen, though in some versions each use has an increasing chance of destroying the ship instead. The game was initially controlled with console switches on the PDP-1, though Bob Saunders soon built an early gamepad to make it easier to play. Spacewar! is one of the most important and influential games in the early history of video games. It was extremely popular in the small programming community in the 1960s and the public domain code was widely ported to and recreated on other computer systems at the time, especially after computer systems with monitors became more widespread towards the end of the decade. It has also been recreated in more modern programming languages for PDP-1 emulators. It directly inspired many other video games, such as the first commercial arcade video games, Galaxy Game and Computer Space (both from 1971), and later games such as Asteroids (1979). In 2007, Spacewar! was named to a list of the ten most important video games in history, which formed the start of the game canon at the Library of Congress, and in 2018 it was inducted into the World Video Game Hall of Fame by The Strong and the International Center for the History of Electronic Games.

Background

During the 1950s, various computer games were created in the context of academic computer and programming research and for demonstrations of computing power, especially after the introduction later in the decade of smaller and faster computers on which programs could be created and run in real time as opposed to being executed on a schedule. A few programs, however, were intended both to showcase the power of the computer they ran on and as entertainment products; these were generally created by undergraduate and graduate students and university employees, such as at the Massachusetts Institute of Technology (MIT), where staff and students were allowed on occasion to develop programs for the TX-0 experimental computer. These interactive graphical games were created by a community of programmers, many of them students and university employees affiliated with the Tech Model Railroad Club (TMRC), led by Alan Kotok, Peter Samson, and Bob Saunders. The games included Tic-Tac-Toe, which used a light pen to play a simple game of noughts and crosses against the computer, and Mouse in the Maze, which used a light pen to set up a maze of walls for a virtual mouse to traverse. In September 1961, a Digital Equipment Corporation (DEC) PDP-1 minicomputer was installed in the "kludge room" on the 2nd floor of Building 26, the location of the MIT Electrical Engineering Department. The PDP-1 was to complement the older TX-0, and like it had a punched tape reader and writer, and additionally accepted input from a panel of switches and could output to a cathode-ray tube (CRT) display. Over the summer before its arrival a group of students and university employees had been pondering ideas for programs that would demonstrate the new computer's capabilities in a compelling way. Three of them—Steve Russell, then an employee at Harvard University and a former research assistant at MIT; Martin Graetz, a research assistant and former student at MIT; and Wayne Wiitanen, a research assistant at Harvard and former employee and student at MIT—came up with the idea for Spacewar!. They referred to their collaboration as the "Hingham Institute" as Graetz and Wiitanen were living in a tenement building on Hingham Street in Cambridge, Massachusetts. "We had this brand new PDP-1", Russell told Rolling Stone in a 1972 interview. "Somebody [Marvin Minsky] had built some little pattern-generating programs which made interesting patterns like a kaleidoscope. Not a very good demonstration. Here was this display that could do all sorts of good things! So we started talking about it, figuring what would be interesting displays. We decided that probably you could make a two-dimensional maneuvering sort of thing, and decided that naturally the obvious thing to do was spaceships."

Gameplay

… excerpt ends here. Continue reading the full article.

Illustrations

Spacewar! illustration
Spacewar!: Steve Russell, designer and main programmer of the initial version of Spacewar!, with a PDP-1 in 2007
Steve Russell, designer and main programmer of the initial version of Spacewar!, with a PDP-1 in 2007
Spacewar!: Picture of gameplay of Spacewar! on a PDP-1. The moving spaceships and missiles leave trails behind them because the phosphors in the CRT monitor slowly fade after being lit.
Picture of gameplay of Spacewar! on a PDP-1. The moving spaceships and missiles leave trails behind them because the phosphors in the CRT monitor slowly fade after being lit.
Spacewar!: Spacewar controllers built in 1972 by Robert Saunders, similar to the original ones from MIT
Spacewar controllers built in 1972 by Robert Saunders, similar to the original ones from MIT
Spacewar!: Front panel of a PDP-1, featuring paper punched tapes in a holder, a punched tape reader, and the computer's control panel
Front panel of a PDP-1, featuring paper punched tapes in a holder, a punched tape reader, and the computer's control panel

Worked examples

Example 1 — a first encounter with Spacewar!

Start with the simplest possible case. Write down what Spacewar! claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Spacewar! before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Spacewar! ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Spacewar!

In research
Spacewar! appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Spacewar! in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Spacewar! is common in secondary-school and first-year university syllabi. It links to neighbouring topics 1962 video games, Early history of video games, Mainframe games, so understanding it makes those chapters shorter.
In everyday life
Look for Spacewar! outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Spacewar!” →

How to study Spacewar! in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Spacewar! means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Spacewar! out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Spacewar! in simple terms?

Spacewar! is a space combat video game developed in 1962 by Steve Russell in collaboration with Martin Graetz, Wayne Wiitanen, Bob Saunders, Steve Piner, and others. It was written for the newly installed DEC PDP-1 minicomputer at the Massachusetts Institute of Technology.

Why does Spacewar! matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Spacewar!?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Spacewar!.

Tags

  • 1962 video games
  • Early history of video games
  • Mainframe games
  • Multiplayer video games
  • Public-domain software with source code
  • Science fiction video games
  • Shoot 'em ups
  • Space combat simulators
  • Video games developed in the United States
  • Video games with available source code

Keep exploring