SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1806.05695 · 2018

Evolving simple programs for playing Atari games

arXiv · PDF · Open in the Atlas

Code that ran

7 of 9 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 7 have no contract verdict; 0 failures of our instrument; 2 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/1806.05695.json · badge: /api/ran/1806.05695.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
JacobLaney/cgp-tetris community (classifier label)
classifier basis not recorded on the link
5 ran · 0 no recorded run
ShuhuaGao/gpFlappyBird community (classifier label)
classifier basis not recorded on the link
2 ran · 2 no recorded run
FunctionStatusWhere it lives
evolve Ran
ran on a synthesized input
ShuhuaGao/gpFlappyBird/cgp.py
code served (permissive licence) · get_code("e19e5ccfdc0938b3")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import random
import torch

torch.manual_seed(0)

class Individual:
    def __init__(self, fitness_value):
        self.fitness = fitness_value
    
    def mutate(self, mut_rate):
        """Create a mutated copy of this individual"""
        new_fitness = self.fitness + random.gauss(0, mut_rate)
        return Individual(new_fitness)

# Create a population with mu + lambda individuals
mu = 3
lambda_ = 2
pop = [
    Individual(fitness_value=1.0),
    Individual(fitness_value=2.0),
    Individual(fitness_value=3.0),
    Individual(fitness_value=4.0),
    Individual(fitness_value=5.0),
]

