The CoreWar Universe
The Universe of CoreWar
History
CoreWar was conceived by A. K. Dewdney and first described in his _Scientific American_ column "Computer Recreations" in May 1984. The game was inspired by Darwin, an earlier program-versus-program game developed at Bell Labs in the 1960s.
Since then, CoreWar has spawned an active competitive community, with online tournaments, strategy archives (such as koenigstuhl.com), and countless warriors submitted by players worldwide.
The Battlefield: The Core
The game takes place in a circular memory called the Core. Key properties:
- Size: Typically 8000 cells (configurable)
- Circular: Address 7999 wraps to address 0
- Shared: Both warriors occupy the same memory space
- Initialized: All cells start as
DAT 0, 0
Warriors are loaded into random positions within the core, at least a minimum distance apart.
Warrior Execution
Each warrior starts with one process. The MARS (Memory Array Redcode Simulator) executes one instruction from each warrior's process queue in alternating turns.
A warrior can create additional processes using SPL, giving it more execution time per round. However, each process only gets one instruction per complete cycle.
Victory Conditions
- Win: Your opponent's last process is terminated (executes
DAT) - Draw: Both warriors survive until the cycle limit
- Loss: All your processes are terminated
Classic Warrior Archetypes
| Type | Strategy | Example |
|---|---|---|
| Imp | Self-replicating MOV 0, 1 | Simplest possible warrior |
| Bomber | Drops DAT bombs across memory | Dwarf |
| Scanner | Detects enemy, then attacks | Uses CMP/SNE |
| Paper | Rapid self-replication via SPL | Overwrites core with copies |
| Stone | Bombs with large step sizes | Covers more ground |
The Artificial Life Connection
CoreWar is often studied in the context of Artificial Life (ALife). Warriors exhibit behaviors analogous to biological organisms: reproduction (SPL/Paper), predation (Bomber/Scanner), and defense (Imp Gate). The core becomes an ecosystem where different strategies compete for survival.