Core War
loreKept in this browser · My desk
Core War is a programming game, described by A. K. Dewdney in Scientific American in May 1984, in which two programs written in an assembly-like language called Redcode share a circular memory and try to overwrite each other while a simulator called MARS runs them in turn.
Dewdney said the idea came from a story about a self-copying program, Creeper, and a second program, Reaper, written to delete it. His follow-up column of March 1985 reported that several hundred readers had asked for the guidelines to build a simulator, and printed a letter from two readers in Brescia, Italy, who had worked out a virus that would spread between Apple II floppy disks after reading the Italian edition of the column, and then decided neither to release it nor to tell anyone about it. The mechanism is real, programs overwriting each other's instructions in shared memory, but Redcode and its machine exist only inside the game.
Also known as: Core Wars, Corewar, Redcode, MARS simulator
Sources
- A. K. Dewdney, Computer Recreations, Scientific American, May 1984, text hosted by Carleton University (read 2026-11-16): two programs written in Redcode, a language closely related to assembly languages, placed in a circular memory called Core and run alternately by MARS; the Creeper and Reaper story as the inspiration
- A. K. Dewdney, 'A Core War bestiary of viruses, worms and other threats to computer memories', Scientific American, March 1985, text hosted by Carleton University (read 2026-11-16): several hundred readers obtained the simulator guidelines; two readers in Brescia designed an Apple II disk virus after the Italian edition and chose not to release it
- Scientific American, Computer Recreations, March 1985 (read 2026-11-16): the column's title and date