1. Taxonomy & Profile
In evolutionary biology, Andrew Parker's "Light Switch Theory" proposes that the Cambrian explosion—Earth's sudden burst of complex animal phyla 540 million years ago—was triggered by the evolution of the first true eyes in predators like trilobites and Anomalocaris. Once predators could actively see and target prey from a distance rather than blindly filtering mud, an evolutionary arms race of armor, camouflage, and speed began.
CoreWar experienced the exact same evolutionary leap. Early Stone bombers like Dwarf were blind filter-feeders, hurling DAT bombs into empty space on a fixed schedule regardless of whether an enemy was there. Then came the Scanner—the "Scissors" of the metagame triad, classified here as Venator oculatus—an organism equipped with a true optical sensory organelle: the comparison instruction (CMP, SEQ, or SNE).
2. Ecology & Behavior
The behavior of Venator oculatus is governed by a razor-sharp conditional reflex that alternates between two states: Patrol (Search) and Snipe (Destroy). When observed in the vivarium across empty memory, the Scanner's Program Counter circulates through a tight 3-instruction loop: 0000 (ADD) → 0001 (CMP) → 0003 (JMP). Notice that line 0002 (the MOV attack muscle) is completely bypassed! As long as the remote cell inspected by CMP matches the blank template at 0005 (DAT.F #0, #0), the processor automatically skips line 0002, spending zero cycles on wasted shots.
Instead of bombing the desert blindly, the Scanner sweeps its gaze pointer across the 8,000-cell arena in rapid 12-address saccades. The instant that pointer lands on a non-zero cell—whether an enemy warrior's body, an Imp's molted trail, or a newly spawned Paper clone—the comparison against DAT.F #0, #0 fails. The skip reflex disengages, and the Program Counter drops straight into line 0002 (MOV.I 3, @2), injecting a lethal DAT spore directly into the exact address it just saw!
In advanced competitive Scanners (such as B-scanners and One-Shot hunters), the attack organ is often upgraded from a simple DAT spore to an "SPL 0" neurotoxin followed by a carpet-bomb wipe. Injecting SPL 0 into a detected enemy forces the victim's thread to fork endlessly in place, flooding its 64-process queue with paralyzed threads before the Scanner methodically finishes it off with DATs—mirroring a hunting wasp that paralyzes a caterpillar before consuming it.
3. Cellular Anatomy & Organelles
The defining anatomical feature of the Scanner is the concentric eye glyph (◉ CMP.I) at line 0001, supported by two specialized vacuoles at the base of the cell: the dynamic gaze pointer (0004) and the pristine blank template / spore payload (0005).
4. Computer Science Insight: Compare-and-Skip & The Cost of Intelligence
In computer architecture, Redcode's comparison opcodes (CMP/SEQ: skip next instruction if equal; SNE: skip if not equal) descend from the classic "Test-and-Skip" instruction sets of early minicomputers like the DEC PDP-8. Whereas conditional jumps (JMZ/JMN) can only test whether a single number is zero, CMP.I @3, 4 performs a full structural comparison of two memory words—checking opcode, modifier, addressing modes, and both A/B operands in a single clock cycle.
Notice also the elegance of shared pointer locking between lines 0001 and 0002: line 0001 inspects `@3` (cell 0004), and if a target is found, line 0002 immediately fires into `@2` (the exact same cell 0004, which is now 2 lines ahead of the PC instead of 3). No register copy is required between detection and strike.
In artificial life and evolutionary game theory, the Scanner illustrates the fundamental physical cost of intelligence. In the Von Neumann universe of CoreWar, every instruction added to make a program "smarter" (sensory checks, carpet loops, self-check guards) physically enlarges the organism's memory footprint. Because any cell of executable code is a fatal weak point if hit by a DAT bomb, intelligence directly increases surface vulnerability—creating a mathematical equilibrium between small, blind organisms and larger, sighted predators.
5. Predators, Weaknesses & Metagame
Sprawling Paper colonies light up the core like beacons for a Scanner's eyes. Skipping empty space at 3 cycles per probe, Scissors rapidly locks onto Paper's sluggish clones and surgically shreds or stuns them.
Evolving eyes comes at a heavy anatomical cost: a larger body (6–12+ cells) and wider target cross-section. Before the Scanner can locate a tiny 4-cell Dwarf, Dwarf's blind Mod-4 artillery often shatters the Scanner's delicate sensory organs.
Why does Scissors (Scanner) dominate Paper (Replicator) while losing to Stone (Bomber)? The answer lies in the geometry of target density. A Paper warrior survives against Stone by filling the core with dozens of clones. To a Scanner, however, those dozens of clones turn the memory grid into a target-rich environment. Leaping 12 cells every 3 cycles, the Scanner almost immediately spots a Paper colony and slices through its slow-moving threads before they can finish replicating.
Against a compact 4-cell Stone like Dwarf, the math reverses. Finding a single 4-cell target inside an 8,000-cell arena takes hundreds of scan cycles. Meanwhile, the blind Stone wastes zero lines on sensory organs, keeping its body tiny while hurling bombs every 3 cycles. Because the Scanner's body is 50% to 200% larger than the Stone's, statistically the Stone's blind artillery is far more likely to strike the Scanner's bulky body before the Scanner's eye lands on the Stone.
Furthermore, having eyes makes the Scanner susceptible to optical illusions—known in CoreWar as "Decoys." Competitive Stones and Papers often begin battle with a rapid "bootstrapping" phase, scattering harmless non-zero garbage across memory before jumping into their real loop. When a Scanner's eye spots these decoy cells, its conditional reflex triggers, tricking the hunter into wasting dozens of cycles bombing empty chaff while its true enemy attacks from the shadows.
6. 🔬 Observe This Organism in Lab / Academy
Watch the ocular sensor (◉ CMP.I) skip over empty cells in 3-cycle leaps and fire its surgical strike (▼ MOV.I) the instant it detects an enemy colony.