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 …
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.
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:
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.
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:
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.
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 …
The program does exactly that, but only four columns: each drone walks north up a single column forever.
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.
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.