ARGS = {
    "pop": pop,
    "mut_rate": 0.1,
    "mu": mu,
    "lambda_": lambda_
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_column_heights Ran
ran on a synthesized input
JacobLaney/cgp-tetris/configurations/tetris_heuristic.py
code served (permissive licence) · get_code("5c4c9aa4cbc88e62")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 1, dtype family int, shape (10,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# The function expects a grid parameter
# Looking at the function body:
# - It iterates over GRID_WIDTH (10) columns
# - For each column x, it iterates over GRID_HEIGHT (18) rows
# - It accesses grid[GRID_HEIGHT - y - 1][x]
# - It compares tile == B (where B = 0)
# So grid should be a 2D array with shape (GRID_HEIGHT, GRID_WIDTH)

# Create a small grid with some filled and empty tiles
# B = 0 represents empty, so we'll use 1 to represent filled tiles
grid = np.array([
    [0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
    [0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
    [1, 0, 0, 0, 0, 0, 0, 0, 0, 0],
    [1, 1, 0, 0, 0, 0, 0, 0, 0, 0],
    [1, 1, 1, 0, 0, 0, 0, 0, 0, 0],
    [1, 1, 1, 0, 0, 0, 0, 0, 0, 0],
    [1, 1, 1, 1, 0, 0, 0, 0, 0, 1],
    [1, 1, 1, 1, 0, 0, 0, 0, 0, 1],
    [1, 1, 1, 1, 1, 0, 0, 0, 0, 1],
    [1, 1, 1, 1, 1, 0, 0, 0, 1, 1],
    [1, 1, 1, 1, 1, 1, 0, 0, 1, 1],
    [1, 1, 1, 1, 1, 1, 0, 0, 1, 1],
    [1, 1, 1, 1, 1, 1, 0, 1, 1, 1],
    [1, 1, 1, 1, 1, 1, 0, 1, 1, 1],
    [1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
    [1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
    [1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
    [1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
], dtype=int)

ARGS = {
    "grid": grid
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family int, shape (10,) — shape (10,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_grid Ran
ran on a synthesized input
JacobLaney/cgp-tetris/configurations/tetris_heuristic.py
code served (permissive licence) · get_code("42b8b705cb0ccf7d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 2, dtype family int, shape (18, 10) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# The function get_grid takes pixels as input
# It expects a 3D array with shape (height, width, channels)
# It slices: [0:144:8, 16:96:8] which gives roughly (18, 10) shape
# And it uses axis=2 for mean, so channels are on axis 2

# Create a small valid pixel array
# Shape should be at least (144, 96, 3) to cover the slice [0:144, 16:96]
pixels = np.random.randint(0, 256, size=(144, 96, 3), dtype=np.uint8)

ARGS = {
    'pixels': pixels
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family int, shape (18, 10) — shape (18, 10) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
max2 Ran
ran on a synthesized input
JacobLaney/cgp-tetris/cgp/functions/comparison.py
code served (permissive licence) · get_code("82cb0a926867b651")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float64, ndim 0, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
import torch

torch.manual_seed(0)

# Analyze the function:
# max2(x, y, p) calls:
# - np.max(x)
# - np.max(y)
# - np.max() on a list of those results
# So x and y need to be array-like objects that np.max can operate on
# p is not used in the function body

x = np.array([1.0, 2.0, 3.0, 4.0])
y = np.array([5.0, 1.5, 2.5, 3.5])
p = 0.5

ARGS = {
    "x": x,
    "y": y,
    "p": p
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
remove_floating_tile Ran
ran on a synthesized input
JacobLaney/cgp-tetris/configurations/tetris_heuristic.py
code served (permissive licence) · get_code("aeec1a19a777b8d9")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 2, dtype family int, shape (18, 10) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Define the constants and function
GRID_HEIGHT = 18
GRID_WIDTH = 10
W = 255
B = 0

def explore(grid, x, y, result):
    if grid[y][x] == B and result[y][x] != B:
        result[y][x] = B
        if x + 1 < GRID_WIDTH:
            explore(grid, x + 1, y, result)
        if x - 1 >= 0:
            explore(grid, x - 1, y, result)
        if y - 1 >= 0:
            explore(grid, x, y - 1, result)

def remove_floating_tile(grid):
    result = np.zeros(grid.shape).astype('uint8')
    result.fill(W)
    for x in range(GRID_WIDTH):
        explore(grid, x, GRID_HEIGHT - 1, result)
    return result

# Create a test grid with shape (GRID_HEIGHT, GRID_WIDTH)
# Mix of B (0) and W (255) values
grid = np.full((GRID_HEIGHT, GRID_WIDTH), W, dtype='uint8')
# Add some black tiles
grid[0:5, 2:5] = B
grid[GRID_HEIGHT - 1, 0] = B  # Black tile at bottom

ARGS = {
    "grid": grid
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family int, shape (18, 10) — shape (18, 10) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
round_expr Ran
ran on a synthesized input
ShuhuaGao/gpFlappyBird/postprocessing.py
code served (permissive licence) · get_code("eb0aac8daa0fc7f1")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Add. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import sympy as sp

# Create a symbolic expression with various number types
x = sp.Symbol('x')
expr = sp.pi * x**2 + sp.sqrt(2) * x + 3.14159 + 1/3

num_digits = 3

ARGS = {
    "expr": expr,
    "num_digits": num_digits
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
sympy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Add — a Add output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Add output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
run_episode_async Ran
ran on a synthesized input
JacobLaney/cgp-tetris/cgp/training_environment.py
code served (permissive licence) · get_code("d474e08b2934addf")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

class SimpleGenome:
    def __init__(self):
        self.weights = [0.1, 0.2, 0.3]
        self.fitness = None

class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, x):
        return self.linear(x)

class SimpleTrainer:
    def __init__(self):
        self.model = SimpleModel()
    
    def run_episode_async(self, genome):
        # Simulate running an episode
        x = torch.randn(2, 4)
        output = self.model(x)
        reward = output.sum().item()
        return {"reward": reward, "genome_id": id(genome)}

trainer = SimpleTrainer()
genome = SimpleGenome()

ARGS = {
    "trainer": trainer,
    "genome": genome
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
protected_div Not yet run
unverified (harvested, no recorded run)
ShuhuaGao/gpFlappyBird/cgp.py
code served (permissive licence) · get_code("0aaefee9b6b899be")
How it ran

no invocation recorded.

simplify Not yet run
unverified (harvested, no recorded run)
ShuhuaGao/gpFlappyBird/postprocessing.py
code served (permissive licence) · get_code("e8359b3bb176b5fa")
How it ran

no invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 9 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Cartesian Genetic Programming (CGP) has previously shown capabilities in image processing tasks by evolving programs with a function set specialized for computer vision. A similar approach can be applied to Atari playing. Programs are evolved using mixed type CGP with a function set suited for matrix operations, including image processing, but allowing for controller behavior to emerge. While the programs are relatively small, many controllers are competitive with state of the art methods for the Atari benchmark set and require less training time. By evaluating the programs of the best evolved individuals, simple but effective strategies can be found.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("1806.05695")
get_code_for_paper("1806.05695")
have("1806.05695")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/1806.05695.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/1806.05695.svg)](https://syntology.ai/paper/1806.05695)

Connect an agent — have() is free.