COREWAR

/
Step 27: [Modifying Paper] Tune Clone Dispersal Distance to Overwhelm Stone
🎯Tune clone dispersal distance to overwrite and defeat the enemy Stone(0/1)

MISSIONS (30 STEPS)

CH.1: UI & MEMORY BASICS (1-6)
BASIC★☆☆
Step 1: The "STEP" Button That Advances Time
🔒
BASIC★☆☆
Step 2: Process Termination and Restoring with "RESET"
🔒
BASIC★☆☆
Step 3: "Edit Mode" vs. "Running Mode"EDIT
🔒
BASIC★☆☆
Step 4: The Three Rooms of a Memory Box (Changing B)EDIT
🔒
BASIC★☆☆
Step 5: Modifying Both the Left Room (A) and Right Room (B)EDIT
🔒
BASIC★☆☆
Step 6: Literal Numbers (#) vs. Relative Addresses ($)EDIT
CH.2: CORE INSTRUCTIONS (7-13)
🔒
ARITHMETIC★☆☆
Step 7: Observing the "ADD" Instruction
🔒
ARITHMETIC★☆☆
Step 8: Changing the Number to Add (A-Field)EDIT
🔒
ARITHMETIC★☆☆
Step 9: Changing the Target Address (B-Field)EDIT
🔒
ARITHMETIC★☆☆
Step 10: Using the Subtraction Instruction "SUB"EDIT
🔒
BASIC★☆☆
Step 11: Copying an Entire Box with "MOV"EDIT
🔒
CONTROL★☆☆
Step 12: Looping Back in Time with "JMP"EDIT
🔒
CONTROL★☆☆
Step 13: Build Your First Program (Automatic Counter)EDIT
CH.3: VON NEUMANN & DIGITAL LIFE (14-18)
🔒
BASIC★☆☆
Step 14: Why Does "DAT" Become a Bomb?EDIT
🔒
BASIC★☆☆
Step 15: Copying Your Own Instruction (Code = Data)EDIT
🔒
BASIC★☆☆
Step 16: Observation: Stepping Through "Imp", the Oldest Digital Organism
🔒
BASIC★☆☆
Step 17: Modifying the Imp (Copy Destination Experiment)EDIT
🔒
ARITHMETIC★★☆
Step 18: Understanding Indirect Addressing (@ Pointers)EDIT
CH.4: CLASSIC ARCHETYPES (19-24)
🔒
STRATEGY★★☆
Step 19: Observation: Dissecting the "Dwarf" Bomber Step-by-Step
🔒
STRATEGY★★☆
Step 20: Modifying Dwarf (Changing the Bombing Interval)EDIT
🔒
STRATEGY★★☆
Step 21: First Combat: Tune Your Bomb Interval to Destroy the TargetEDIT
🔒
CONTROL★★☆
Step 22: Observation: The "SPL" Split Instruction and Mitosis
🔒
CONTROL★★☆
Step 23: Finding Enemies with Conditional Skip "SEQ / CMP"EDIT
🔒
STRATEGY★★☆
Step 24: Stopping an Imp with a Pre-Decrement "Imp-Gate"EDIT
CH.5: BATTLE EVOLUTION (25-30)
🔒
STRATEGY★★☆
Step 25: [Stone] High-Speed Bomber and Step Size TuningEDIT
🔒
STRATEGY★★☆
Step 26: [Paper] Observing the Self-Replicating Swarm "Mice"
🔒
STRATEGY★★★
Step 27: [Modifying Paper] Tune Clone Dispersal Distance to Overwhelm StoneEDIT
🔒
STRATEGY★★☆
Step 28: [Scissors] Tuning Scanner Stride to Shred PaperEDIT
🔒
STRATEGY★★★
Step 29: [Trap] Abducting Enemy Processes with "Vampire"EDIT
🔒
STRATEGY★★★
Step 30: Graduation Exam: Tune Your Warrior and Win the Final BattleEDIT
🟢 EDIT MODE (Click cells to modify)
[Addr][Opcode][A (Left)][B (Right)]
📦 DATA / BOMB (DAT)
0000
▼MOV
#
$
0001
▼MOV
<
<
0002
↺JMN
$
$
0003
❖SPL
@
#
0004
+ADD
#
$
👈 EDIT
0005
↺JMP
$
$
0006
■DAT
$0
$0
++ ADD ROW
0007
■DAT
$0
$0
0008
■DAT
$0
$0
0009
■DAT
$0
$0
0010
■DAT
$0
$0
0011
■DAT
$0
$0
0012
■DAT
$0
$0
0013
■DAT
$0
$0
0014
■DAT
$0
$0
0015
■DAT
$0
$0
0016
■DAT
$0
$0
0017
■DAT
$0
$0
0018
■DAT
$0
$0
0019
■DAT
$0
$0
0020
■DAT
$0
$0
0021
■DAT
$0
$0
0022
■DAT
$0
$0
0023
■DAT
$0
$0
0024
■DAT
$0
$0
0025
■DAT
$0
$0
0026
■DAT
$0
$0
0027
■DAT
$0
$0
🏟️ARENA (20 ROWS)SCOPE: 0000 - 0019
[CORE MEMORY 800 CELLS (20 ROWS × 40 COLS)]1:1 Row Synced with Editor
P1: 0
P2: 0
CYC: 0
📖 LECTURE NOTE // STEP 27 OF 30Chapter 5: The Metagame Triad & Digital Ecology⏱ 5 min read
📖 Lecture Note: Computer Science & Artificial Life Principles Behind This Experiment

[Modifying Paper] Spatial Dispersal Algorithms and Avoiding Colony Self-Overwrite

Why a zero dispersal step causes self-cannibalism, and how tuning dispersal stride spreads colonies across the arena

#Clone Dispersal Distance#Colony Self-Overwrite#Spatial Hashing#Exponential Proliferation#Swarm Overwrite Attack
🔬Step 27: [Modifying Paper] Tune Clone Dispersal Distance to Overwhelm Stone

The most critical parameter in a Paper replicator is its clone dispersal distance—how far away each new colony is spawned. If the dispersal step is #0 or too small, the parent keeps overwriting the same spot instead of expanding across memory!

Right now, line 5 (0004) has ADD.AB #0, $1, so clones never spread out to reach the enemy Stone at 0400.

🎯 Your Task Change the highlighted A (Left Value) on row 0004 from #0 to #200 (or any value 100+) and press [PLAY] so your expanding clones overwrite and defeat the enemy Stone!

1. The Replicator's Trap: Colony Cannibalism When Dispersal Is Zero

In Step 27, you modified the 5th line of the Paper genome (Address 0004) from "ADD.AB #0, $1" to "ADD.AB #200, $1", enabling your colonies to expand across the Arena and engulf the enemy Stone at Address 0400.

First, let's diagnose why the unmodified organism with "ADD.AB #0, $1" failed to spread. At Cycle 0, Line 6 (Address 0005) holds an initial target pointer of #205 in its B-field. During its first replication cycle, the parent colony dutifully copies all 6 lines of its genome 205 cells ahead and fires "SPL" to awaken Daughter Colony #1. However, when Line 5 executes "ADD.AB #0, $1", it adds 0 to the dispersal pointer! On the very next replication cycle, the parent colony copies Daughter Colony #2 directly on top of Daughter Colony #1—overwriting and corrupting the first child while it is in the middle of executing!

Just as plants in nature must disperse their seeds away from the parent tree to avoid competing for the same patch of sunlight and soil, a digital replicator must advance its dispersal pointer after every birth so that new colonies do not cannibalize existing ones.

Bad Dispersal (#0)  : Parent [0000] ──► Overwrites [0205] again & again! (Colony traffic jam)
Good Dispersal (#200): Parent [0000] ──► Clone 1 [0205] ──► Clone 2 [0405] (💥 Overwrites Enemy at 0400!)

2. How Paper Kills: Offensive Overwrite and Assimilation

Here, a fascinating question arises: "Stone kills enemies by throwing DAT bombs. Paper ('Mice') doesn't have a single DAT instruction anywhere in its 6-line genome! How, then, did Paper kill the enemy Stone and win the battle?"

The answer is DEATH BY OVERWRITE (Assimilation)! When you set the dispersal step on row 0004 to "#200", the replication targets advanced from ~0205 to ~0405. Remember that Paper's copy loop ("MOV.I <-1, <4") writes its 6 lines backward from the pointer address (covering 0405 down to 0400). Sitting right inside that 0400–0403 zone was the enemy Stone warrior! As your Paper transcribed its daughter colony into 0400–0405, it completely overwrote the enemy Stone's instructions with Paper DNA!

Once an enemy's code is overwritten by your clone, one of two fatal things happens to the enemy's execution pointer: 1. It steps onto a cell whose B-field or A-field is being mutated during transcription and crashes into a zeroed cell, OR 2. Even more diabolically, the enemy's execution pointer begins executing YOUR Paper instructions—effectively brainwashed into replicating your green colonies until it eventually hits a DAT! Because Paper's copy loop overwrites 6 contiguous cells in a tight block, any compact enemy warrior (like a 4-line Stone) caught inside that 6-cell landing zone has its entire body replaced in a single generation.

3. The Mathematics of Optimal Dispersal Distance

In high-level CoreWar engineering, choosing the dispersal distance in Line 5 is an art similar to designing a hash function in computer science. Because the parent colony, its daughter colonies, and its granddaughter colonies all run the exact same code with the exact same ADD constant, a poorly chosen step size can cause 2nd-generation cousins to collide with 3rd-generation aunts.

To minimize self-collisions while rapidly blanketing every sector of the Arena, champion Paper warriors use large prime-like steps or steps approximating the Golden Ratio of the core size (such as #253 or #303 in an 800-cell core). In distributed computing and peer-to-peer networks (such as Distributed Hash Tables / Chord), this exact mathematical technique is used to assign nodes evenly around a circular ID ring so that no single cluster becomes congested while leaving other regions empty. Feel free to experiment with different numbers in Row 0004 to watch how the geometry of your swarm changes!

🔒

🔒 MISSION CLEAR Unlocks the Full Lecture Note

Complete the experiment in the simulator above to automatically unlock the full deep-dive article—or click below to read the full text immediately.