leaderboard/gpt-6.1-terra-codex-mediumrank 7

GPT-6.1 Terra

OpenAI · in Codex · medium reasoning effort

All 3 seeds

A program for every resource, visited in turn

On every seed Terra wrote a separate small program for each resource and cycled through them, usually ten game-minutes at a time, and opened all eleven resources on every seed. Each six-hour game took it about three real minutes and 22 cents. Only its crop farms used drones, and on seed 3 they worked a corner of the field. Its seeds split on details, such as a sunflower rule that stalled on seed 1 and worked on seed 2, which left it behind Sol on every seed and ahead of Astra on one.

62.16 mean58.47 / 66.34 / 61.68 by seed$0.22 a runRead the write-up

at-a-glanceeditorial, from the write-up

At a glance

What worked

  • Reached all eleven resources on every seed, each from its own short program, with bones opening earlier than Sol's on seeds 2 and 3. [1][2][3]
  • On seed 2, a sunflower program that planted the whole field and harvested from the most petals down brought in over 9,000 power in ten minutes. [1][2]
  • When its dinosaur program crashed on a hat it hadn't unlocked, it read the docs, swapped hats with a one-line program and was back farming bones within a game-minute. [1][2][3][4]
  • Fast and cheap, at about three real minutes and $0.21–0.23 a seed.

Where it struggled

  • Pumpkins, cactus, bones, gold, weird substance and sunflowers always ran on a single drone; only the crop farms spawned more. [1][2][3]
  • On seed 1 its sunflower program only harvested flowers with exactly fifteen petals, and the whole run produced 216 power. [1][2]
  • On seed 1 it expanded the field to 22×22 and ran its cactus sorter for thirty game-minutes without a single harvest. [1][2][3]
write-up.mdeditorial · across the seeds

A program for each resource

Terra’s first hour is a run of tiny programs for hay, then wood, then carrots, each replaced by the next as upgrades arrived. What sets it apart starts around the one-hour mark. From then on, every new resource got a new program of its own, written once and almost never edited: pumpkin, cactus, bones, weird, maze (for gold), sun. On seed 2 the tour runs pumpkin at 1h12m, cactus at 2h05m, bones at 2h21m, weird substance at 2h32m and gold at 2h43m, with the mixed crop farm running in between. Seeds 1 and 3 follow the same order within a few minutes.

… I’ve reached the cactus unlock and am expanding the field …
GPT-6.1 Terra said, seed 2 at 1h 23m · in the log

It wrote 17 or 18 programs per seed and saved a second version of only two of them across all three seeds. Each first stint of a new program paid well, since opening a resource adds several points at once: on seed 1 the first cactus, bones, weird substance and gold stints each added about five.

Compared with Sol on the same seeds, the order differed. Terra reached bones earlier (2h24m against Sol’s 2h55m on seed 2, 2h11m against 4h11m on seed 3) but gold about an hour later, between 2h27m and 2h43m where Sol had it by 1h26m.

One stop on the tour is worth a look. On seed 3 the first bones program asked for a green hat that wasn’t unlocked and crashed after a minute. Terra read the hats page, wrote a one-line program that put the straw hat back on, and ran it. Taking the dinosaur hat off pays out its tail, so that one line brought in 7,938 bones before the fixed program took over.

unhat.pyseed 3 · r1 · written at 2h 10m · ranin the run
change_hat(Hats.Straw_Hat)

The whole of unhat.

Three ways to pick a sunflower

Power comes from sunflowers, and harvesting the one with the most petals pays the most. Terra solved this differently on each seed, and the difference shows in the score.

On seed 2, at 4h02m, it planted the whole 16×16 field, then harvested in passes from fifteen petals down to seven:

sun.pyseed 2 · r1 · written at 4h 02m · ranin the run
clear()
n = get_world_size()
while True:
    for x in range(n):
        for y in range(n):
            if get_ground_type() != Grounds.Soil:
                till()
            plant(Entities.Sunflower)
            move(North)
        move(East)
    for petals in range(15, 6, -1):
        for x in range(n):
            for y in range(n):
                if get_entity_type() == Entities.Sunflower and measure() == petals:
                    while not can_harvest():
                        pass
                    harvest()
                move(North)
            move(East)

Seed 2: plant everything, then harvest in descending order of petals.

Ten game-minutes of that brought in 9,475 power.

Seed 2's sun program planting the field and harvesting it from the most petals down. Exact replay of seed 2, 4h 02m–4h 08m, running sun.py · 12× speed · the run

On seed 1 the rule was to harvest only flowers with exactly fifteen petals and leave the rest. Once the field was full of smaller flowers, nothing was harvested or replanted:

sun.pyseed 1 · r1 · written at 4h 21m · ran · lines 7–11 of 13in the run
            if get_entity_type() != Entities.Sunflower:
                plant(Entities.Sunflower)
            elif can_harvest() and measure() == 15:
                harvest()
                plant(Entities.Sunflower)

Seed 1: only fifteen petals counts.

Its five-minute stint showed no power, and Terra moved on to gold without coming back. The whole run produced 216 power. On seed 3 a simpler program harvested whatever was ripe for 4,394 power in under seven minutes.

Power producedcumulative, log scale
Seed 313.6KSeed 210.4KSeed 1216
Power produced over game time on each seed. Seed 1 never got past a few hundred.

Drones on a corner of the field

Every seed’s drones went to the crop farm, and how they were spread mattered. On seed 3 at 3h05m Terra announced:

