talks
|
texts
CYBER CYCLES
October 5, 2026
What shape a game has, and what search sees of it: from the disc game to Core War.
CYBER CYCLES
Noah Syrkis
October 6, 2026
1 | Core war is fought on a 1d ring
2 | The programs are assembly code
3 |
mice
beats
rock
beats
scissors
…
4 | We study the
𝛼
-disc construction
5 | Measuring Core War’s cyclicality
1 |
Core war is fought on a 1d ring
▶
Two programs fight on a memory tape
▶
A memory tape is a 1 dimensional ring
▶
To see it better we transform to a 2d grid
▶
Figure 1
animates that transformation
Figure 1: Locality preserving Moore loop trans
form of a 1d ring onto a 2d grid
2 of
13
2 |
The programs are assembly code
▶
Code is embedded into the tape it transforms
▶
Program 1
puts a
DAT
instruction every 4th cell
▶
It is only 3 cells wide and thus never hits itself
add #2004, 1
mov 2, 2
jmp -2, 0
Program 1: The
redcode
assembly program
dwarf
authored by A. K. Dewdney
3 of
13
2 |
The programs are assembly code
▶
Code is embedded into the tape it transforms
▶
Program 1
puts a
DAT
instruction every 4th cell
▶
It is only 3 cells wide and thus never hits itself
Figure 2:
dwarf
playing against
DAT
, a program
that loses on its first move
3 of
13
What makes a good Core War program?
Figure 3:
rock
(solid) vs
scissors
,
scissors
(solid) vs
mice
, and
mice
(solid) vs
rock
Renaming
mice
to
paper
we see a classic cycle
3 |
mice
beats
rock
beats
scissors
…
▶
paper
(a world champion) loses to someone
▶
Core war thus has a cyclical component
▶
But a program can also be plainly bad (
DAT
)
Figure 4:
scissors
(solid) beating the newly re
named
paper
(previously
mice
)
6 of
13
4 |
We study the
𝛼
-disc construction
𝛼
-disc
[1]
is a construct to explore cyclicality.
It evaluates two 2d points on the unit circle.
A high
𝛼
is a transitive game, while low is cycli
cal. When transitive, highest
𝑦
-coordinate wins.
When cyclic, the relatively left most point wins.
𝜑
𝛼
(
𝒗
,
𝒘
)
=
𝛼
(
𝑣
1
−
𝑤
1
)
⏞
ratings
(1.1)
+
(
1
−
𝛼
)
(
𝑣
1
𝑤
2
−
𝑣
2
𝑤
1
)
⏟
cycles
(1.2)
7 of
13
4 |
We study the
𝛼
-disc construction
Figure 5
shows an adversarial evolutionary
search algorithm optimize over
𝛼
-disc.
Figure 5: Finding the optimum for
𝛼
=
1
8 of
13
4 |
We study the
𝛼
-disc construction
Figure 6:
𝛼
∈
{
1
,
1
3
,
0
}
. At
𝛼
=
1
the higher rating wins. At
𝛼
=
0
every policy has a counter
9 of
13
4 |
We study the
𝛼
-disc construction
Figure 7: Fourier transform of a tournament between the populations of
Figure 6
.
Vertical lines indicate transitivity, and no lines indicate cyclicality.
10 of
13
5 |
Measuring Core War’s cyclicality
▶
Transitive share (one rating per warrior) 0.64
▶
Cyclic share (what no rating explains) 0.36
▶
In Core War, no single program beats all others
Figure 8: Fourier transform of a tournament
between 128 human programs
11 of
13
To learn more about Core War and its cybersecurity implications read
A. Kumar
et al.
[2]
References
[1]
D. Balduzzi
et al.
, “Open-Ended Learning in Symmetric Zero-Sum Games,” in
Proceedings of
the 36th International Conference on Machine Learning
, PMLR, May 2019, pp. 434–443. doi:
10.48550/arxiv.1901.08106
.
[2]
A. Kumar
et al.
, “Digital Red Queen: Adversarial Program Evolution in Core War with
LLMs,” in
Proceedings of the Genetic and Evolutionary Computation Conference
, Centro Inter
nacional de Convenciones CIC-ANDE San Jose Costa Rica: ACM, Jul. 2026, pp. 691–700. doi:
10.1145/3795095.3805116
.
part@syrkis.com
library