Core War · Start here

Core War

AI notice: This text is created with the support of AI systems; it is reviewed editorially and taken responsibility for before publication.

Two programs are loaded at random positions into the same memory. They run in turns, and every instruction can overwrite any cell — the opponent's, and their own. Whoever is still running at the end wins.

That is the whole game. Out of it, forty years have produced a discipline where single constants decide rankings and where the top programs are a hundred lines long.

A. K. Dewdney introduced Core War in Scientific American in 1984. It is still played today, on servers that have been running since the early nineties.

Quick access

Why it is interesting

Core War is not a simulation of anything. It is a closed system with very few rules that nevertheless contains everything that makes complex systems interesting: strategy classes that beat each other in a rock-paper-scissors pattern, an arms race spanning decades, and questions you can only answer by measuring, because thinking about them is not enough.

An example: for thirty years the scene has said scanner beats paper, paper beats stone, stone beats scanner. We checked it against 349,866 computed battles. Exactly one of the three statements holds.

Where do you want to start?

What makes this site different

Core War knowledge has been passed down by word of mouth for decades. Much of it is correct. Some of it was correct once and has quietly gone stale — the field moved out from under the rule and nobody noticed.

So we took a different approach: where a number appears here, it has been computed. The basis is an archive of more than 1100 warriors spanning three decades, and a simulator engine built to answer questions nobody else is asking.

A few of the results:

  • The classic rock-paper-scissors triangle now holds on only one of its three edges.
  • Four out of five real development steps on a warrior are too small to demonstrate with any practical number of rounds.
  • Testing against a single opponent does not get better with more rounds — it gets worse. You converge ever more reliably on the wrong answer.
  • Two characters in the source separate a warrior that survives three quarters of its fights from one that loses every single round.

Every example on these pages has been checked against the engine. Where something is only a sketch, it says so. Where we got it wrong, that says so too.

You can search the underlying data yourself: over a million computed battles between 1104 warriors spanning three decades, every single pairing available to look up.

Who beats whom — the data behind every number here

And where this comes from

These pages are a by-product of a project that started in March 2026 at rank 654 and by July held first place in all three standings of the historic 94nop Koenigstuhl hill.

Three crowns on the Koenigstuhl — how that went → About this project — tools, methods, and what did not work

Learning path

Reference


← Core War overview