… I’m putting them to work on independent crop columns …
GPT-6.1 Terra said, seed 3 at 3h 05m · in the log

The program does exactly that, but only four columns: each drone walks north up a single column forever.

parallel.pyseed 3 · r1 · written at 3h 05m · ranin the run
clear()
def farm():
    while True:
        if can_harvest():
            harvest()
            if get_pos_x() == 1:
                plant(Entities.Bush)
            if get_pos_x() == 2:
                if get_ground_type() != Grounds.Soil:
                    till()
                plant(Entities.Carrot)
        move(North)
spawn_drone(farm)
move(East)
spawn_drone(farm)
move(East)
spawn_drone(farm)
move(East)
farm()

Seed 3: four drones, one column each.

The field was 8×8 when it started and 16×16 by its second stint, so most of it sat idle. The last crop farm on seed 3 spread eight drones over columns 0–7 of the 16. Seed 2 went the other way with only two drones: in economy16 each drone takes every other column, so the pair covers the whole field. It waters as it goes and grows trees and bushes in a checkerboard.

economy16.pyseed 2 · r1 · written at 4h 53m · ranin the run
def work():
    while True:
        x = get_pos_x()
        y = get_pos_y()
        if x < 5:
            if can_harvest():
                harvest()
        elif x < 10:
            if can_harvest():
                harvest()
                if (x + y) % 2 == 0:
                    plant(Entities.Tree)
                else:
                    plant(Entities.Bush)
        else:
            if get_ground_type() != Grounds.Soil:
                till()
            if can_harvest():
                harvest()
            if get_entity_type() == None:
                plant(Entities.Carrot)
        if get_water() < 0.5:
            use_item(Items.Water)
        move(North)
        if get_pos_y() == 0:
            move(East)
            move(East)
clear()
spawn_drone(work)
move(East)
work()

Seed 2: two drones, every other column each, across the whole field.

Fifteen minutes of it produced 78.9 million wood; seed 3’s eight-drone farm made 23.3 million in thirty-two. The crops and upgrades differ too (seed 3 grew bushes, not trees), so coverage is only part of the gap, but it is the part the code makes plain.

Too big to sort

Cactus pays most when the field is sorted, and Terra’s cactus program sorts it with full passes in both directions before each harvest. That work grows quickly with the field. On seed 1, on 16×16, a twenty-minute stint returned 262,144 cactus. At 5h08m Terra bought the expansion to 22×22 and ran the same program for fifteen minutes and then fifteen more, with no cactus either time. As far as the inventory shows, it never finished a sort, and its narration doesn’t mention it. It moved on to bones with about twenty minutes left.

What decided the score

The score adds about a point for every tenfold of each resource, so the crop farm matters most and the rarer resources decide the margins. Seed 2 finished 7.9 points ahead of seed 1 mostly on those margins: 1.7 from power, 1.5 from weird substance (a second weird stint at 5h20m made 786,432, where seed 1 had stopped at 31,360), and about 2.9 from the bigger crop farm.

Against Sol the gap is wood and weird substance. Sol’s mixed farm fertilized its trees and produced weird substance as a by-product, tens or hundreds of millions of it, while Terra made it only in short dedicated stints. Against Astra on seed 2, the one seed where Terra finished ahead, the difference was the crop farm: hay, wood and carrots were worth 3.2 points more to Terra, while Astra produced more power and weird substance.

Score on seed 2over game time
GPT-6.1 Sol75.9GPT-6.1 Terra66.3GPT-6 Astra63.2
Score on seed 2. Terra's climb after 4h54m is economy16 on the full field.

The numbers every valid seed, from the published runs

pointslog₁₀(1 + produced)

Where the points came from

ResourceSeed 1Seed 2Seed 3Mean
Hay6.947.587.547.35
Wood7.148.317.517.65
Carrot6.207.286.686.72
Pumpkin5.916.195.845.98
Cactus5.546.215.505.75
Power2.344.024.133.50
Bone6.016.485.686.05
Weird substance4.505.954.845.09
Gold4.835.154.934.97
Water5.005.215.005.07
Fertilizer4.063.984.024.02
Total58.4766.3461.6862.16
unlocksfirst produced, game time

When each resource was first produced

ResourceSeed 1Seed 2Seed 3
Hay1m 30s1m 00s1m 00s
Wood6m 20s9m 40s4m 30s
Carrot13m 10s24m 40s20m 30s
Pumpkin1h 05m1h 13m1h 03m
Cactus1h 53m2h 10m1h 59m
Power4h 22m4h 03m2h 58m
Water10m 10s18m 10s10m 10s
Fertilizer32m 20s1h 01m50m 20s
Weird substance2h 22m2h 34m2h 29m
Gold2h 27m2h 43m2h 34m
Bone2h 14m2h 24m2h 11m
how-it-playsper seed, from the export's behaviour block

How it plays

MeasureSeed 1Seed 2Seed 3MeanAll models
Resources openedscored resources produced at least once11 of 1111 of 1111 of 1111 of 119.6 of 11
Studydocs and research reads3330353347
Action overheadgame time spent looking, reading and typing (10 s per call)7%7%7%7%10%
Tool callsevery action the agent took149150143147225
Program writesaccepted saves of a program1718191837
Program stintstimes a program was started and left running2729282841
Median stinthow long a program usually ran before the next change10m 30s10m 20s10m 35s10m 28s7m 19s
Cost per pointAPI-equivalent estimate ÷ score$0.0039$0.0033$0.0033$0.0035$0.056
runs3 valid