Claude Fable 5.2, seed 3

Claude Code · medium reasoning effort

ValidCounts toward the meanGame-time budget used

  • Hay 418m produced, 8.62 points
  • Wood 2.07b produced, 9.32 points
  • Carrot 414m produced, 8.62 points
  • Pumpkin 96.1m produced, 7.98 points
  • Cactus 245m produced, 8.39 points
  • Power 188k produced, 5.27 points
  • Bone 35.8m produced, 7.55 points
  • Weird substance 2.66m produced, 6.42 points
  • Gold 38.8m produced, 7.59 points
  • Water 266k produced, 5.43 points
  • Fertilizer 11k produced, 4.04 points

Produced by the end of the run. Pips: points each resource adds to the score, one per tenfold.

Score · economy-v1
79.23orders of magnitude · model mean 80.16
On seed 3
#2of 16 models
Cost
$7.13API-equivalent estimate
Real time
30m 13swall clock, not scored
timelineeconomy-v1 · sampled every 10 game-seconds

Score and what the agent did, over game time

Ticks under the axis: upgrade purchases.

Data table
Game timeScore
0s0.00
1h 00m27.1
2h 00m41.4
3h 00m60.0
4h 00m71.5
5h 00m76.4
6h 00m79.2
said6m 53s · Still bootstrapping the farm: loops, speed and planting are unlocked, and I'm about to expand to 3x3 and head for carrots.13m 53s · Carrots, senses, variables and functions are in; now saving carrots and wood for speed, trees and the next expansion.25m 12s · Buying the next speed level, then building toward pumpkins for the 8x8 expansion.49m 15s · Pumpkins are now yielding weird substance too; unlocking mazes next, on the way to more drones.1h 05m · Two drones are farming now; gold is at about 6,300 of the 8,000 needed for four drones, so I'm waiting on that.1h 26m · Cactus sorting works (20,736 in one harvest). Buying the maze upgrade and dinosaurs next.1h 38m · Bones are in (20,449 from one full snake). Now running mazes toward 32,000 gold for 8 drones, and buying yield upgrades as they become affordable.2h 13m · Farm is now 16x16 with companion planting and sunflower power working. Waiting on gold for the 8-drone upgrade.2h 22m · Shared-maze gold farming with 8 drones works well (44k gold in under 5 minutes). Waiting for 128k gold to unlock 16 drones.2h 46m · 16 drones running and a big round of yield upgrades bought. Now raising targets for the 22x22 expansion and 32 drones.3h 18m · Farm is 22x22 and producing millions per cycle. Buying the 32-drone upgrade and another round of yield upgrades now.3h 32m · Something has stalled — almost nothing was produced in the last 5 minutes. Checking the farm state.3h 41m · Farm is now 32x32 with 32 drones. Starting a balanced rotation across all crops, cactus, and gold.3h 54m · Gold came in slower than expected during the maze phase; checking what the drones are doing.3h 58m · The maze drones were stalling once walls opened up into loops, so I've rewritten them with a proper search. Testing that now.4h 09m · Maze search works (gold is now ~9M). Next: a short pumpkin/carrot push to afford the last two yield upgrades, then a long dinosaur run for bones.4h 55m · Bones done (+33.5M). The final rotation is running across all crops, cactus and gold; I'll let it run and check periodically.5h 10m · Gold is the lowest resource, so I'm restarting the rotation with more maze time for the last ~49 minutes.5h 31m · About 29 minutes left; the rotation is producing steadily (gold +7.4M in the last 20 minutes), so I'm letting it run to the end.5h 59m · The 6-hour budget is used up (16 seconds left, not enough for another action), so the run is finished. The farm went from a 1x1 grass tile to a 32x32 field wit6h 00m · The game-time budget is now fully used: the clock reads 6h elapsed with 0s remaining, and the run is over. The last 6 seconds added one more maze treasure (+32said: 21 entries, first at 6m 53s
runningrunning: 40 entries, first at 50s
errorserrors: 2 entries, first at 1m 33s

Said: the agent's own progress messages. Thought: its thinking as the agent reported it. Read: docs and research. Wrote: program saves. Running: which program the farm ran. Text sits at the game time it was written; the game is paused while the agent thinks. Dots open the step in the log below.

how-it-playedcompared with Claude Fable 5.2's 3 valid seeds and the 16 models on seed 3

How it played

MeasureThis runModel meanSeed 3 meanWhat it counts
Resources opened11 of 1111 of 119.4 of 11scored resources produced at least once
Study353346docs and research reads
Action overhead11%11%11%game time spent looking, reading and typing (10 s per call)
Tool calls228229228every action the agent took
Program writes495136accepted saves of a program
Program stints384240times a program was started and left running
Median stint5m 25s4m 40s7m 06show long a program usually ran before the next change
Cost per point$0.090$0.095$0.052API-equivalent estimate ÷ score

Farm idle 4% of samples; longest stint 48m 56s; 2 rejected writes.

production11 of 11 resources produced

Production and holdings

Each resource on its own scale. Ticks: purchases of the upgrade that feeds it. On the log scale each tenfold rise is one point.

  • Produced (cumulative, what the score counts)
  • Held (after spending)
Vertical scale
Wood2.1B produced · 9.32 pts
Wood2.1B produced · 9.32 pts
Hay417.9M produced · 8.62 pts
Hay417.9M produced · 8.62 pts
Carrot413.7M produced · 8.62 pts
Carrot413.7M produced · 8.62 pts
Cactus244.7M produced · 8.39 pts
Cactus244.7M produced · 8.39 pts
Pumpkin96.1M produced · 7.98 pts
Pumpkin96.1M produced · 7.98 pts
Gold38.8M produced · 7.59 pts
Gold38.8M produced · 7.59 pts
Bone35.8M produced · 7.55 pts
Bone35.8M produced · 7.55 pts
Weird substance2.7M produced · 6.42 pts
Weird substance2.7M produced · 6.42 pts
Water266.2K produced · 5.43 pts
Water266.2K produced · 5.43 pts
Power187.7K produced · 5.27 pts
Power187.7K produced · 5.27 pts
Fertilizer11K produced · 4.04 pts
Fertilizer11K produced · 4.04 pts
upgrades114 levels across 27 upgrades

Upgrade timeline

loopsloops: 1 entry, first at 1m 13s
speedspeed: 5 entries, first at 2m 33s
expandexpand: 9 entries, first at 3m 33s
plantplant: 1 entry, first at 5m 03s
operatorsoperators: 1 entry, first at 8m 43s
carrotscarrots: 10 entries, first at 8m 43s
sensessenses: 1 entry, first at 10m 53s
variablesvariables: 1 entry, first at 13m 43s
functionsfunctions: 2 entries, first at 13m 43s
treestrees: 10 entries, first at 15m 25s
wateringwatering: 9 entries, first at 17m 45s
pumpkinspumpkins: 10 entries, first at 20m 35s
fertilizerfertilizer: 4 entries, first at 20m 35s
mazesmazes: 6 entries, first at 49m 25s
megafarmmegafarm: 5 entries, first at 52m 35s
listslists: 1 entry, first at 52m 35s
importimport: 1 entry, first at 1h 08m
cactuscactus: 6 entries, first at 1h 21m
dinosaursdinosaurs: 6 entries, first at 1h 26m
hatshats: 6 entries, first at 1h 26m
grassgrass: 9 entries, first at 1h 33m
sunflowerssunflowers: 1 entry, first at 2h 09m
polyculturepolyculture: 5 entries, first at 2h 09m
dictionariesdictionaries: 1 entry, first at 2h 16m
utilitiesutilities: 1 entry, first at 2h 16m
debugdebug: 1 entry, first at 2h 16m
timingtiming: 1 entry, first at 3h 19m
Every purchase, with what the agent was told
Game timeCallUnlockedResult the agent saw
1m 03s{"upgrades":["loops"]}loops 1Bought loops, now level 1. Paid hay 5. Its tutorial is docs page docs/scripting/while.md.
2m 23s{"upgrades":["speed"]}speed 1Bought speed, now level 1. Paid hay 20. Its tutorial is docs page docs/unlocks/speed.md.
3m 23s{"upgrades":["expand"]}expand 1Bought expand, now level 1. Paid hay 30. Its tutorial is docs page docs/unlocks/expand_1.md.
4m 53s{"upgrades":["plant"]}plant 1Bought plant, now level 1. Paid hay 50. Its tutorial is docs page docs/unlocks/plant.md.
6m 33s{"upgrades":["speed"]}speed 2Bought speed, now level 2. Paid wood 20. Its tutorial is docs page docs/unlocks/speed.md.
6m 53s{"upgrades":["expand"]}expand 2Bought expand, now level 2. Paid wood 20. Its tutorial is docs page docs/unlocks/expand_1.md.
8m 33s{"upgrades":["operators","carrots","expand","speed"]}operators 1, carrots 1Bought operators, now level 1. Paid hay 150, wood 10. Its tutorial is docs page docs/scripting/operators.md.
10m 43s{"upgrades":["senses","speed","expand"]}senses 1, expand 3Bought senses, now level 1. Paid hay 100. Its tutorial is docs page docs/unlocks/senses.md.
13m 33s{"upgrades":["variables","functions","speed"]}variables 1, functions 1, functions 1Bought variables, now level 1. Paid carrot 35. Its tutorial is docs page docs/scripting/variables.md.
15m 15s{"upgrades":["speed","trees"]}speed 3, trees 1Bought speed, now level 3. Paid wood 50, carrot 50. Its tutorial is docs page docs/unlocks/speed.md.
17m 35s{"upgrades":["expand","watering","carrots"]}expand 4, watering 1, carrots 2Bought expand, now level 4. Paid wood 100, carrot 50. Its tutorial is docs page docs/unlocks/expand_1.md.
20m 25s{"upgrades":["pumpkins","speed","expand","fertilizer"]}pumpkins 1, fertilizer 1Bought pumpkins, now level 1. Paid wood 500, carrot 200. Its tutorial is docs page docs/unlocks/pumpkins.md.
20m 45s{"upgrades":["trees","watering"]}trees 2, watering 2Bought trees, now level 2. Paid hay 300. Its tutorial is docs page docs/unlocks/trees.md.
25m 12s{"upgrades":["speed"]}speed 4Bought speed, now level 4. Paid carrot 500. Its tutorial is docs page docs/unlocks/speed.md.
33m 50s{"upgrades":["expand"]}expand 5Bought expand, now level 5. Paid pumpkin 1000. Its tutorial is docs page docs/unlocks/expand_1.md.
37m 35s{"upgrades":["speed"]}speed 5Bought speed, now level 5. Paid carrot 1000. Its tutorial is docs page docs/unlocks/speed.md.
43m 55s{"upgrades":["carrots"]}carrots 3Bought carrots, now level 3. Paid wood 1250. Its tutorial is docs page docs/unlocks/carrots.md.
49m 15s{"upgrades":["mazes"]}mazes 1Bought mazes, now level 1. Paid weird_substance 1000. Its tutorial is docs page docs/unlocks/mazes.md.
52m 25s{"upgrades":["megafarm","lists"]}megafarm 1, lists 1Bought megafarm, now level 1. Paid gold 2000. Its tutorial is docs page docs/unlocks/megafarm.md.
1h 08m{"upgrades":["megafarm"]}megafarm 2Bought megafarm, now level 2. Paid gold 8000. Its tutorial is docs page docs/unlocks/megafarm.md.
1h 08m{"upgrades":["import"]}import 1Bought import, now level 1. Paid carrot 80. Its tutorial is docs page docs/scripting/import.md.
1h 14m{"upgrades":["expand"]}expand 6Bought expand, now level 6. Paid pumpkin 8000. Its tutorial is docs page docs/unlocks/expand_1.md.
1h 20m{"upgrades":["cactus","watering"]}cactus 1, watering 3Bought cactus, now level 1. Paid pumpkin 5000. Its tutorial is docs page docs/unlocks/cactus.md.
1h 26m{"upgrades":["mazes","dinosaurs"]}mazes 2, dinosaurs 1, hats 1Bought mazes, now level 2. Paid cactus 12000. Its tutorial is docs page docs/unlocks/mazes.md.
1h 26m{"upgrades":["hats"]}—Could not buy hats: Already at maximum level.
1h 32m{"upgrades":["pumpkins","grass","fertilizer"]}pumpkins 2, grass 2, fertilizer 2Bought pumpkins, now level 2. Paid carrot 1000. Its tutorial is docs page docs/unlocks/pumpkins.md.
1h 38m{"upgrades":["carrots","trees"]}carrots 4, trees 3Bought carrots, now level 4. Paid wood 6250. Its tutorial is docs page docs/unlocks/carrots.md.
2h 08m{"upgrades":["expand"]}expand 7Bought expand, now level 7. Paid pumpkin 64000. Its tutorial is docs page docs/unlocks/expand_1.md.
2h 09m{"upgrades":["cactus","grass","sunflowers","polyculture","watering"]}cactus 2, grass 3, sunflowers 1, polyculture 1, watering 4Bought cactus, now level 2. Paid pumpkin 20000. Its tutorial is docs page docs/unlocks/cactus.md.
2h 15m{"upgrades":["megafarm","pumpkins","trees"]}megafarm 3, pumpkins 3, trees 4Bought megafarm, now level 3. Paid gold 32000. Its tutorial is docs page docs/unlocks/megafarm.md.
2h 16m{"upgrades":["polyculture","dictionaries","utilities","debug"]}polyculture 2, dictionaries 1, utilities 1, debug 1Bought polyculture, now level 2. Paid bone 10000. Its tutorial is docs page docs/unlocks/polyculture.md.
2h 30m{"upgrades":["megafarm","grass","fertilizer"]}megafarm 4, grass 4, fertilizer 3Bought megafarm, now level 4. Paid gold 128000. Its tutorial is docs page docs/unlocks/megafarm.md.
2h 30m{"upgrades":["dinosaurs"]}dinosaurs 2, hats 1Bought dinosaurs, now level 2. Paid cactus 12000. Its tutorial is docs page docs/unlocks/dinosaurs.md.
2h 37m{"upgrades":["mazes","carrots","pumpkins","trees","watering","polyculture","grass","fertilizer","dinosaurs"]}mazes 3, carrots 5, pumpkins 4, trees 5, watering 5, polyculture 3, grass 5, fertilizer 4, dinosaurs 3, hats 1Bought mazes, now level 3. Paid cactus 72000. Its tutorial is docs page docs/unlocks/mazes.md.
2h 46m{"upgrades":["carrots","grass","trees","watering","pumpkins","cactus","mazes","polyculture","watering"]}carrots 6, grass 6, trees 6, watering 6, pumpkins 5, cactus 3, mazes 4, polyculture 4Bought carrots, now level 6. Paid wood 156000. Its tutorial is docs page docs/unlocks/carrots.md.
2h 57m{"upgrades":["expand","carrots","watering","grass","pumpkins","dinosaurs","trees"]}expand 8, carrots 7, watering 7, grass 7, pumpkins 6, dinosaurs 4, hats 1, trees 7Bought expand, now level 8. Paid pumpkin 512000. Its tutorial is docs page docs/unlocks/expand_1.md.
3h 08m{"upgrades":["trees","carrots","grass","watering","pumpkins","mazes","cactus"]}trees 8, carrots 8, grass 8, watering 8, pumpkins 7, mazes 5, cactus 4Bought trees, now level 8. Paid hay 1230000. Its tutorial is docs page docs/unlocks/trees.md.
3h 18m{"upgrades":["megafarm","polyculture","dinosaurs","trees","carrots","grass","watering","pumpkins","cactus","mazes"]}megafarm 5, polyculture 5, dinosaurs 5, hats 1, watering 9Bought megafarm, now level 5. Paid gold 512000. Its tutorial is docs page docs/unlocks/megafarm.md.
3h 19m{"upgrades":["timing"]}timing 1Bought timing, now level 1. Paid pumpkin 1000. Its tutorial is docs page docs/unlocks/timing.md.
3h 26m{"upgrades":["pumpkins","carrots","grass","trees"]}pumpkins 8, carrots 9, grass 9, trees 9Bought pumpkins, now level 8. Paid carrot 4100000. Its tutorial is docs page docs/unlocks/pumpkins.md.
3h 40m{"upgrades":["cactus","expand","grass","trees","carrots","pumpkins"]}cactus 5, expand 9, grass 10, trees 10Bought cactus, now level 5. Paid pumpkin 4320000. Its tutorial is docs page docs/unlocks/cactus.md.
3h 48m{"upgrades":["mazes","dinosaurs","carrots","pumpkins","pumpkins"]}mazes 6, dinosaurs 6, hats 1, carrots 10, pumpkins 9Bought mazes, now level 6. Paid cactus 15600000. Its tutorial is docs page docs/unlocks/mazes.md.
4h 14m{"upgrades":["pumpkins"]}pumpkins 10Bought pumpkins, now level 10. Paid carrot 65500000. Its tutorial is docs page docs/unlocks/pumpkins.md.
4h 15m{"upgrades":["cactus"]}cactus 6Bought cactus, now level 6. Paid pumpkin 25900000. Its tutorial is docs page docs/unlocks/cactus.md.

Programs 51 writes, code as the agent wrote it

a.py7 writes · 6 ran · first at 30s
  1. r130sRan17 lines · ran 13s
    harvest()
    do_a_flip()
    harvest()
    do_a_flip()
    harvest()
    do_a_flip()
    harvest()
    do_a_flip()
    harvest()
    do_a_flip()
    harvest()
    do_a_flip()
    harvest()
    do_a_flip()
    harvest()
    do_a_flip()
    harvest()
    Write result the agent saw
    Saved a (17 lines).
    Game time: 40s elapsed, 5h 59m 20s of budget remaining.
    run_program at 40s for 60s (agent saw)
    Ran a for 13s of game time; it finished.
    Inventory change: hay +9.
    Game time: 1m 3s elapsed, 5h 58m 57s of budget remaining.
    Output:
    (none)
  2. r21m 13sRan3 lines · +3 −17 · ran 0s · 1 runtime error
    while True:
    	if can_harvest():
    		harvest()
    Changes from the previous revision
    - harvest()
    - do_a_flip()
    - harvest()
    - do_a_flip()
    - harvest()
    - do_a_flip()
    - harvest()
    - do_a_flip()
    - harvest()
    - do_a_flip()
    - harvest()
    - do_a_flip()
    - harvest()
    - do_a_flip()
    - harvest()
    - do_a_flip()
    - harvest()
    + while True:
    + 	if can_harvest():
    + 		harvest()
    
    Write result the agent saw
    Saved a (3 lines).
    Game time: 1m 23s elapsed, 5h 58m 37s of budget remaining.
    run_program at 1m 23s for 30s (agent saw)
    Ran a for 0s of game time; it stopped with an error: Unlocks.Speed must be unlocked before this can be used.
    Inventory change: no change.
    Game time: 1m 33s elapsed, 5h 58m 27s of budget remaining.
    Output:
    Error: Unlocks.Speed must be unlocked before this can be used.
    In: 
    if can_harvest():
                  ^^ 
    --------------------------------------------------------------------
    Runtime error at 1m 33s (telemetry; not shown to the agent)
    Unlocks.Speed must be unlocked before this can be used.
  3. r31m 33sRan3 lines · +2 −2 · ran 2m 00s
    while True:
    	harvest()
    	do_a_flip()
    Changes from the previous revision
      while True:
    - 	if can_harvest():
    - 		harvest()
    + 	harvest()
    + 	do_a_flip()
    
    Write result the agent saw
    Saved a (3 lines).
    Game time: 1m 43s elapsed, 5h 58m 17s of budget remaining.
    run_program at 1m 43s for 30s (agent saw)
    Ran a for 30s of game time; it is still running.
    Inventory change: hay +20.
    Game time: 2m 23s elapsed, 5h 57m 37s of budget remaining.
    Output:
    (none)
    run_program at 2m 53s for 20s (agent saw)
    Ran a for 20s of game time; it is still running.
    Inventory change: hay +15.
    Game time: 3m 23s elapsed, 5h 56m 37s of budget remaining.
    Output:
    (none)
  4. —2m 43sRejected
    while True:
    	if can_harvest():
    		harvest()
    Write result the agent saw
    Stop the program before editing it.
  5. r43m 53sRan4 lines · +3 −2 · ran 1m 00s
    while True:
    	if can_harvest():
    		harvest()
    	move(North)
    Changes from the previous revision
      while True:
    - 	harvest()
    - 	do_a_flip()
    + 	if can_harvest():
    + 		harvest()
    + 	move(North)
    
    Write result the agent saw
    Saved a (4 lines).
    Game time: 4m 3s elapsed, 5h 55m 57s of budget remaining.
    run_program at 4m 03s for 40s (agent saw)
    Ran a for 40s of game time; it is still running.
    Inventory change: hay +60.
    Game time: 4m 53s elapsed, 5h 55m 7s of budget remaining.
    Output:
    (none)
  6. r55m 13sRan12 lines · +8 −0 · ran 1m 40s
    while True:
    	if can_harvest():
    		harvest()
    		plant(Entities.Bush)
    	move(North)
    	if can_harvest():
    		harvest()
    		plant(Entities.Bush)
    	move(North)
    	if can_harvest():
    		harvest()
    	move(North)
    Changes from the previous revision
      	if can_harvest():
      		harvest()
    + 		plant(Entities.Bush)
      	move(North)
    + 	if can_harvest():
    + 		harvest()
    + 		plant(Entities.Bush)
    + 	move(North)
    + 	if can_harvest():
    + 		harvest()
    + 	move(North)
    
    Write result the agent saw
    Saved a (12 lines).
    Game time: 5m 23s elapsed, 5h 54m 37s of budget remaining.
    run_program at 5m 23s for 60s (agent saw)
    Ran a for 1m of game time; it is still running.
    Inventory change: hay +83, wood +26.
    Game time: 6m 33s elapsed, 5h 53m 27s of budget remaining.
    Output:
    (none)
  7. r67m 13sRanFinal13 lines · +1 −0 · ran 1m 30s
    while True:
    	if can_harvest():
    		harvest()
    		plant(Entities.Bush)
    	move(North)
    	if can_harvest():
    		harvest()
    		plant(Entities.Bush)
    	move(North)
    	if can_harvest():
    		harvest()
    	move(North)
    	move(East)
    Changes from the previous revision
      		harvest()
      	move(North)
    + 	move(East)
    
    Write result the agent saw
    Saved a (13 lines).
    Game time: 7m 23s elapsed, 5h 52m 37s of budget remaining.
    run_program at 7m 23s for 60s (agent saw)
    Ran a for 1m of game time; it is still running.
    Inventory change: hay +74, wood +96.
    Game time: 8m 33s elapsed, 5h 51m 27s of budget remaining.
    Output:
    (none)
setup.py1 write · 1 ran · first at 9m 23s
  1. r19m 23sRanFinal22 lines · ran 2m 30s
    harvest()
    till()
    move(East)
    harvest()
    till()
    move(East)
    harvest()
    till()
    move(East)
    while True:
    	if can_harvest():
    		harvest()
    	plant(Entities.Carrot)
    	move(North)
    	if can_harvest():
    		harvest()
    		plant(Entities.Bush)
    	move(North)
    	if can_harvest():
    		harvest()
    	move(North)
    	move(East)
    Write result the agent saw
    Saved setup (22 lines).
    Game time: 9m 33s elapsed, 5h 50m 27s of budget remaining.
    run_program at 9m 33s for 60s (agent saw)
    Ran setup for 1m of game time; it is still running.
    Inventory change: carrot +27, hay +59, wood +72.
    Game time: 10m 43s elapsed, 5h 49m 17s of budget remaining.
    Output:
    (none)
b.py1 write · 1 ran · first at 12m 13s
  1. r112m 13sRanFinal14 lines · ran 3m 13s
    while True:
    	if can_harvest():
    		harvest()
    	if get_pos_y() < 2:
    		if get_ground_type() != Grounds.Soil:
    			till()
    		if get_entity_type() != Entities.Carrot:
    			plant(Entities.Carrot)
    	elif get_pos_y() == 2:
    		if get_entity_type() != Entities.Bush:
    			plant(Entities.Bush)
    	move(North)
    	if get_pos_y() == 0:
    		move(East)
    Write result the agent saw
    Saved b (14 lines).
    Game time: 12m 23s elapsed, 5h 47m 37s of budget remaining.
    run_program at 12m 23s for 60s (agent saw)
    Ran b for 1m of game time; it is still running.
    Inventory change: carrot +68, hay +26, wood +8.
    Game time: 13m 33s elapsed, 5h 46m 27s of budget remaining.
    Output:
    (none)
c.py2 writes · 2 ran · first at 15m 45s
  1. r115m 45sRan22 lines · ran 2m 00s
    def cell():
    	x = get_pos_x()
    	y = get_pos_y()
    	if can_harvest():
    		harvest()
    	if (x + y) % 2 == 0:
    		if get_entity_type() != Entities.Tree:
    			plant(Entities.Tree)
    	elif x % 2 == 0:
    		if get_ground_type() != Grounds.Soil:
    			till()
    		if get_entity_type() != Entities.Carrot:
    			plant(Entities.Carrot)
    	else:
    		if get_ground_type() == Grounds.Soil:
    			till()
    
    while True:
    	cell()
    	move(North)
    	if get_pos_y() == 0:
    		move(East)
    Write result the agent saw
    Saved c (22 lines).
    Game time: 15m 55s elapsed, 5h 44m 5s of budget remaining.
    run_program at 15m 55s for 90s (agent saw)
    Ran c for 1m 30s of game time; it is still running.
    Inventory change: carrot +81, hay +92, wood +603.
    Game time: 17m 35s elapsed, 5h 42m 25s of budget remaining.
    Output:
    (none)
  2. r218m 05sRanFinal26 lines · +4 −0 · ran 3m 00s
    def cell():
    	x = get_pos_x()
    	y = get_pos_y()
    	if can_harvest():
    		harvest()
    	if (x + y) % 2 == 0:
    		if get_entity_type() != Entities.Tree:
    			plant(Entities.Tree)
    		if get_water() < 0.5 and num_items(Items.Water) > 0:
    			use_item(Items.Water)
    	elif x % 2 == 0:
    		if get_ground_type() != Grounds.Soil:
    			till()
    		if get_entity_type() != Entities.Carrot:
    			plant(Entities.Carrot)
    		if get_water() < 0.5 and num_items(Items.Water) > 0:
    			use_item(Items.Water)
    	else:
    		if get_ground_type() == Grounds.Soil:
    			till()
    
    while True:
    	cell()
    	move(North)
    	if get_pos_y() == 0:
    		move(East)
    Changes from the previous revision
      		if get_entity_type() != Entities.Tree:
      			plant(Entities.Tree)
    + 		if get_water() < 0.5 and num_items(Items.Water) > 0:
    + 			use_item(Items.Water)
      	elif x % 2 == 0:
      		if get_ground_type() != Grounds.Soil:
      		if get_entity_type() != Entities.Carrot:
      			plant(Entities.Carrot)
    + 		if get_water() < 0.5 and num_items(Items.Water) > 0:
    + 			use_item(Items.Water)
      	else:
      		if get_ground_type() == Grounds.Soil:
    
    Write result the agent saw
    Saved c (26 lines).
    Game time: 18m 15s elapsed, 5h 41m 45s of budget remaining.
    run_program at 18m 15s for 120s (agent saw)
    Ran c for 2m of game time; it is still running.
    Inventory change: carrot +268, hay +13, water -3, wood +1088.
    Game time: 20m 25s elapsed, 5h 39m 35s of budget remaining.
    Output:
    (none)
d.py3 writes · 3 ran · first at 21m 25s
  1. r121m 25sRan76 lines · ran 16m 30s
    def step():
    	move(North)
    	if get_pos_y() == 0:
    		move(East)
    
    def water():
    	if get_water() < 0.3 and num_items(Items.Water) > 0:
    		use_item(Items.Water)
    
    def simple(mode):
    	n = get_world_size()
    	i = 0
    	while i < n * n:
    		want = Entities.Grass
    		soil = False
    		if mode == 1:
    			if (get_pos_x() + get_pos_y()) % 2 == 0:
    				want = Entities.Tree
    			else:
    				want = Entities.Bush
    		elif mode == 2:
    			want = Entities.Carrot
    			soil = True
    		e = get_entity_type()
    		if e != want:
    			if e != None:
    				harvest()
    			if soil != (get_ground_type() == Grounds.Soil):
    				till()
    			if want != Entities.Grass:
    				plant(want)
    		elif can_harvest():
    			harvest()
    			if want != Entities.Grass:
    				plant(want)
    		if mode != 0:
    			water()
    		step()
    		i += 1
    
    def pumpkins():
    	n = get_world_size()
    	i = 0
    	while i < n * n:
    		if get_entity_type() != Entities.Pumpkin:
    			if get_entity_type() != None:
    				harvest()
    			if get_ground_type() != Grounds.Soil:
    				till()
    			plant(Entities.Pumpkin)
    		water()
    		step()
    		i += 1
    	bad = 1
    	while bad > 0:
    		bad = 0
    		i = 0
    		while i < n * n:
    			if not can_harvest():
    				bad += 1
    				if get_entity_type() != Entities.Pumpkin:
    					plant(Entities.Pumpkin)
    					water()
    			step()
    			i += 1
    	harvest()
    
    while True:
    	if num_items(Items.Hay) < 500:
    		simple(0)
    	elif num_items(Items.Wood) < 1000:
    		simple(1)
    	elif num_items(Items.Carrot) < 1200:
    		simple(2)
    	else:
    		pumpkins()
    Write result the agent saw
    Saved d (76 lines).
    Game time: 21m 35s elapsed, 5h 38m 25s of budget remaining.
    run_program at 21m 35s for 180s (agent saw)
    Ran d for 3m of game time; it is still running.
    Inventory change: carrot +186, fertilizer +18, hay +354, water +2, wood +308.
    Game time: 24m 45s elapsed, 5h 35m 15s of budget remaining.
    Output:
    (none)
  2. r238m 15sRan82 lines · +6 −0 · ran 5m 10s
    def step():
    	move(North)
    	if get_pos_y() == 0:
    		move(East)
    
    def water():
    	if get_water() < 0.3 and num_items(Items.Water) > 0:
    		use_item(Items.Water)
    
    def fert():
    	if num_items(Items.Fertilizer) > 0 and num_items(Items.Weird_Substance) < 3000:
    		use_item(Items.Fertilizer)
    
    def simple(mode):
    	n = get_world_size()
    	i = 0
    	while i < n * n:
    		want = Entities.Grass
    		soil = False
    		if mode == 1:
    			if (get_pos_x() + get_pos_y()) % 2 == 0:
    				want = Entities.Tree
    			else:
    				want = Entities.Bush
    		elif mode == 2:
    			want = Entities.Carrot
    			soil = True
    		e = get_entity_type()
    		if e != want:
    			if e != None:
    				harvest()
    			if soil != (get_ground_type() == Grounds.Soil):
    				till()
    			if want != Entities.Grass:
    				plant(want)
    		elif can_harvest():
    			harvest()
    			if want != Entities.Grass:
    				plant(want)
    		if mode != 0:
    			water()
    		step()
    		i += 1
    
    def pumpkins():
    	n = get_world_size()
    	i = 0
    	while i < n * n:
    		if get_entity_type() != Entities.Pumpkin:
    			if get_entity_type() != None:
    				harvest()
    			if get_ground_type() != Grounds.Soil:
    				till()
    			plant(Entities.Pumpkin)
    			fert()
    		water()
    		step()
    		i += 1
    	bad = 1
    	while bad > 0:
    		bad = 0
    		i = 0
    		while i < n * n:
    			if not can_harvest():
    				bad += 1
    				if get_entity_type() != Entities.Pumpkin:
    					plant(Entities.Pumpkin)
    					fert()
    					water()
    			step()
    			i += 1
    	harvest()
    
    while True:
    	if num_items(Items.Hay) < 500:
    		simple(0)
    	elif num_items(Items.Wood) < 1000:
    		simple(1)
    	elif num_items(Items.Carrot) < 1200:
    		simple(2)
    	else:
    		pumpkins()
    Changes from the previous revision
      		use_item(Items.Water)
      
    + def fert():
    + 	if num_items(Items.Fertilizer) > 0 and num_items(Items.Weird_Substance) < 3000:
    + 		use_item(Items.Fertilizer)
    + 
      def simple(mode):
      	n = get_world_size()
      				till()
      			plant(Entities.Pumpkin)
    + 			fert()
      		water()
      		step()
      				if get_entity_type() != Entities.Pumpkin:
      					plant(Entities.Pumpkin)
    + 					fert()
      					water()
      			step()
    
    Write result the agent saw
    Saved d (82 lines).
    Game time: 38m 25s elapsed, 5h 21m 35s of budget remaining.
    run_program at 38m 25s for 300s (agent saw)
    Ran d for 5m of game time; it is still running.
    Inventory change: carrot +876, fertilizer -108, hay +56, pumpkin +459, water -4, weird_substance +309, wood +968.
    Game time: 43m 35s elapsed, 5h 16m 25s of budget remaining.
    Output:
    (none)
  3. r343m 45sRanFinal83 lines · +7 −6 · ran 5m 30s
    def step():
    	move(North)
    	if get_pos_y() == 0:
    		move(East)
    
    def water():
    	if get_water() < 0.3 and num_items(Items.Water) > 0:
    		use_item(Items.Water)
    
    def simple(mode):
    	n = get_world_size()
    	i = 0
    	while i < n * n:
    		want = Entities.Grass
    		soil = False
    		if mode == 1:
    			if (get_pos_x() + get_pos_y()) % 2 == 0:
    				want = Entities.Tree
    			else:
    				want = Entities.Bush
    		elif mode == 2:
    			want = Entities.Carrot
    			soil = True
    		e = get_entity_type()
    		if e != want:
    			if e != None:
    				harvest()
    			if soil != (get_ground_type() == Grounds.Soil):
    				till()
    			if want != Entities.Grass:
    				plant(want)
    		elif can_harvest():
    			harvest()
    			if want != Entities.Grass:
    				plant(want)
    		if mode != 0:
    			water()
    		step()
    		i += 1
    
    def pumpkins():
    	n = get_world_size()
    	i = 0
    	while i < n * n:
    		if get_entity_type() != Entities.Pumpkin:
    			if get_entity_type() != None:
    				harvest()
    			if get_ground_type() != Grounds.Soil:
    				till()
    			plant(Entities.Pumpkin)
    		water()
    		step()
    		i += 1
    	bad = 1
    	while bad > 0:
    		bad = 0
    		i = 0
    		while i < n * n:
    			if not can_harvest():
    				bad += 1
    				if get_entity_type() != Entities.Pumpkin:
    					plant(Entities.Pumpkin)
    					water()
    			step()
    			i += 1
    	if num_items(Items.Weird_Substance) < 3000 and num_items(Items.Weird_Substance) > 20:
    		i = 0
    		while i < n * n:
    			if (get_pos_x() + 2 * get_pos_y()) % 5 == 0:
    				use_item(Items.Weird_Substance)
    			step()
    			i += 1
    	harvest()
    
    while True:
    	if num_items(Items.Hay) < 500:
    		simple(0)
    	elif num_items(Items.Wood) < 1000:
    		simple(1)
    	elif num_items(Items.Carrot) < 1200:
    		simple(2)
    	else:
    		pumpkins()
    Changes from the previous revision
      		use_item(Items.Water)
      
    - def fert():
    - 	if num_items(Items.Fertilizer) > 0 and num_items(Items.Weird_Substance) < 3000:
    - 		use_item(Items.Fertilizer)
    - 
      def simple(mode):
      	n = get_world_size()
      				till()
      			plant(Entities.Pumpkin)
    - 			fert()
      		water()
      		step()
      				if get_entity_type() != Entities.Pumpkin:
      					plant(Entities.Pumpkin)
    - 					fert()
      					water()
      			step()
      			i += 1
    + 	if num_items(Items.Weird_Substance) < 3000 and num_items(Items.Weird_Substance) > 20:
    + 		i = 0
    + 		while i < n * n:
    + 			if (get_pos_x() + 2 * get_pos_y()) % 5 == 0:
    + 				use_item(Items.Weird_Substance)
    + 			step()
    + 			i += 1
      	harvest()
      
    
    Write result the agent saw
    Saved d (83 lines).
    Game time: 43m 55s elapsed, 5h 16m 5s of budget remaining.
    run_program at 44m 05s for 300s (agent saw)
    Ran d for 5m of game time; it is still running.
    Inventory change: carrot -65, fertilizer +30, pumpkin +1626, water -7, weird_substance +984, wood +1088.
    Game time: 49m 15s elapsed, 5h 10m 45s of budget remaining.
    Output:
    (none)
maze.py1 write · 1 ran · first at 49m 45s
  1. r149m 45sRanFinal26 lines · ran 2m 09s
    def d(i):
    	if i == 0:
    		return North
    	if i == 1:
    		return East
    	if i == 2:
    		return South
    	return West
    
    def maze():
    	if get_entity_type() != Entities.Bush:
    		harvest()
    		plant(Entities.Bush)
    	n = get_world_size()
    	use_item(Items.Weird_Substance, n * 2 ** (num_unlocked(Unlocks.Mazes) - 1))
    	dir = 0
    	while get_entity_type() != Entities.Treasure:
    		r = (dir + 1) % 4
    		if move(d(r)):
    			dir = r
    		elif not move(d(dir)):
    			dir = (dir + 3) % 4
    	harvest()
    
    while num_items(Items.Gold) < 2000 and num_items(Items.Weird_Substance) >= 8:
    	maze()
    Write result the agent saw
    Saved maze (26 lines).
    Game time: 49m 55s elapsed, 5h 10m 5s of budget remaining.
    run_program at 49m 55s for 120s (agent saw)
    Ran maze for 2m of game time; it is still running.
    Inventory change: fertilizer +12, gold +1856, pumpkin +1, water +24, weird_substance -240.
    Game time: 52m 5s elapsed, 5h 7m 55s of budget remaining.
    Output:
    (none)
f.py1 write · 1 ran · first at 52m 55s
  1. r152m 55sRanFinal152 lines · ran 15m 31s
    HAY = 800
    WOOD = 1500
    CARROT = 1500
    WS = 1200
    GOLD = 8000
    
    def goto(x, y):
    	while get_pos_x() < x:
    		move(East)
    	while get_pos_x() > x:
    		move(West)
    	while get_pos_y() < y:
    		move(North)
    	while get_pos_y() > y:
    		move(South)
    
    def water():
    	if get_water() < 0.3 and num_items(Items.Water) > 0:
    		use_item(Items.Water)
    
    def c_grass():
    	e = get_entity_type()
    	if e != Entities.Grass:
    		if e != None:
    			harvest()
    		if get_ground_type() == Grounds.Soil:
    			till()
    	elif can_harvest():
    		harvest()
    
    def c_plant(want, soil):
    	e = get_entity_type()
    	if e != want:
    		if e != None:
    			harvest()
    		if soil != (get_ground_type() == Grounds.Soil):
    			till()
    		plant(want)
    	elif can_harvest():
    		harvest()
    		plant(want)
    	water()
    
    def c_tree():
    	if (get_pos_x() + get_pos_y()) % 2 == 0:
    		c_plant(Entities.Tree, False)
    	else:
    		c_plant(Entities.Bush, False)
    
    def c_carrot():
    	c_plant(Entities.Carrot, True)
    
    def c_pplant():
    	if get_entity_type() != Entities.Pumpkin:
    		if get_entity_type() != None:
    			harvest()
    		if get_ground_type() != Grounds.Soil:
    			till()
    		plant(Entities.Pumpkin)
    	water()
    
    def c_ws():
    	if (get_pos_x() + 2 * get_pos_y()) % 5 == 0:
    		use_item(Items.Weird_Substance)
    
    def strip(fn, x0, x1):
    	n = get_world_size()
    	goto(x0, 0)
    	for x in range(x0, x1):
    		for y in range(n):
    			fn()
    			move(North)
    		move(East)
    
    def t_pumpkin(fn, x0, x1):
    	n = get_world_size()
    	strip(c_pplant, x0, x1)
    	bad = 1
    	while bad > 0:
    		bad = 0
    		goto(x0, 0)
    		for x in range(x0, x1):
    			for y in range(n):
    				if not can_harvest():
    					bad += 1
    					if get_entity_type() != Entities.Pumpkin:
    						plant(Entities.Pumpkin)
    						water()
    				move(North)
    			move(East)
    
    def run_all(task, fn):
    	n = get_world_size()
    	D = max_drones()
    	w = (n + D - 1) // D
    	hs = []
    	x0 = w
    	while x0 < n:
    		x1 = x0 + w
    		if x1 > n:
    			x1 = n
    		h = spawn_drone(task, fn, x0, x1)
    		if h == None:
    			task(fn, x0, x1)
    		else:
    			hs.append(h)
    		x0 = x1
    	task(fn, 0, w)
    	for h in hs:
    		wait_for(h)
    
    def d(i):
    	if i == 0:
    		return North
    	if i == 1:
    		return East
    	if i == 2:
    		return South
    	return West
    
    def maze():
    	if get_entity_type() != Entities.Bush:
    		harvest()
    		plant(Entities.Bush)
    	n = get_world_size()
    	use_item(Items.Weird_Substance, n * 2 ** (num_unlocked(Unlocks.Mazes) - 1))
    	dir = 0
    	while get_entity_type() != Entities.Treasure:
    		r = (dir + 1) % 4
    		if move(d(r)):
    			dir = r
    		elif not move(d(dir)):
    			dir = (dir + 3) % 4
    	harvest()
    
    while True:
    	n = get_world_size()
    	msub = n * 2 ** (num_unlocked(Unlocks.Mazes) - 1)
    	if num_items(Items.Hay) < HAY:
    		run_all(strip, c_grass)
    	elif num_items(Items.Wood) < WOOD:
    		run_all(strip, c_tree)
    	elif num_items(Items.Carrot) < CARROT:
    		run_all(strip, c_carrot)
    	elif num_items(Items.Gold) < GOLD and num_items(Items.Weird_Substance) >= msub * 10:
    		for i in range(10):
    			maze()
    	else:
    		run_all(t_pumpkin, None)
    		if num_items(Items.Weird_Substance) < WS and num_items(Items.Weird_Substance) > 30:
    			run_all(strip, c_ws)
    		harvest()
    Write result the agent saw
    Saved f (152 lines).
    Game time: 53m 5s elapsed, 5h 6m 55s of budget remaining.
    run_program at 53m 05s for 120s (agent saw)
    Ran f for 2m of game time; it is still running.
    Inventory change: carrot +828, fertilizer +12, gold +320, hay +348, water -37, weird_substance -48, wood -28.
    Game time: 55m 15s elapsed, 5h 4m 45s of budget remaining.
    Output:
    Warning: Tried to use Items.Water but didn't have enough of it.
    In: strip <- c_carrot <- c_plant <- water
    use_item(Items.Water)
            ^^           
    --------------------------------------------------------------------
    Warning: Tried to use Items.Water but didn't have enough of it.
    In: strip <- c_carrot <- c_plant <- water
    use_item(Items.Water)
            ^^           
    --------------------------------------------------------------------
lib.py3 writes · 0 ran · first at 1h 08m
  1. r11h 08mSaved, never run147 lines
    def goto(x, y):
    	while get_pos_x() < x:
    		move(East)
    	while get_pos_x() > x:
    		move(West)
    	while get_pos_y() < y:
    		move(North)
    	while get_pos_y() > y:
    		move(South)
    
    def water():
    	if get_water() < 0.3 and num_items(Items.Water) > 0:
    		use_item(Items.Water)
    
    def c_grass():
    	e = get_entity_type()
    	if e != Entities.Grass:
    		if e != None:
    			harvest()
    		if get_ground_type() == Grounds.Soil:
    			till()
    	elif can_harvest():
    		harvest()
    
    def c_plant(want, soil):
    	e = get_entity_type()
    	if e != want:
    		if e != None:
    			harvest()
    		if soil != (get_ground_type() == Grounds.Soil):
    			till()
    		plant(want)
    	elif can_harvest():
    		harvest()
    		plant(want)
    	water()
    
    def c_tree():
    	if (get_pos_x() + get_pos_y()) % 2 == 0:
    		c_plant(Entities.Tree, False)
    	else:
    		c_plant(Entities.Bush, False)
    
    def c_carrot():
    	c_plant(Entities.Carrot, True)
    
    def c_pplant():
    	if get_entity_type() != Entities.Pumpkin:
    		if get_entity_type() != None:
    			harvest()
    		if get_ground_type() != Grounds.Soil:
    			till()
    		plant(Entities.Pumpkin)
    	water()
    
    def c_ws():
    	if (get_pos_x() + 2 * get_pos_y()) % 5 == 0:
    		use_item(Items.Weird_Substance)
    
    def strip(fn, x0, x1):
    	n = get_world_size()
    	goto(x0, 0)
    	for x in range(x0, x1):
    		for y in range(n):
    			fn()
    			move(North)
    		move(East)
    
    def t_pumpkin(fn, x0, x1):
    	n = get_world_size()
    	strip(c_pplant, x0, x1)
    	bad = 1
    	while bad > 0:
    		bad = 0
    		goto(x0, 0)
    		for x in range(x0, x1):
    			for y in range(n):
    				if not can_harvest():
    					bad += 1
    					if get_entity_type() != Entities.Pumpkin:
    						plant(Entities.Pumpkin)
    						water()
    				move(North)
    			move(East)
    
    def run_all(task, fn):
    	n = get_world_size()
    	D = max_drones()
    	w = (n + D - 1) // D
    	hs = []
    	x0 = w
    	while x0 < n:
    		x1 = x0 + w
    		if x1 > n:
    			x1 = n
    		h = spawn_drone(task, fn, x0, x1)
    		if h == None:
    			task(fn, x0, x1)
    		else:
    			hs.append(h)
    		x0 = x1
    	task(fn, 0, w)
    	for h in hs:
    		wait_for(h)
    
    def d(i):
    	if i == 0:
    		return North
    	if i == 1:
    		return East
    	if i == 2:
    		return South
    	return West
    
    def maze():
    	if get_entity_type() != Entities.Bush:
    		harvest()
    		plant(Entities.Bush)
    	n = get_world_size()
    	use_item(Items.Weird_Substance, n * 2 ** (num_unlocked(Unlocks.Mazes) - 1))
    	dir = 0
    	while get_entity_type() != Entities.Treasure:
    		r = (dir + 1) % 4
    		if move(d(r)):
    			dir = r
    		elif not move(d(dir)):
    			dir = (dir + 3) % 4
    	harvest()
    
    def main(HAY, WOOD, CARROT, WS, GOLD, PUMP):
    	while True:
    		n = get_world_size()
    		msub = n * 2 ** (num_unlocked(Unlocks.Mazes) - 1)
    		if num_items(Items.Hay) < HAY:
    			run_all(strip, c_grass)
    		elif num_items(Items.Wood) < WOOD:
    			run_all(strip, c_tree)
    		elif num_items(Items.Carrot) < CARROT:
    			run_all(strip, c_carrot)
    		elif num_items(Items.Gold) < GOLD and num_items(Items.Weird_Substance) >= msub * 10 and num_items(Items.Pumpkin) >= PUMP:
    			for i in range(10):
    				maze()
    		else:
    			run_all(t_pumpkin, None)
    			if num_items(Items.Weird_Substance) < WS and num_items(Items.Weird_Substance) > 30:
    				run_all(strip, c_ws)
    			harvest()
    Write result the agent saw
    Saved lib (147 lines).
    Game time: 1h 8m 56s elapsed, 4h 51m 4s of budget remaining.
  2. r21h 21mSaved, never run195 lines · +52 −4
    def goto(x, y):
    	while get_pos_x() < x:
    		move(East)
    	while get_pos_x() > x:
    		move(West)
    	while get_pos_y() < y:
    		move(North)
    	while get_pos_y() > y:
    		move(South)
    
    def water():
    	if get_water() < 0.3 and num_items(Items.Water) > 0:
    		use_item(Items.Water)
    
    def c_grass():
    	e = get_entity_type()
    	if e != Entities.Grass:
    		if e != None:
    			harvest()
    		if get_ground_type() == Grounds.Soil:
    			till()
    	elif can_harvest():
    		harvest()
    
    def c_plant(want, soil):
    	e = get_entity_type()
    	if e != want:
    		if e != None:
    			harvest()
    		if soil != (get_ground_type() == Grounds.Soil):
    			till()
    		plant(want)
    	elif can_harvest():
    		harvest()
    		plant(want)
    	water()
    
    def c_tree():
    	if (get_pos_x() + get_pos_y()) % 2 == 0:
    		c_plant(Entities.Tree, False)
    	else:
    		c_plant(Entities.Bush, False)
    
    def c_carrot():
    	c_plant(Entities.Carrot, True)
    
    def c_pplant():
    	if get_entity_type() != Entities.Pumpkin:
    		if get_entity_type() != None:
    			harvest()
    		if get_ground_type() != Grounds.Soil:
    			till()
    		plant(Entities.Pumpkin)
    	water()
    
    def c_cplant():
    	if get_entity_type() != Entities.Cactus:
    		if get_entity_type() != None:
    			harvest()
    		if get_ground_type() != Grounds.Soil:
    			till()
    		plant(Entities.Cactus)
    
    def c_ws():
    	if (get_pos_x() + 2 * get_pos_y()) % 5 == 0:
    		use_item(Items.Weird_Substance)
    
    def strip(fn, x0, x1):
    	n = get_world_size()
    	goto(x0, 0)
    	for x in range(x0, x1):
    		for y in range(n):
    			fn()
    			move(North)
    		move(East)
    
    def t_pumpkin(fn, x0, x1):
    	n = get_world_size()
    	strip(c_pplant, x0, x1)
    	bad = 1
    	while bad > 0:
    		bad = 0
    		goto(x0, 0)
    		for x in range(x0, x1):
    			for y in range(n):
    				if not can_harvest():
    					bad += 1
    					if get_entity_type() != Entities.Pumpkin:
    						plant(Entities.Pumpkin)
    						water()
    				move(North)
    			move(East)
    
    def gnome(fwd, back):
    	n = get_world_size()
    	p = 0
    	while p < n - 1:
    		if measure() > measure(fwd):
    			swap(fwd)
    			if p > 0:
    				move(back)
    				p -= 1
    			else:
    				move(fwd)
    				p += 1
    		else:
    			move(fwd)
    			p += 1
    
    def t_ccols(fn, x0, x1):
    	strip(c_cplant, x0, x1)
    	for x in range(x0, x1):
    		goto(x, 0)
    		gnome(North, South)
    
    def t_crows(fn, y0, y1):
    	for y in range(y0, y1):
    		goto(0, y)
    		gnome(East, West)
    
    def run_all(task, fn):
    	n = get_world_size()
    	D = max_drones()
    	w = (n + D - 1) // D
    	hs = []
    	x0 = w
    	while x0 < n:
    		x1 = x0 + w
    		if x1 > n:
    			x1 = n
    		h = spawn_drone(task, fn, x0, x1)
    		if h == None:
    			task(fn, x0, x1)
    		else:
    			hs.append(h)
    		x0 = x1
    	task(fn, 0, w)
    	for h in hs:
    		wait_for(h)
    
    def d(i):
    	if i == 0:
    		return North
    	if i == 1:
    		return East
    	if i == 2:
    		return South
    	return West
    
    def maze():
    	if get_entity_type() != Entities.Bush:
    		harvest()
    		plant(Entities.Bush)
    	n = get_world_size()
    	use_item(Items.Weird_Substance, n * 2 ** (num_unlocked(Unlocks.Mazes) - 1))
    	dir = 0
    	while get_entity_type() != Entities.Treasure:
    		r = (dir + 1) % 4
    		if move(d(r)):
    			dir = r
    		elif not move(d(dir)):
    			dir = (dir + 3) % 4
    	harvest()
    
    def cactus():
    	run_all(t_ccols, None)
    	run_all(t_crows, None)
    	goto(0, 0)
    	while not can_harvest():
    		do_a_flip()
    	harvest()
    
    def main(HAY, WOOD, CARROT, WS, GOLD, PUMP, CACT):
    	while True:
    		n = get_world_size()
    		msub = n * 2 ** (num_unlocked(Unlocks.Mazes) - 1)
    		if num_items(Items.Hay) < HAY:
    			run_all(strip, c_grass)
    		elif num_items(Items.Wood) < WOOD:
    			run_all(strip, c_tree)
    		elif num_items(Items.Carrot) < CARROT:
    			run_all(strip, c_carrot)
    		elif num_items(Items.Pumpkin) < PUMP or num_items(Items.Weird_Substance) < msub * 10:
    			run_all(t_pumpkin, None)
    			if num_items(Items.Weird_Substance) < WS and num_items(Items.Weird_Substance) > 30:
    				run_all(strip, c_ws)
    			harvest()
    		elif num_items(Items.Cactus) < CACT:
    			cactus()
    		elif num_items(Items.Gold) < GOLD:
    			for i in range(10):
    				maze()
    		else:
    			run_all(t_pumpkin, None)
    			harvest()
    Changes from the previous revision
      	water()
      
    + def c_cplant():
    + 	if get_entity_type() != Entities.Cactus:
    + 		if get_entity_type() != None:
    + 			harvest()
    + 		if get_ground_type() != Grounds.Soil:
    + 			till()
    + 		plant(Entities.Cactus)
    + 
      def c_ws():
      	if (get_pos_x() + 2 * get_pos_y()) % 5 == 0:
      			move(East)
      
    + def gnome(fwd, back):
    + 	n = get_world_size()
    + 	p = 0
    + 	while p < n - 1:
    + 		if measure() > measure(fwd):
    + 			swap(fwd)
    + 			if p > 0:
    + 				move(back)
    + 				p -= 1
    + 			else:
    + 				move(fwd)
    + 				p += 1
    + 		else:
    + 			move(fwd)
    + 			p += 1
    + 
    + def t_ccols(fn, x0, x1):
    + 	strip(c_cplant, x0, x1)
    + 	for x in range(x0, x1):
    + 		goto(x, 0)
    + 		gnome(North, South)
    + 
    + def t_crows(fn, y0, y1):
    + 	for y in range(y0, y1):
    + 		goto(0, y)
    + 		gnome(East, West)
    + 
      def run_all(task, fn):
      	n = get_world_size()
      	harvest()
      
    - def main(HAY, WOOD, CARROT, WS, GOLD, PUMP):
    + def cactus():
    + 	run_all(t_ccols, None)
    + 	run_all(t_crows, None)
    + 	goto(0, 0)
    + 	while not can_harvest():
    + 		do_a_flip()
    + 	harvest()
    + 
    + def main(HAY, WOOD, CARROT, WS, GOLD, PUMP, CACT):
      	while True:
      		n = get_world_size()
      		elif num_items(Items.Carrot) < CARROT:
      			run_all(strip, c_carrot)
    - 		elif num_items(Items.Gold) < GOLD and num_items(Items.Weird_Substance) >= msub * 10 and num_items(Items.Pumpkin) >= PUMP:
    + 		elif num_items(Items.Pumpkin) < PUMP or num_items(Items.Weird_Substance) < msub * 10:
    + 			run_all(t_pumpkin, None)
    + 			if num_items(Items.Weird_Substance) < WS and num_items(Items.Weird_Substance) > 30:
    + 				run_all(strip, c_ws)
    + 			harvest()
    + 		elif num_items(Items.Cactus) < CACT:
    + 			cactus()
    + 		elif num_items(Items.Gold) < GOLD:
      			for i in range(10):
      				maze()
      		else:
      			run_all(t_pumpkin, None)
    - 			if num_items(Items.Weird_Substance) < WS and num_items(Items.Weird_Substance) > 30:
    - 				run_all(strip, c_ws)
      			harvest()
    
    Write result the agent saw
    Saved lib (195 lines).
    Game time: 1h 22m 6s elapsed, 4h 37m 54s of budget remaining.
  3. r33h 18mSaved, never runFinal172 lines · +2 −25
    def goto(x, y):
    	while get_pos_x() < x:
    		move(East)
    	while get_pos_x() > x:
    		move(West)
    	while get_pos_y() < y:
    		move(North)
    	while get_pos_y() > y:
    		move(South)
    
    def water():
    	while get_water() < 0.75 and num_items(Items.Water) > 100:
    		use_item(Items.Water)
    
    def c_grass():
    	e = get_entity_type()
    	if e != Entities.Grass:
    		if e != None:
    			harvest()
    		if get_ground_type() == Grounds.Soil:
    			till()
    	elif can_harvest():
    		harvest()
    
    def c_plant(want, soil):
    	e = get_entity_type()
    	if e != want:
    		if e != None:
    			harvest()
    		if soil != (get_ground_type() == Grounds.Soil):
    			till()
    		plant(want)
    	elif can_harvest():
    		harvest()
    		plant(want)
    	water()
    
    def c_tree():
    	if (get_pos_x() + get_pos_y()) % 2 == 0:
    		c_plant(Entities.Tree, False)
    	else:
    		c_plant(Entities.Bush, False)
    
    def c_carrot():
    	c_plant(Entities.Carrot, True)
    
    def c_pplant():
    	if get_entity_type() != Entities.Pumpkin:
    		if get_entity_type() != None:
    			harvest()
    		if get_ground_type() != Grounds.Soil:
    			till()
    		plant(Entities.Pumpkin)
    	water()
    
    def c_cplant():
    	if get_entity_type() != Entities.Cactus:
    		if get_entity_type() != None:
    			harvest()
    		if get_ground_type() != Grounds.Soil:
    			till()
    		plant(Entities.Cactus)
    	water()
    
    def c_ws():
    	if (get_pos_x() + 2 * get_pos_y()) % 5 == 0:
    		use_item(Items.Weird_Substance)
    
    def strip(fn, x0, x1):
    	n = get_world_size()
    	goto(x0, 0)
    	for x in range(x0, x1):
    		for y in range(n):
    			fn()
    			move(North)
    		move(East)
    
    def t_pumpkin(fn, x0, x1):
    	n = get_world_size()
    	strip(c_pplant, x0, x1)
    	bad = 1
    	while bad > 0:
    		bad = 0
    		goto(x0, 0)
    		for x in range(x0, x1):
    			for y in range(n):
    				if not can_harvest():
    					bad += 1
    					if get_entity_type() != Entities.Pumpkin:
    						plant(Entities.Pumpkin)
    						water()
    				move(North)
    			move(East)
    
    def gnome(fwd, back):
    	n = get_world_size()
    	p = 0
    	while p < n - 1:
    		if measure() > measure(fwd):
    			swap(fwd)
    			if p > 0:
    				move(back)
    				p -= 1
    			else:
    				move(fwd)
    				p += 1
    		else:
    			move(fwd)
    			p += 1
    
    def t_ccols(fn, x0, x1):
    	strip(c_cplant, x0, x1)
    	for x in range(x0, x1):
    		goto(x, 0)
    		gnome(North, South)
    
    def t_crows(fn, y0, y1):
    	for y in range(y0, y1):
    		goto(0, y)
    		gnome(East, West)
    
    def run_all(task, fn):
    	n = get_world_size()
    	D = max_drones()
    	w = (n + D - 1) // D
    	hs = []
    	x0 = w
    	while x0 < n:
    		x1 = x0 + w
    		if x1 > n:
    			x1 = n
    		h = spawn_drone(task, fn, x0, x1)
    		if h == None:
    			task(fn, x0, x1)
    		else:
    			hs.append(h)
    		x0 = x1
    	task(fn, 0, w)
    	for h in hs:
    		wait_for(h)
    
    def d(i):
    	if i == 0:
    		return North
    	if i == 1:
    		return East
    	if i == 2:
    		return South
    	return West
    
    def maze():
    	if get_entity_type() != Entities.Bush:
    		harvest()
    		plant(Entities.Bush)
    	n = get_world_size()
    	use_item(Items.Weird_Substance, n * 2 ** (num_unlocked(Unlocks.Mazes) - 1))
    	dir = 0
    	while get_entity_type() != Entities.Treasure:
    		r = (dir + 1) % 4
    		if move(d(r)):
    			dir = r
    		elif not move(d(dir)):
    			dir = (dir + 3) % 4
    	harvest()
    
    def cactus():
    	run_all(t_ccols, None)
    	run_all(t_crows, None)
    	goto(0, 0)
    	while not can_harvest():
    		do_a_flip()
    	harvest()
    Changes from the previous revision
      
      def water():
    - 	if get_water() < 0.3 and num_items(Items.Water) > 0:
    + 	while get_water() < 0.75 and num_items(Items.Water) > 100:
      		use_item(Items.Water)
      
      			till()
      		plant(Entities.Cactus)
    + 	water()
      
      def c_ws():
      		do_a_flip()
      	harvest()
    - 
    - def main(HAY, WOOD, CARROT, WS, GOLD, PUMP, CACT):
    - 	while True:
    - 		n = get_world_size()
    - 		msub = n * 2 ** (num_unlocked(Unlocks.Mazes) - 1)
    - 		if num_items(Items.Hay) < HAY:
    - 			run_all(strip, c_grass)
    - 		elif num_items(Items.Wood) < WOOD:
    - 			run_all(strip, c_tree)
    - 		elif num_items(Items.Carrot) < CARROT:
    - 			run_all(strip, c_carrot)
    - 		elif num_items(Items.Pumpkin) < PUMP or num_items(Items.Weird_Substance) < msub * 10:
    - 			run_all(t_pumpkin, None)
    - 			if num_items(Items.Weird_Substance) < WS and num_items(Items.Weird_Substance) > 30:
    - 				run_all(strip, c_ws)
    - 			harvest()
    - 		elif num_items(Items.Cactus) < CACT:
    - 			cactus()
    - 		elif num_items(Items.Gold) < GOLD:
    - 			for i in range(10):
    - 				maze()
    - 		else:
    - 			run_all(t_pumpkin, None)
    - 			harvest()
    
    Write result the agent saw
    Saved lib (172 lines).
    Game time: 3h 19m 2s elapsed, 2h 40m 58s of budget remaining.
go.py1 write · 1 ran · first at 1h 08m
  1. r11h 08mRanFinal2 lines · ran 5m 40s
    import lib
    lib.main(800, 1500, 1500, 300, 32000, 8000)
    Write result the agent saw
    Saved go (2 lines).
    Game time: 1h 9m 6s elapsed, 4h 50m 54s of budget remaining.
    run_program at 1h 09m for 300s (agent saw)
    Ran go for 5m of game time; it is still running.
    Inventory change: carrot -97, fertilizer +30, gold +256, hay +19, pumpkin +3492, water -15, weird_substance +290, wood -296.
    Game time: 1h 14m 16s elapsed, 4h 45m 44s of budget remaining.
    Output:
    Warning: Tried to use Items.Water but didn't have enough of it.
    In: t_pumpkin <- strip <- c_pplant <- water
    use_item(Items.Water)
            ^^           
    --------------------------------------------------------------------
    Warning: Tried to use Items.Water but didn't have enough of it.
    In: strip <- c_carrot <- c_plant <- water
    use_item(Items.Water)
            ^^           
    --------------------------------------------------------------------
    Warning: Tried to use Items.Water but didn't have enough of it.
    In: t_pumpkin <- strip <- c_pplant <- water
    use_item(Items.Water)
            ^^           
    --------------------------------------------------------------------
go2.py2 writes · 2 ran · first at 1h 14m
  1. r11h 14mRan2 lines · ran 7m 00s
    import lib
    lib.main(800, 2500, 2500, 300, 32000, 5000)
    Write result the agent saw
    Saved go2 (2 lines).
    Game time: 1h 14m 46s elapsed, 4h 45m 14s of budget remaining.
    run_program at 1h 14m for 360s (agent saw)
    Ran go2 for 6m of game time; it is still running.
    Inventory change: carrot +1806, fertilizer +36, gold +2160, hay -55, pumpkin +5184, water +18, weird_substance -192, wood +1720.
    Game time: 1h 20m 56s elapsed, 4h 39m 4s of budget remaining.
    Output:
    Warning: Tried to use Items.Water but didn't have enough of it.
    In: strip <- c_carrot <- c_plant <- water
    use_item(Items.Water)
            ^^           
    --------------------------------------------------------------------
    Warning: Tried to use Items.Water but didn't have enough of it.
    In: strip <- c_carrot <- c_plant <- water
    use_item(Items.Water)
            ^^           
    --------------------------------------------------------------------
    Warning: Tried to use Items.Water but didn't have enough of it.
    In: t_pumpkin <- strip <- c_pplant <- water
    use_item(Items.Water)
            ^^           
    --------------------------------------------------------------------
    Warning: Tried to use Items.Water but didn't have enough of it.
    In: t_pumpkin <- strip <- c_pplant <- water
    use_item(Items.Water)
            ^^           
    --------------------------------------------------------------------
    Warning: Tried to use Items.Water but didn't have enough of it.
    In: t_pumpkin <- strip <- c_pplant <- water
    use_item(Items.Water)
            ^^           
    --------------------------------------------------------------------
    Warning: Tried to use Items.Water but didn't have enough of it.
    In: strip <- c_carrot <- c_plant <- water
    use_item(Items.Water)
            ^^           
    --------------------------------------------------------------------
  2. r21h 22mRanFinal2 lines · +1 −1 · ran 5m 20s
    import lib
    lib.main(800, 2500, 2500, 300, 32000, 3000, 14000)
    Changes from the previous revision
      import lib
    - lib.main(800, 2500, 2500, 300, 32000, 5000)
    + lib.main(800, 2500, 2500, 300, 32000, 3000, 14000)
    
    Write result the agent saw
    Saved go2 (2 lines).
    Game time: 1h 22m 16s elapsed, 4h 37m 44s of budget remaining.
    run_program at 1h 22m for 240s (agent saw)
    Ran go2 for 4m of game time; it is still running.
    Inventory change: cactus +20736, carrot -543, fertilizer +24, gold +1152, pumpkin +2565, water +56, weird_substance +437.
    Game time: 1h 26m 26s elapsed, 4h 33m 34s of budget remaining.
    Output:
    (none)
m2.py2 writes · 1 ran · first at 1h 27m
  1. r11h 27mRan73 lines · ran 4m 32s · 1 runtime error
    import lib
    
    def c_clear():
    	if get_ground_type() != Grounds.Soil:
    		till()
    	if get_entity_type() != None:
    		harvest()
    
    def cyc():
    	n = get_world_size()
    	for i in range(n - 1):
    		if not move(North):
    			return False
    	for x in range(1, n):
    		if not move(East):
    			return False
    		dv = North
    		if x % 2 == 1:
    			dv = South
    		steps = n - 2
    		if x == n - 1:
    			steps = n - 1
    		for s in range(steps):
    			if not move(dv):
    				return False
    	for i in range(n - 1):
    		if not move(West):
    			return False
    	return True
    
    def dino():
    	lib.run_all(lib.strip, c_clear)
    	lib.goto(0, 0)
    	change_hat(Hats.Dinosaur_Hat)
    	k = 0
    	while k < 200 and cyc():
    		k += 1
    	change_hat(Hats.Green_Hat)
    
    def pump(ws):
    	lib.run_all(lib.t_pumpkin, None)
    	if ws:
    		lib.run_all(lib.strip, lib.c_ws)
    	harvest()
    
    def mazes(k):
    	msub = get_world_size() * 2 ** (num_unlocked(Unlocks.Mazes) - 1)
    	for i in range(k):
    		if num_items(Items.Weird_Substance) >= msub:
    			lib.maze()
    
    def main(HAY, WOOD, CARROT, WS, GOLD, PUMP, CACT, BONE):
    	while True:
    		n = get_world_size()
    		msub = n * 2 ** (num_unlocked(Unlocks.Mazes) - 1)
    		if num_items(Items.Hay) < HAY:
    			lib.run_all(lib.strip, lib.c_grass)
    		elif num_items(Items.Wood) < WOOD:
    			lib.run_all(lib.strip, lib.c_tree)
    		elif num_items(Items.Carrot) < CARROT:
    			lib.run_all(lib.strip, lib.c_carrot)
    		elif num_items(Items.Pumpkin) < PUMP or num_items(Items.Weird_Substance) < msub * 10:
    			pump(num_items(Items.Weird_Substance) < WS and num_items(Items.Weird_Substance) > 30)
    		elif num_items(Items.Cactus) < CACT:
    			lib.cactus()
    		elif num_items(Items.Bone) < BONE:
    			dino()
    		elif num_items(Items.Gold) < GOLD:
    			mazes(10)
    		else:
    			pump(False)
    
    main(800, 2500, 2500, 800, 32000, 3000, 6000, 20000)
    Write result the agent saw
    Saved m2 (73 lines).
    Game time: 1h 27m 36s elapsed, 4h 32m 24s of budget remaining.
    run_program at 1h 27m for 300s (agent saw)
    Ran m2 for 4m 32s of game time; it stopped with an error: Hats.Green_Hat must be unlocked before this can be used.
    Inventory change: cactus -286, carrot +824, fertilizer +27, hay -40, pumpkin +459, water +73, weird_substance +376, wood +1098.
    Game time: 1h 32m 18s elapsed, 4h 27m 42s of budget remaining.
    Output:
    Error: Hats.Green_Hat must be unlocked before this can be used.
    In: main <- dino
    change_hat(Hats.Green_Hat)
              ^^              
    --------------------------------------------------------------------
    Runtime error at 1h 32m (telemetry; not shown to the agent)
    Hats.Green_Hat must be unlocked before this can be used.
  2. r21h 32mSaved, never runFinal71 lines · +1 −3
    import lib
    
    def c_clear():
    	if get_ground_type() != Grounds.Soil:
    		till()
    	if get_entity_type() != None:
    		harvest()
    
    def cyc():
    	n = get_world_size()
    	for i in range(n - 1):
    		if not move(North):
    			return False
    	for x in range(1, n):
    		if not move(East):
    			return False
    		dv = North
    		if x % 2 == 1:
    			dv = South
    		steps = n - 2
    		if x == n - 1:
    			steps = n - 1
    		for s in range(steps):
    			if not move(dv):
    				return False
    	for i in range(n - 1):
    		if not move(West):
    			return False
    	return True
    
    def dino():
    	lib.run_all(lib.strip, c_clear)
    	lib.goto(0, 0)
    	change_hat(Hats.Dinosaur_Hat)
    	k = 0
    	while k < 200 and cyc():
    		k += 1
    	change_hat(Hats.Straw_Hat)
    
    def pump(ws):
    	lib.run_all(lib.t_pumpkin, None)
    	if ws:
    		lib.run_all(lib.strip, lib.c_ws)
    	harvest()
    
    def mazes(k):
    	msub = get_world_size() * 2 ** (num_unlocked(Unlocks.Mazes) - 1)
    	for i in range(k):
    		if num_items(Items.Weird_Substance) >= msub:
    			lib.maze()
    
    def main(HAY, WOOD, CARROT, WS, GOLD, PUMP, CACT, BONE):
    	while True:
    		n = get_world_size()
    		msub = n * 2 ** (num_unlocked(Unlocks.Mazes) - 1)
    		if num_items(Items.Hay) < HAY:
    			lib.run_all(lib.strip, lib.c_grass)
    		elif num_items(Items.Wood) < WOOD:
    			lib.run_all(lib.strip, lib.c_tree)
    		elif num_items(Items.Carrot) < CARROT:
    			lib.run_all(lib.strip, lib.c_carrot)
    		elif num_items(Items.Pumpkin) < PUMP or num_items(Items.Weird_Substance) < msub * 10:
    			pump(num_items(Items.Weird_Substance) < WS and num_items(Items.Weird_Substance) > 30)
    		elif num_items(Items.Cactus) < CACT:
    			lib.cactus()
    		elif num_items(Items.Bone) < BONE:
    			dino()
    		elif num_items(Items.Gold) < GOLD:
    			mazes(10)
    		else:
    			pump(False)
    Changes from the previous revision
      	while k < 200 and cyc():
      		k += 1
    - 	change_hat(Hats.Green_Hat)
    + 	change_hat(Hats.Straw_Hat)
      
      def pump(ws):
      		else:
      			pump(False)
    - 
    - main(800, 2500, 2500, 800, 32000, 3000, 6000, 20000)
    
    Write result the agent saw
    Saved m2 (71 lines).
    Game time: 1h 32m 49s elapsed, 4h 27m 11s of budget remaining.
hat.py1 write · 1 ran · first at 1h 32m
  1. r11h 32mRanFinal1 lines · ran 0s
    change_hat(Hats.Straw_Hat)
    Write result the agent saw
    Saved hat (1 lines).
    Game time: 1h 32m 28s elapsed, 4h 27m 32s of budget remaining.
    run_program at 1h 32m for 5s (agent saw)
    Ran hat for 0s of game time; it finished.
    Inventory change: bone +20449.
    Game time: 1h 32m 39s elapsed, 4h 27m 21s of budget remaining.
    Output:
    (none)
r1.py1 write · 1 ran · first at 1h 32m
  1. r11h 32mRanFinal2 lines · ran 35m 50s
    import m2
    m2.main(1500, 7000, 3000, 3000, 32000, 3000, 3000, 2000)
    Write result the agent saw
    Saved r1 (2 lines).
    Game time: 1h 32m 59s elapsed, 4h 27m 1s of budget remaining.
    run_program at 1h 33m for 300s (agent saw)
    Ran r1 for 5m of game time; it is still running.
    Inventory change: carrot +1520, fertilizer +60, gold +6912, hay +746, water -18, weird_substance -600, wood +6730.
    Game time: 1h 38m 19s elapsed, 4h 21m 41s of budget remaining.
    Output:
    Warning: Tried to use Items.Water but didn't have enough of it.
    In: strip <- c_tree <- c_plant <- water
    use_item(Items.Water)
            ^^           
    --------------------------------------------------------------------
    Warning: Tried to use Items.Water but didn't have enough of it.
    In: strip <- c_carrot <- c_plant <- water
    use_item(Items.Water)
            ^^           
    --------------------------------------------------------------------
    Warning: Tried to use Items.Water but didn't have enough of it.
    In: strip <- c_carrot <- c_plant <- water
    use_item(Items.Water)
            ^^           
    --------------------------------------------------------------------
m3.py1 write · 0 ran · first at 2h 09m
  1. r12h 09mSaved, never runFinal115 lines
    import lib
    import m2
    
    def setc(t):
    	e = get_entity_type()
    	if e == t:
    		return
    	if e != None:
    		harvest()
    	if t == Entities.Carrot:
    		if get_ground_type() != Grounds.Soil:
    			till()
    		plant(t)
    	elif t == Entities.Grass:
    		if get_ground_type() == Grounds.Soil:
    			till()
    	else:
    		plant(t)
    
    def c_poly(crop):
    	x = get_pos_x()
    	y = get_pos_y()
    	if (x + y) % 2 == 1:
    		return
    	e = get_entity_type()
    	if e != crop:
    		setc(crop)
    	elif can_harvest():
    		harvest()
    		if crop != Entities.Grass:
    			plant(crop)
    	else:
    		return
    	lib.water()
    	c = get_companion()
    	if c != None:
    		t, pos = c
    		cx, cy = pos
    		if (cx + cy) % 2 == 1:
    			lib.goto(cx, cy)
    			setc(t)
    			lib.goto(x, y)
    
    def c_pgrass():
    	c_poly(Entities.Grass)
    
    def c_ptree():
    	c_poly(Entities.Tree)
    
    def c_pcarrot():
    	c_poly(Entities.Carrot)
    
    def c_splant():
    	if get_entity_type() != Entities.Sunflower:
    		if get_entity_type() != None:
    			harvest()
    		if get_ground_type() != Grounds.Soil:
    			till()
    		plant(Entities.Sunflower)
    	lib.water()
    
    def t_sunh(p, x0, x1):
    	n = get_world_size()
    	lib.goto(x0, 0)
    	for x in range(x0, x1):
    		for y in range(n):
    			if get_entity_type() == Entities.Sunflower:
    				if measure() == p:
    					while not can_harvest():
    						pass
    					harvest()
    			move(North)
    		move(East)
    
    def sun():
    	lib.run_all(lib.strip, c_splant)
    	p = 15
    	while p >= 7:
    		lib.run_all(t_sunh, p)
    		p -= 1
    
    def boot():
    	while num_items(Items.Weird_Substance) < 80:
    		if get_entity_type() != None:
    			harvest()
    		plant(Entities.Tree)
    		while not can_harvest():
    			if num_items(Items.Fertilizer) > 0:
    				use_item(Items.Fertilizer)
    		harvest()
    
    def main(HAY, WOOD, CARROT, POWER, WS, GOLD, PUMP, CACT, BONE):
    	while True:
    		n = get_world_size()
    		msub = n * 2 ** (num_unlocked(Unlocks.Mazes) - 1)
    		if num_items(Items.Hay) < HAY:
    			lib.run_all(lib.strip, c_pgrass)
    		elif num_items(Items.Wood) < WOOD:
    			lib.run_all(lib.strip, c_ptree)
    		elif num_items(Items.Carrot) < CARROT:
    			lib.run_all(lib.strip, c_pcarrot)
    		elif num_items(Items.Power) < POWER:
    			sun()
    		elif num_items(Items.Pumpkin) < PUMP or num_items(Items.Weird_Substance) < msub * 10:
    			if num_items(Items.Weird_Substance) < 80:
    				boot()
    			m2.pump(num_items(Items.Weird_Substance) < WS)
    		elif num_items(Items.Cactus) < CACT:
    			lib.cactus()
    		elif num_items(Items.Bone) < BONE:
    			m2.dino()
    		elif num_items(Items.Gold) < GOLD:
    			m2.mazes(10)
    		else:
    			m2.pump(False)
    Write result the agent saw
    Saved m3 (115 lines).
    Game time: 2h 9m 59s elapsed, 3h 50m 1s of budget remaining.
r2.py1 write · 1 ran · first at 2h 09m
  1. r12h 09mRanFinal2 lines · ran 5m 57s
    import m3
    m3.main(3000, 8000, 5000, 500, 3000, 32000, 3000, 3000, 2000)
    Write result the agent saw
    Saved r2 (2 lines).
    Game time: 2h 10m 9s elapsed, 3h 49m 51s of budget remaining.
    run_program at 2h 10m for 180s (agent saw)
    Ran r2 for 3m of game time; it is still running.
    Inventory change: carrot +8730, fertilizer +23, hay +4528, power +1819.73, pumpkin +156, water -45, weird_substance +60, wood +3160.
    Game time: 2h 13m 19s elapsed, 3h 46m 41s of budget remaining.
    Output:
    Warning: Tried to use Items.Water but didn't have enough of it.
    In: strip <- c_pgrass <- c_poly <- water
    use_item(Items.Water)
            ^^           
    --------------------------------------------------------------------
    Warning: Tried to use Items.Water but didn't have enough of it.
    In: strip <- c_pcarrot <- c_poly <- water
    use_item(Items.Water)
            ^^           
    --------------------------------------------------------------------
    Warning: Tried to use Items.Water but didn't have enough of it.
    In: strip <- c_splant <- water
    use_item(Items.Water)
            ^^           
    --------------------------------------------------------------------
    Warning: Tried to use Items.Water but didn't have enough of it.
    In: t_pumpkin <- strip <- c_pplant <- water
    use_item(Items.Water)
            ^^           
    --------------------------------------------------------------------
    Warning: Tried to use Items.Water but didn't have enough of it.
    In: t_pumpkin <- strip <- c_pplant <- water
    use_item(Items.Water)
            ^^           
    --------------------------------------------------------------------
t1.py1 write · 1 ran · first at 2h 16m
  1. r12h 16mRanFinal22 lines · ran 12s
    import lib
    
    def solve():
    	dir = 0
    	while get_entity_type() != Entities.Treasure:
    		r = (dir + 1) % 4
    		if move(lib.d(r)):
    			dir = r
    		elif not move(lib.d(dir)):
    			dir = (dir + 3) % 4
    
    msub = get_world_size() * 2 ** (num_unlocked(Unlocks.Mazes) - 1)
    harvest()
    plant(Entities.Bush)
    use_item(Items.Weird_Substance, msub)
    solve()
    g = num_items(Items.Gold)
    use_item(Items.Weird_Substance, msub)
    quick_print(num_items(Items.Gold) - g)
    solve()
    use_item(Items.Weird_Substance, msub)
    quick_print(num_items(Items.Gold) - g)
    Write result the agent saw
    Saved t1 (22 lines).
    Game time: 2h 16m 26s elapsed, 3h 43m 34s of budget remaining.
    run_program at 2h 16m for 60s (agent saw)
    Ran t1 for 12s of game time; it finished.
    Inventory change: fertilizer +2, gold +1024, power -12.22, water +10, weird_substance -96.
    Game time: 2h 16m 58s elapsed, 3h 43m 2s of budget remaining.
    Output:
    512
    1024
m4.py2 writes · 0 ran · first at 2h 16m
  1. r12h 16mSaved, never run82 lines
    import lib
    import m2
    import m3
    
    def walker(tx, ty, dir, hand, msub):
    	lib.goto(tx, ty)
    	e = get_entity_type()
    	while e != Entities.Hedge and e != Entities.Treasure:
    		e = get_entity_type()
    	steps = 0
    	lastg = num_items(Items.Gold)
    	while True:
    		e = get_entity_type()
    		if e == Entities.Treasure:
    			if num_items(Items.Weird_Substance) < msub:
    				harvest()
    				return
    			use_item(Items.Weird_Substance, msub)
    			if get_entity_type() == Entities.Treasure:
    				harvest()
    				return
    			continue
    		if e != Entities.Hedge:
    			return
    		r = (dir + hand) % 4
    		if move(lib.d(r)):
    			dir = r
    		elif not move(lib.d(dir)):
    			dir = (dir + 4 - hand) % 4
    		steps += 1
    		if steps % 600 == 0:
    			g = num_items(Items.Gold)
    			if g == lastg:
    				harvest()
    				return
    			lastg = g
    
    def gmaze():
    	n = get_world_size()
    	msub = n * 2 ** (num_unlocked(Unlocks.Mazes) - 1)
    	lib.run_all(lib.strip, m2.c_clear)
    	D = max_drones()
    	hs = []
    	for i in range(1, D):
    		hand = 1
    		if i % 2 == 1:
    			hand = 3
    		h = spawn_drone(walker, (i * 5 + 2) % n, (i * 11 + 3) % n, i % 4, hand, msub)
    		if h != None:
    			hs.append(h)
    	lib.goto(2, 3)
    	do_a_flip()
    	plant(Entities.Bush)
    	use_item(Items.Weird_Substance, msub)
    	walker(2, 3, 0, 1, msub)
    	for h in hs:
    		wait_for(h)
    
    def main(HAY, WOOD, CARROT, POWER, WS, GOLD, PUMP, CACT, BONE):
    	while True:
    		n = get_world_size()
    		msub = n * 2 ** (num_unlocked(Unlocks.Mazes) - 1)
    		if num_items(Items.Hay) < HAY:
    			lib.run_all(lib.strip, m3.c_pgrass)
    		elif num_items(Items.Wood) < WOOD:
    			lib.run_all(lib.strip, m3.c_ptree)
    		elif num_items(Items.Carrot) < CARROT:
    			lib.run_all(lib.strip, m3.c_pcarrot)
    		elif num_items(Items.Power) < POWER:
    			m3.sun()
    		elif num_items(Items.Pumpkin) < PUMP or (num_items(Items.Weird_Substance) < WS and num_items(Items.Gold) < GOLD):
    			if num_items(Items.Weird_Substance) < 80:
    				m3.boot()
    			m2.pump(num_items(Items.Weird_Substance) < WS)
    		elif num_items(Items.Cactus) < CACT:
    			lib.cactus()
    		elif num_items(Items.Bone) < BONE:
    			m2.dino()
    		elif num_items(Items.Gold) < GOLD:
    			gmaze()
    		else:
    			m2.pump(False)
    Write result the agent saw
    Saved m4 (82 lines).
    Game time: 2h 17m 8s elapsed, 3h 42m 52s of budget remaining.
  2. r23h 55mSaved, never runFinal98 lines · +18 −2
    import lib
    import m2
    import m3
    
    def soft(tx, ty):
    	ok = True
    	while ok and get_pos_x() < tx:
    		ok = move(East)
    	while ok and get_pos_x() > tx:
    		ok = move(West)
    	while ok and get_pos_y() < ty:
    		ok = move(North)
    	while ok and get_pos_y() > ty:
    		ok = move(South)
    
    def walker(tx, ty, dir, hand, msub):
    	soft(tx, ty)
    	e = get_entity_type()
    	k = 0
    	while e != Entities.Hedge and e != Entities.Treasure:
    		e = get_entity_type()
    		k += 1
    		if k > 3000:
    			return
    	steps = 0
    	lastg = num_items(Items.Gold)
    	while True:
    		e = get_entity_type()
    		if e == Entities.Treasure:
    			if num_items(Items.Weird_Substance) < msub:
    				harvest()
    				return
    			use_item(Items.Weird_Substance, msub)
    			if get_entity_type() == Entities.Treasure:
    				harvest()
    				return
    			continue
    		if e != Entities.Hedge:
    			return
    		r = (dir + hand) % 4
    		if move(lib.d(r)):
    			dir = r
    		elif not move(lib.d(dir)):
    			dir = (dir + 4 - hand) % 4
    		steps += 1
    		if steps % 3000 == 0:
    			g = num_items(Items.Gold)
    			if g == lastg:
    				harvest()
    				return
    			lastg = g
    
    def gmaze():
    	n = get_world_size()
    	msub = n * 2 ** (num_unlocked(Unlocks.Mazes) - 1)
    	lib.run_all(lib.strip, m2.c_clear)
    	D = max_drones()
    	hs = []
    	for i in range(1, D):
    		hand = 1
    		if i % 2 == 1:
    			hand = 3
    		h = spawn_drone(walker, (i * 5 + 2) % n, (i * 11 + 3) % n, i % 4, hand, msub)
    		if h != None:
    			hs.append(h)
    	lib.goto(2, 3)
    	do_a_flip()
    	do_a_flip()
    	plant(Entities.Bush)
    	use_item(Items.Weird_Substance, msub)
    	walker(2, 3, 0, 1, msub)
    	for h in hs:
    		wait_for(h)
    
    def main(HAY, WOOD, CARROT, POWER, WS, GOLD, PUMP, CACT, BONE):
    	while True:
    		n = get_world_size()
    		msub = n * 2 ** (num_unlocked(Unlocks.Mazes) - 1)
    		if num_items(Items.Hay) < HAY:
    			lib.run_all(lib.strip, m3.c_pgrass)
    		elif num_items(Items.Wood) < WOOD:
    			lib.run_all(lib.strip, m3.c_ptree)
    		elif num_items(Items.Carrot) < CARROT:
    			lib.run_all(lib.strip, m3.c_pcarrot)
    		elif num_items(Items.Power) < POWER:
    			m3.sun()
    		elif num_items(Items.Pumpkin) < PUMP or (num_items(Items.Weird_Substance) < WS and num_items(Items.Gold) < GOLD):
    			if num_items(Items.Weird_Substance) < 80:
    				m3.boot()
    			m2.pump(num_items(Items.Weird_Substance) < WS)
    		elif num_items(Items.Cactus) < CACT:
    			lib.cactus()
    		elif num_items(Items.Bone) < BONE:
    			m2.dino()
    		elif num_items(Items.Gold) < GOLD:
    			gmaze()
    		else:
    			m2.pump(False)
    Changes from the previous revision
      import m3
      
    + def soft(tx, ty):
    + 	ok = True
    + 	while ok and get_pos_x() < tx:
    + 		ok = move(East)
    + 	while ok and get_pos_x() > tx:
    + 		ok = move(West)
    + 	while ok and get_pos_y() < ty:
    + 		ok = move(North)
    + 	while ok and get_pos_y() > ty:
    + 		ok = move(South)
    + 
      def walker(tx, ty, dir, hand, msub):
    - 	lib.goto(tx, ty)
    + 	soft(tx, ty)
      	e = get_entity_type()
    + 	k = 0
      	while e != Entities.Hedge and e != Entities.Treasure:
      		e = get_entity_type()
    + 		k += 1
    + 		if k > 3000:
    + 			return
      	steps = 0
      	lastg = num_items(Items.Gold)
      			dir = (dir + 4 - hand) % 4
      		steps += 1
    - 		if steps % 600 == 0:
    + 		if steps % 3000 == 0:
      			g = num_items(Items.Gold)
      			if g == lastg:
      	lib.goto(2, 3)
      	do_a_flip()
    + 	do_a_flip()
      	plant(Entities.Bush)
      	use_item(Items.Weird_Substance, msub)
    
    Write result the agent saw
    Saved m4 (98 lines).
    Game time: 3h 55m 19s elapsed, 2h 4m 41s of budget remaining.
r3.py1 write · 1 ran · first at 2h 17m
  1. r12h 17mRanFinal3 lines · ran 13m 26s
    import m4
    harvest()
    m4.main(3000, 8000, 8000, 1000, 10000, 128000, 3000, 3000, 2000)
    Write result the agent saw
    Saved r3 (3 lines).
    Game time: 2h 17m 18s elapsed, 3h 42m 42s of budget remaining.
    run_program at 2h 17m for 300s (agent saw)
    Ran r3 for 5m of game time; it is still running.
    Inventory change: carrot +11796, fertilizer +60, gold +44032, hay +10544, power -168.38, pumpkin +12864, water -114, weird_substance +8656, wood +11176.
    Game time: 2h 22m 28s elapsed, 3h 37m 32s of budget remaining.
    Output:
    Warning: Tried to use Items.Water but didn't have enough of it.
    In: t_pumpkin <- strip <- c_pplant <- water
    use_item(Items.Water)
            ^^           
    --------------------------------------------------------------------
    Warning: Tried to use Items.Water but didn't have enough of it.
    In: t_pumpkin <- strip <- c_pplant <- water
    use_item(Items.Water)
            ^^           
    --------------------------------------------------------------------
    Warning: Tried to use Items.Water but didn't have enough of it.
    In: t_pumpkin <- strip <- c_pplant <- water
    use_item(Items.Water)
            ^^           
    --------------------------------------------------------------------
    Warning: Tried to use Items.Water but didn't have enough of it.
    In: strip <- c_splant <- water
    use_item(Items.Water)
            ^^           
    --------------------------------------------------------------------
r4.py1 write · 1 ran · first at 2h 30m
  1. r12h 30mRanFinal3 lines · ran 7m 40s
    import m4
    harvest()
    m4.main(25000, 45000, 40000, 2000, 20000, 600000, 30000, 100000, 50000)
    Write result the agent saw
    Saved r4 (3 lines).
    Game time: 2h 30m 34s elapsed, 3h 29m 26s of budget remaining.
    run_program at 2h 30m for 420s (agent saw)
    Ran r4 for 7m of game time; it is still running.
    Inventory change: bone +130050, cactus +130052, carrot +26156, fertilizer +168, gold +24576, hay +23184, power +1626.93, pumpkin +14880, water +42, weird_substance +9936, wood +108912.
    Game time: 2h 37m 54s elapsed, 3h 22m 6s of budget remaining.
    Output:
    (none)
r5.py1 write · 1 ran · first at 2h 38m
  1. r12h 38mRanFinal3 lines · ran 8m 40s
    import m4
    harvest()
    m4.main(90000, 280000, 80000, 3000, 40000, 520000, 140000, 450000, 260000)
    Write result the agent saw
    Saved r5 (3 lines).
    Game time: 2h 38m 24s elapsed, 3h 21m 36s of budget remaining.
    run_program at 2h 38m for 480s (agent saw)
    Ran r5 for 8m of game time; it is still running.
    Inventory change: cactus +522560, carrot +20280, fertilizer +384, hay +70368, power +1179.97, pumpkin +107688, water +492, weird_substance +23216, wood +45248.
    Game time: 2h 46m 34s elapsed, 3h 13m 26s of budget remaining.
    Output:
    Warning: Tried to use Items.Water but didn't have enough of it.
    In: strip <- c_splant <- water
    use_item(Items.Water)
            ^^           
    --------------------------------------------------------------------
    Warning: Tried to use Items.Water but didn't have enough of it.
    In: t_pumpkin <- strip <- c_pplant <- water
    use_item(Items.Water)
            ^^           
    --------------------------------------------------------------------
    Warning: Tried to use Items.Water but didn't have enough of it.
    In: t_pumpkin <- strip <- c_pplant <- water
    use_item(Items.Water)
            ^^           
    --------------------------------------------------------------------
    Warning: Tried to use Items.Water but didn't have enough of it.
    In: t_pumpkin <- water
    use_item(Items.Water)
            ^^           
    --------------------------------------------------------------------
r6.py1 write · 1 ran · first at 2h 46m
  1. r12h 46mRanFinal3 lines · ran 10m 20s
    import m4
    harvest()
    m4.main(350000, 800000, 300000, 4000, 80000, 520000, 520000, 450000, 100000)
    Write result the agent saw
    Saved r6 (3 lines).
    Game time: 2h 47m 4s elapsed, 3h 12m 56s of budget remaining.
    run_program at 2h 47m for 600s (agent saw)
    Ran r6 for 10m of game time; it is still running.
    Inventory change: cactus +524288, carrot +334192, fertilizer +480, gold +391168, hay +101568, power +2289.49, pumpkin +540032, water -158, weird_substance +44872, wood +1255072.
    Game time: 2h 57m 14s elapsed, 3h 2m 46s of budget remaining.
    Output:
    Warning: Tried to use Items.Water but didn't have enough of it.
    In: t_pumpkin <- strip <- c_pplant <- water
    use_item(Items.Water)
            ^^           
    --------------------------------------------------------------------
r7.py1 write · 1 ran · first at 2h 57m
  1. r12h 57mRanFinal3 lines · ran 20m 48s
    import m4
    harvest()
    m4.main(1300000, 1700000, 1100000, 5000, 100000, 520000, 800000, 2600000, 1300000)
    Write result the agent saw
    Saved r7 (3 lines).
    Game time: 2h 57m 54s elapsed, 3h 2m 6s of budget remaining.
    run_program at 2h 57m for 600s (agent saw)
    Ran r7 for 10m of game time; it is still running.
    Inventory change: cactus +2810736, carrot +1509340, fertilizer +480, hay +1987712, power +93.90, pumpkin +779904, water +1982, weird_substance +44735, wood +7387648.
    Game time: 3h 8m 4s elapsed, 2h 51m 56s of budget remaining.
    Output:
    Warning: Tried to use Items.Water but didn't have enough of it.
    In: t_pumpkin <- strip <- c_pplant <- water
    use_item(Items.Water)
            ^^           
    --------------------------------------------------------------------
    Warning: Tried to use Items.Water but didn't have enough of it.
    In: t_pumpkin <- water
    use_item(Items.Water)
            ^^           
    --------------------------------------------------------------------
m5.py1 write · 0 ran · first at 3h 19m
  1. r13h 19mSaved, never runFinal38 lines
    import lib
    import m2
    import m3
    import m4
    
    def rot(P, DINO):
    	r = 0
    	while True:
    		n = get_world_size()
    		msub = n * 2 ** (num_unlocked(Unlocks.Mazes) - 1)
    		t = get_time()
    		if num_items(Items.Power) < 6000:
    			m3.sun()
    		for i in range(P):
    			lib.run_all(lib.strip, m3.c_pgrass)
    		for i in range(P):
    			lib.run_all(lib.strip, m3.c_ptree)
    		for i in range(P):
    			lib.run_all(lib.strip, m3.c_pcarrot)
    		quick_print("poly", get_time() - t)
    		t = get_time()
    		if num_items(Items.Weird_Substance) < 80:
    			m3.boot()
    		m2.pump(num_items(Items.Weird_Substance) < msub * 320)
    		m2.pump(False)
    		quick_print("pump", get_time() - t)
    		t = get_time()
    		lib.cactus()
    		quick_print("cact", get_time() - t)
    		t = get_time()
    		if num_items(Items.Weird_Substance) >= msub * 20:
    			m4.gmaze()
    		quick_print("maze", get_time() - t)
    		t = get_time()
    		if r % DINO == 0:
    			m2.dino()
    			quick_print("dino", get_time() - t)
    		r += 1
    Write result the agent saw
    Saved m5 (38 lines).
    Game time: 3h 19m 12s elapsed, 2h 40m 48s of budget remaining.
r8.py1 write · 1 ran · first at 3h 19m
  1. r13h 19mRanFinal3 lines · ran 7m 30s
    import m5
    harvest()
    m5.rot(8, 3)
    Write result the agent saw
    Saved r8 (3 lines).
    Game time: 3h 19m 22s elapsed, 2h 40m 38s of budget remaining.
    run_program at 3h 19m for 420s (agent saw)
    Ran r8 for 7m of game time; it is still running.
    Inventory change: cactus +1873792, carrot +19751936, fertilizer +336, gold +286528, hay +22887552, power -5761.63, pumpkin +363968, water +7015, weird_substance -13376, wood +113191168.
    Game time: 3h 26m 42s elapsed, 2h 33m 18s of budget remaining.
    Output:
    poly 230.39
    pump 16.92
    cact 30.99
    maze 75.73
r9.py3 writes · 2 ran · first at 3h 26m
  1. r13h 26mRan3 lines · ran 9m 40s
    import m4
    harvest()
    m4.main(1000000, 1000000, 5000000, 3000, 150000, 0, 9000000, 0, 0)
    Write result the agent saw
    Saved r9 (3 lines).
    Game time: 3h 27m 2s elapsed, 2h 32m 58s of budget remaining.
    run_program at 3h 27m for 300s (agent saw)
    Ran r9 for 5m of game time; it is still running.
    Inventory change: carrot -462, fertilizer +240, power -77.49, water +6291.
    Game time: 3h 32m 12s elapsed, 2h 27m 48s of budget remaining.
    Output:
    (none)
    run_program at 3h 32m for 240s (agent saw)
    Ran r9 for 4m of game time; it is still running.
    Inventory change: carrot -44, fertilizer +192, power -252.88, water +4758.
    Game time: 3h 36m 42s elapsed, 2h 23m 18s of budget remaining.
    Output:
    (none)
  2. —3h 32mRejected
    import m4
    change_hat(Hats.Straw_Hat)
    harvest()
    m4.main(1000000, 1000000, 5000000, 3000, 150000, 0, 9000000, 0, 0)
    Write result the agent saw
    Stop the program before editing it.
  3. r23h 36mRanFinal4 lines · +1 −0 · ran 3m 37s
    import m4
    change_hat(Hats.Straw_Hat)
    harvest()
    m4.main(1000000, 1000000, 5000000, 3000, 150000, 0, 9000000, 0, 0)
    Changes from the previous revision
      import m4
    + change_hat(Hats.Straw_Hat)
      harvest()
      m4.main(1000000, 1000000, 5000000, 3000, 150000, 0, 9000000, 0, 0)
    
    Write result the agent saw
    Saved r9 (4 lines).
    Game time: 3h 37m 2s elapsed, 2h 22m 58s of budget remaining.
    run_program at 3h 37m for 120s (agent saw)
    Ran r9 for 2m of game time; it is still running.
    Inventory change: bone +1936, carrot -700796, fertilizer +96, power +6061.92, pumpkin +2794368, water -259, weird_substance +179231.
    Game time: 3h 39m 12s elapsed, 2h 20m 48s of budget remaining.
    Output:
    (none)
m6.py1 write · 0 ran · first at 3h 40m
  1. r13h 40mSaved, never runFinal43 lines
    import lib
    import m2
    import m3
    import m4
    
    def pw():
    	if num_items(Items.Power) < 8000:
    		m3.sun()
    
    def rot(P, NP, NC, NM):
    	while True:
    		n = get_world_size()
    		msub = n * 2 ** (num_unlocked(Unlocks.Mazes) - 1)
    		t = get_time()
    		pw()
    		quick_print("sun", get_time() - t)
    		t = get_time()
    		for i in range(P):
    			lib.run_all(lib.strip, m3.c_pgrass)
    		for i in range(P):
    			lib.run_all(lib.strip, m3.c_ptree)
    		pw()
    		for i in range(P):
    			lib.run_all(lib.strip, m3.c_pcarrot)
    		quick_print("poly", get_time() - t)
    		pw()
    		t = get_time()
    		if num_items(Items.Weird_Substance) < 300:
    			m3.boot()
    		for i in range(NP):
    			m2.pump(num_items(Items.Weird_Substance) < msub * 320)
    		quick_print("pump", get_time() - t)
    		pw()
    		t = get_time()
    		for i in range(NC):
    			lib.cactus()
    		quick_print("cact", get_time() - t)
    		pw()
    		t = get_time()
    		for i in range(NM):
    			if num_items(Items.Weird_Substance) >= msub * 20:
    				m4.gmaze()
    		quick_print("maze", get_time() - t)
    Write result the agent saw
    Saved m6 (43 lines).
    Game time: 3h 41m 9s elapsed, 2h 18m 51s of budget remaining.
r10.py1 write · 1 ran · first at 3h 41m
  1. r13h 41mRanFinal4 lines · ran 13m 40s
    import m6
    change_hat(Hats.Straw_Hat)
    harvest()
    m6.rot(4, 4, 2, 1)
    Write result the agent saw
    Saved r10 (4 lines).
    Game time: 3h 41m 19s elapsed, 2h 18m 41s of budget remaining.
    run_program at 3h 41m for 420s (agent saw)
    Ran r10 for 7m of game time; it is still running.
    Inventory change: cactus +33554432, carrot +40232485, fertilizer +336, hay +93103616, power +666.73, pumpkin +3080192, water -1846, wood +465328128.
    Game time: 3h 48m 29s elapsed, 2h 11m 31s of budget remaining.
    Output:
    sun 39.91
    poly 211.51
    pump 48.09
    cact 116.17
tm.py2 writes · 2 ran · first at 3h 55m
  1. r13h 55mRan6 lines · ran 2m 56s
    import m4
    change_hat(Hats.Straw_Hat)
    harvest()
    t = get_time()
    m4.gmaze()
    quick_print("maze", get_time() - t)
    Write result the agent saw
    Saved tm (6 lines).
    Game time: 3h 55m 29s elapsed, 2h 4m 31s of budget remaining.
    run_program at 3h 55m for 120s (agent saw)
    Ran tm for 2m of game time; it is still running.
    Inventory change: fertilizer +96, gold +1474560, hay +512, power -3815.70, water +3072, weird_substance -47104.
    Game time: 3h 57m 39s elapsed, 2h 2m 21s of budget remaining.
    Output:
    (none)
  2. r23h 58mRanFinal6 lines · +2 −2 · ran 10m 28s
    import m7
    change_hat(Hats.Straw_Hat)
    harvest()
    t = get_time()
    m7.gmaze()
    quick_print("maze", get_time() - t)
    Changes from the previous revision
    - import m4
    + import m7
      change_hat(Hats.Straw_Hat)
      harvest()
      t = get_time()
    - m4.gmaze()
    + m7.gmaze()
      quick_print("maze", get_time() - t)
    
    Write result the agent saw
    Saved tm (6 lines).
    Game time: 3h 58m 55s elapsed, 2h 1m 5s of budget remaining.
    run_program at 3h 58m for 120s (agent saw)
    Ran tm for 2m of game time; it is still running.
    Inventory change: fertilizer +96, gold +2359296, hay +512, power -3181.29, water +3072, weird_substance -74752.
    Game time: 4h 1m 5s elapsed, 1h 58m 55s of budget remaining.
    Output:
    (none)
m7.py2 writes · 0 ran · first at 3h 58m
  1. r13h 58mSaved, never run91 lines
    import lib
    import m2
    import m4
    
    OPP = {North: South, South: North, East: West, West: East}
    DX = {North: 0, South: 0, East: 1, West: -1}
    DY = {North: 1, South: -1, East: 0, West: 0}
    
    def order(x, y, tx, ty):
    	dx = tx - x
    	dy = ty - y
    	h = West
    	if dx > 0:
    		h = East
    	v = South
    	if dy > 0:
    		v = North
    	if abs(dx) >= abs(dy):
    		return [h, v, OPP[v], OPP[h]]
    	return [v, h, OPP[h], OPP[v]]
    
    def hunter(sx, sy, msub):
    	m4.soft(sx, sy)
    	e = get_entity_type()
    	k = 0
    	while e != Entities.Hedge and e != Entities.Treasure:
    		e = get_entity_type()
    		k += 1
    		if k > 3000:
    			return
    	while True:
    		e = get_entity_type()
    		if e == Entities.Treasure:
    			if num_items(Items.Weird_Substance) < msub:
    				harvest()
    				return
    			use_item(Items.Weird_Substance, msub)
    			if get_entity_type() == Entities.Treasure:
    				harvest()
    				return
    			continue
    		if e != Entities.Hedge:
    			return
    		tx, ty = measure()
    		visited = set()
    		stack = []
    		steps = 0
    		while True:
    			x = get_pos_x()
    			y = get_pos_y()
    			if x == tx and y == ty:
    				break
    			visited.add((x, y))
    			steps += 1
    			if steps % 8 == 0:
    				m = measure()
    				if m == None:
    					break
    				if m[0] != tx or m[1] != ty:
    					break
    			moved = False
    			for d in order(x, y, tx, ty):
    				if (x + DX[d], y + DY[d]) not in visited:
    					if move(d):
    						stack.append(OPP[d])
    						moved = True
    						break
    			if not moved:
    				if len(stack) > 0:
    					move(stack.pop())
    				else:
    					break
    
    def gmaze():
    	n = get_world_size()
    	msub = n * 2 ** (num_unlocked(Unlocks.Mazes) - 1)
    	lib.run_all(lib.strip, m2.c_clear)
    	D = max_drones()
    	hs = []
    	for i in range(1, D):
    		h = spawn_drone(hunter, (i * 5 + 2) % n, (i * 11 + 3) % n, msub)
    		if h != None:
    			hs.append(h)
    	lib.goto(2, 3)
    	do_a_flip()
    	do_a_flip()
    	plant(Entities.Bush)
    	use_item(Items.Weird_Substance, msub)
    	hunter(2, 3, msub)
    	for h in hs:
    		wait_for(h)
    Write result the agent saw
    Saved m7 (91 lines).
    Game time: 3h 58m 45s elapsed, 2h 1m 15s of budget remaining.
  2. r24h 09mSaved, never runFinal136 lines · +46 −1
    import lib
    import m2
    import m3
    import m4
    
    OPP = {North: South, South: North, East: West, West: East}
    DX = {North: 0, South: 0, East: 1, West: -1}
    DY = {North: 1, South: -1, East: 0, West: 0}
    
    def order(x, y, tx, ty):
    	dx = tx - x
    	dy = ty - y
    	h = West
    	if dx > 0:
    		h = East
    	v = South
    	if dy > 0:
    		v = North
    	if abs(dx) >= abs(dy):
    		return [h, v, OPP[v], OPP[h]]
    	return [v, h, OPP[h], OPP[v]]
    
    def hunter(sx, sy, msub):
    	m4.soft(sx, sy)
    	e = get_entity_type()
    	k = 0
    	while e != Entities.Hedge and e != Entities.Treasure:
    		e = get_entity_type()
    		k += 1
    		if k > 3000:
    			return
    	while True:
    		e = get_entity_type()
    		if e == Entities.Treasure:
    			if num_items(Items.Weird_Substance) < msub or num_items(Items.Power) < 300:
    				harvest()
    				return
    			use_item(Items.Weird_Substance, msub)
    			if get_entity_type() == Entities.Treasure:
    				harvest()
    				return
    			continue
    		if e != Entities.Hedge:
    			return
    		tx, ty = measure()
    		visited = set()
    		stack = []
    		steps = 0
    		while True:
    			x = get_pos_x()
    			y = get_pos_y()
    			if x == tx and y == ty:
    				break
    			visited.add((x, y))
    			steps += 1
    			if steps % 8 == 0:
    				m = measure()
    				if m == None:
    					break
    				if m[0] != tx or m[1] != ty:
    					break
    			moved = False
    			for d in order(x, y, tx, ty):
    				if (x + DX[d], y + DY[d]) not in visited:
    					if move(d):
    						stack.append(OPP[d])
    						moved = True
    						break
    			if not moved:
    				if len(stack) > 0:
    					move(stack.pop())
    				else:
    					break
    
    def gmaze():
    	n = get_world_size()
    	msub = n * 2 ** (num_unlocked(Unlocks.Mazes) - 1)
    	lib.run_all(lib.strip, m2.c_clear)
    	D = max_drones()
    	hs = []
    	for i in range(1, D):
    		h = spawn_drone(hunter, (i * 5 + 2) % n, (i * 11 + 3) % n, msub)
    		if h != None:
    			hs.append(h)
    	lib.goto(2, 3)
    	do_a_flip()
    	do_a_flip()
    	plant(Entities.Bush)
    	use_item(Items.Weird_Substance, msub)
    	hunter(2, 3, msub)
    	for h in hs:
    		wait_for(h)
    
    def pw(lim):
    	while num_items(Items.Power) < lim:
    		m3.sun()
    
    def pumps(k):
    	n = get_world_size()
    	msub = n * 2 ** (num_unlocked(Unlocks.Mazes) - 1)
    	if num_items(Items.Weird_Substance) < 300:
    		m3.boot()
    	for i in range(k):
    		m2.pump(num_items(Items.Weird_Substance) < msub * 320)
    
    def poly(P):
    	for i in range(P):
    		lib.run_all(lib.strip, m3.c_pgrass)
    	for i in range(P):
    		lib.run_all(lib.strip, m3.c_ptree)
    	for i in range(P):
    		lib.run_all(lib.strip, m3.c_pcarrot)
    
    def rot(P, NP, NC, NM):
    	while True:
    		n = get_world_size()
    		msub = n * 2 ** (num_unlocked(Unlocks.Mazes) - 1)
    		pw(6000)
    		t = get_time()
    		poly(P)
    		quick_print("poly", get_time() - t)
    		pw(6000)
    		t = get_time()
    		pumps(NP)
    		quick_print("pump", get_time() - t)
    		pw(6000)
    		t = get_time()
    		for i in range(NC):
    			lib.cactus()
    		quick_print("cact", get_time() - t)
    		for i in range(NM):
    			pw(8000)
    			t = get_time()
    			if num_items(Items.Weird_Substance) >= msub * 20:
    				gmaze()
    			quick_print("maze", get_time() - t)
    Changes from the previous revision
      import lib
      import m2
    + import m3
      import m4
      
      		e = get_entity_type()
      		if e == Entities.Treasure:
    - 			if num_items(Items.Weird_Substance) < msub:
    + 			if num_items(Items.Weird_Substance) < msub or num_items(Items.Power) < 300:
      				harvest()
      				return
      	for h in hs:
      		wait_for(h)
    + 
    + def pw(lim):
    + 	while num_items(Items.Power) < lim:
    + 		m3.sun()
    + 
    + def pumps(k):
    + 	n = get_world_size()
    + 	msub = n * 2 ** (num_unlocked(Unlocks.Mazes) - 1)
    + 	if num_items(Items.Weird_Substance) < 300:
    + 		m3.boot()
    + 	for i in range(k):
    + 		m2.pump(num_items(Items.Weird_Substance) < msub * 320)
    + 
    + def poly(P):
    + 	for i in range(P):
    + 		lib.run_all(lib.strip, m3.c_pgrass)
    + 	for i in range(P):
    + 		lib.run_all(lib.strip, m3.c_ptree)
    + 	for i in range(P):
    + 		lib.run_all(lib.strip, m3.c_pcarrot)
    + 
    + def rot(P, NP, NC, NM):
    + 	while True:
    + 		n = get_world_size()
    + 		msub = n * 2 ** (num_unlocked(Unlocks.Mazes) - 1)
    + 		pw(6000)
    + 		t = get_time()
    + 		poly(P)
    + 		quick_print("poly", get_time() - t)
    + 		pw(6000)
    + 		t = get_time()
    + 		pumps(NP)
    + 		quick_print("pump", get_time() - t)
    + 		pw(6000)
    + 		t = get_time()
    + 		for i in range(NC):
    + 			lib.cactus()
    + 		quick_print("cact", get_time() - t)
    + 		for i in range(NM):
    + 			pw(8000)
    + 			t = get_time()
    + 			if num_items(Items.Weird_Substance) >= msub * 20:
    + 				gmaze()
    + 			quick_print("maze", get_time() - t)
    
    Write result the agent saw
    Saved m7 (136 lines).
    Game time: 4h 9m 43s elapsed, 1h 50m 17s of budget remaining.
r11.py1 write · 1 ran · first at 4h 09m
  1. r14h 09mRanFinal11 lines · ran 5m 18s
    import lib
    import m3
    import m7
    change_hat(Hats.Straw_Hat)
    harvest()
    m7.pw(8000)
    for i in range(6):
    	lib.run_all(lib.strip, m3.c_pcarrot)
    m7.pumps(22)
    m7.pw(8000)
    quick_print("done")
    Write result the agent saw
    Saved r11 (11 lines).
    Game time: 4h 9m 53s elapsed, 1h 50m 7s of budget remaining.
    run_program at 4h 09m for 240s (agent saw)
    Ran r11 for 4m of game time; it is still running.
    Inventory change: carrot +108925696, fertilizer +192, hay +7335424, power +12465.61, pumpkin +5524224, water -3654, weird_substance +767027, wood +40256000.
    Game time: 4h 14m 3s elapsed, 1h 45m 57s of budget remaining.
    Output:
    (none)
r12.py1 write · 1 ran · first at 4h 15m
  1. r14h 15mRanFinal17 lines · ran 29m 33s
    import lib
    import m2
    import m7
    change_hat(Hats.Straw_Hat)
    harvest()
    m7.pw(9000)
    t = get_time()
    lib.run_all(lib.strip, m2.c_clear)
    lib.goto(0, 0)
    change_hat(Hats.Dinosaur_Hat)
    k = 0
    while k < 1100 and m2.cyc():
    	k += 1
    	if k % 50 == 0:
    		quick_print(k, get_time() - t)
    change_hat(Hats.Straw_Hat)
    quick_print("dino", k, get_time() - t)
    Write result the agent saw
    Saved r12 (17 lines).
    Game time: 4h 15m 31s elapsed, 1h 44m 29s of budget remaining.
    run_program at 4h 15m for 300s (agent saw)
    Ran r12 for 5m of game time; it is still running.
    Inventory change: cactus -960, fertilizer +240, power -362.11, pumpkin +1583104, water +7680.
    Game time: 4h 20m 41s elapsed, 1h 39m 19s of budget remaining.
    Output:
    (none)
r13.py2 writes · 2 ran · first at 4h 38m
  1. r14h 38mRan4 lines · ran 25m 20s
    import m7
    change_hat(Hats.Straw_Hat)
    harvest()
    m7.rot(3, 5, 2, 2)
    Write result the agent saw
    Saved r13 (4 lines).
    Game time: 4h 38m 11s elapsed, 1h 21m 49s of budget remaining.
    run_program at 4h 45m for 600s (agent saw)
    Ran r13 for 10m of game time; it is still running.
    Inventory change: cactus +67108864, carrot +56090624, fertilizer +480, gold +1572864, hay +70061568, power -6006.93, pumpkin +15597568, water +4433, weird_substance -50176, wood +353260032.
    Game time: 4h 55m 24s elapsed, 1h 4m 36s of budget remaining.
    Output:
    poly 153.44
    pump 66.92
    cact 119.56
  2. r25h 10mRanFinal4 lines · +1 −1 · ran 48m 56s
    import m7
    change_hat(Hats.Straw_Hat)
    harvest()
    m7.rot(3, 4, 2, 4)
    Changes from the previous revision
      change_hat(Hats.Straw_Hat)
      harvest()
    - m7.rot(3, 5, 2, 2)
    + m7.rot(3, 4, 2, 4)
    
    Write result the agent saw
    Saved r13 (4 lines).
    Game time: 5h 10m 54s elapsed, 49m 6s of budget remaining.
    run_program at 5h 10m for 1200s (agent saw)
    Ran r13 for 20m of game time; it is still running.
    Inventory change: cactus +67260992, carrot +58213376, fertilizer +960, gold +7405568, hay +69630976, power -8542.98, pumpkin +12451840, water +17004, weird_substance -232448, wood +355742720.
    Game time: 5h 31m 4s elapsed, 28m 56s of budget remaining.
    Output:
    poly 153.65
    pump 48.41
    cact 110.67
    maze 392.01
log21 said · 1 thought · 228 tool calls

Step by step

  1. 0sobserve
    result
    Game time: 10s elapsed, 5h 59m 50s of budget remaining.
    Program: none running.
    Inventory: empty.
    Farm 1x1. x runs west to east, rows are listed north (top) to south.
    Cells: ground (# soil, _ grassland) + entity code + size (1 small, 2 medium, 3 full); * marks a drone.
    Entities: Gr=grass.
    y= 0  _Gr3*
    Recent output:
    (none)
  2. 10sresearch
    result
    auto_unlock (Auto Unlock) level 0/1; cost pumpkin 5000; requires costs
      ## Auto Unlock Automatically unlock things. unlock(Unlocks.Megafarm)
    cactus (Cactus) level 0/6; cost pumpkin 5000; requires pumpkins
      ## Cactus Cactus! plant(Entities.Cactus)
    carrots (Carrots) level 0/10; cost wood 50; requires plant
      ## Carrots Till the soil and plant carrots. till() plant(Entities.Carrot)
    costs (Costs) le…
  3. 20sdocs_list
    result
    docs/home.md  General Info
    unlocks/auto_unlock  Auto Unlock
    unlocks/cactus  Cactus
    unlocks/carrots  Carrots
    unlocks/costs  Costs
    unlocks/debug  Debug
    unlocks/debug_2  Debug_2
    unlocks/dictionaries  Dictionaries
    unlocks/dinosaurs  Dinosaurs
    unlocks/expand  Expand
    unlocks/fertilizer  Fertilizer
    unlocks/functions  Functions
    unlocks/grass  Grass
    unlocks/hats  Hats
    unlocks/import  Import
    unlocks/leaderb…
  4. 30swrite_program name="a" · evidence
    result
    Saved a (17 lines).
    Game time: 40s elapsed, 5h 59m 20s of budget remaining.
  5. 40srun_program name="a" seconds=60
    result
    Ran a for 13s of game time; it finished.
    Inventory change: hay +9.
    Game time: 1m 3s elapsed, 5h 58m 57s of budget remaining.
    Output:
    (none)
  6. 1m 03sbuy_upgrade upgrades=["loops"] · evidence
    result
    Bought loops, now level 1. Paid hay 5. Its tutorial is docs page docs/scripting/while.md.
    Game time: 1m 13s elapsed, 5h 58m 47s of budget remaining.
  7. 1m 13swrite_program name="a" · evidence
    result
    Saved a (3 lines).
    Game time: 1m 23s elapsed, 5h 58m 37s of budget remaining.
  8. 1m 23srun_program name="a" seconds=30
    result
    Ran a for 0s of game time; it stopped with an error: Unlocks.Speed must be unlocked before this can be used.
    Inventory change: no change.
    Game time: 1m 33s elapsed, 5h 58m 27s of budget remaining.
    Output:
    Error: Unlocks.Speed must be unlocked before this can be used.
    In: 
    if can_harvest():
                  ^^ 
    --------------------------------------------------------------------
  9. 1m 33swrite_program name="a" · evidence
    result
    Saved a (3 lines).
    Game time: 1m 43s elapsed, 5h 58m 17s of budget remaining.
  10. 1m 43srun_program name="a" seconds=30
    result
    Ran a for 30s of game time; it is still running.
    Inventory change: hay +20.
    Game time: 2m 23s elapsed, 5h 57m 37s of budget remaining.
    Output:
    (none)
  11. 2m 23sbuy_upgrade upgrades=["speed"] · evidence
    result
    Bought speed, now level 1. Paid hay 20. Its tutorial is docs page docs/unlocks/speed.md.
    Game time: 2m 33s elapsed, 5h 57m 27s of budget remaining.
  12. 2m 33sresearch
    result
    auto_unlock (Auto Unlock) level 0/1; cost pumpkin 5000; requires costs
      ## Auto Unlock Automatically unlock things. unlock(Unlocks.Megafarm)
    cactus (Cactus) level 0/6; cost pumpkin 5000; requires pumpkins
      ## Cactus Cactus! plant(Entities.Cactus)
    carrots (Carrots) level 0/10; cost wood 50; requires plant
      ## Carrots Till the soil and plant carrots. till() plant(Entities.Carrot)
    costs (Costs) le…
  13. 2m 43swrite_program name="a" · evidence
    result
    Stop the program before editing it.
  14. 2m 53srun_program name="a" seconds=20
    result
    Ran a for 20s of game time; it is still running.
    Inventory change: hay +15.
    Game time: 3m 23s elapsed, 5h 56m 37s of budget remaining.
    Output:
    (none)
  15. 3m 23sbuy_upgrade upgrades=["expand"] · evidence
    result
    Bought expand, now level 1. Paid hay 30. Its tutorial is docs page docs/unlocks/expand_1.md.
    Game time: 3m 33s elapsed, 5h 56m 27s of budget remaining.
  16. 3m 33sdocs_read path="unlocks/expand"
    result
    ## Expand
    Expands the farm. This also clears the farm.
    1x3 => 3x3
    
    ### Unlock Cost [Current cost: wood=20]
    
    [Tutorial](docs/unlocks/expand_1.md)
    Game time: 3m 43s elapsed, 5h 56m 17s of budget remaining.
  17. 3m 43sstop_program
    result
    Program stopped.
    Game time: 3m 53s elapsed, 5h 56m 7s of budget remaining.
  18. 3m 53swrite_program name="a" · evidence
    result
    Saved a (4 lines).
    Game time: 4m 3s elapsed, 5h 55m 57s of budget remaining.
  19. 4m 03srun_program name="a" seconds=40
    result
    Ran a for 40s of game time; it is still running.
    Inventory change: hay +60.
    Game time: 4m 53s elapsed, 5h 55m 7s of budget remaining.
    Output:
    (none)
  20. 4m 53sbuy_upgrade upgrades=["plant"] · evidence
    result
    Bought plant, now level 1. Paid hay 50. Its tutorial is docs page docs/unlocks/plant.md.
    Game time: 5m 3s elapsed, 5h 54m 57s of budget remaining.
  21. 5m 03sstop_program
    result
    Program stopped.
    Game time: 5m 13s elapsed, 5h 54m 47s of budget remaining.
  22. 5m 13swrite_program name="a" · evidence
    result
    Saved a (12 lines).
    Game time: 5m 23s elapsed, 5h 54m 37s of budget remaining.
  23. 5m 23srun_program name="a" seconds=60
    result
    Ran a for 1m of game time; it is still running.
    Inventory change: hay +83, wood +26.
    Game time: 6m 33s elapsed, 5h 53m 27s of budget remaining.
    Output:
    (none)
  24. 6m 33sbuy_upgrade upgrades=["speed"] · evidence
    result
    Bought speed, now level 2. Paid wood 20. Its tutorial is docs page docs/unlocks/speed.md.
    Game time: 6m 43s elapsed, 5h 53m 17s of budget remaining.
  25. 6m 43swait seconds=60 until_affordable="expand"
    result
    Waited 0s (expand is affordable). Program: a running.
    Inventory change: no change.
    Game time: 6m 53s elapsed, 5h 53m 7s of budget remaining.
  26. 6m 53ssaidStill bootstrapping the farm: loops, speed and planting are unlocked, and I'm about to expand to 3x3 and head for carrots.
  27. 6m 53sbuy_upgrade upgrades=["expand"] · evidence
    result
    Bought expand, now level 2. Paid wood 20. Its tutorial is docs page docs/unlocks/expand_1.md.
    Game time: 7m 3s elapsed, 5h 52m 57s of budget remaining.
  28. 7m 03sstop_program
    result
    Program stopped.
    Game time: 7m 13s elapsed, 5h 52m 47s of budget remaining.
  29. 7m 13swrite_program name="a" · evidence
    result
    Saved a (13 lines).
    Game time: 7m 23s elapsed, 5h 52m 37s of budget remaining.
  30. 7m 23srun_program name="a" seconds=60
    result
    Ran a for 1m of game time; it is still running.
    Inventory change: hay +74, wood +96.
    Game time: 8m 33s elapsed, 5h 51m 27s of budget remaining.
    Output:
    (none)
  31. 8m 33sbuy_upgrade upgrades=["operators","carrots","expand","speed"] · evidence
    result
    Bought operators, now level 1. Paid hay 150, wood 10. Its tutorial is docs page docs/scripting/operators.md.
    Bought carrots, now level 1. Paid wood 50. Its tutorial is docs page docs/unlocks/carrots.md.
    Could not buy expand: Not enough resources.
    Could not buy speed: Not enough resources.
    Game time: 8m 43s elapsed, 5h 51m 17s of budget remaining.
  32. 8m 43sdocs_read path="unlocks/carrots"
    result
    ## Carrots
    Increases the yield and cost of carrots.
    100% => 200%
    
    ### Unlock Cost [Current cost: wood=250]
    
    [Tutorial](docs/unlocks/carrots.md)
    Game time: 8m 53s elapsed, 5h 51m 7s of budget remaining.
  33. 8m 53sstop_program
    result
    Program stopped.
    Game time: 9m 3s elapsed, 5h 50m 57s of budget remaining.
  34. 9m 03sdocs_read path="docs/unlocks/carrots.md"
    result
    # Carrots
    Before you can plant carrots with `plant(Entities.Carrot)`, you have to till the soil. This will change the ground to `Grounds.Soil`. To till the soil, simply call `till()`. Calling `till()` again will change it back to `Grounds.Grassland`.
    
    Planting carrots costs wood and hay. These items will be automatically removed when calling `plant(Entities.Carrot)`.
    
    You can see the cost of any p…
  35. 9m 13sobserve
    result
    Game time: 9m 23s elapsed, 5h 50m 37s of budget remaining.
    Program: none running.
    Inventory: hay 180, wood 88.
    Farm 3x3. x runs west to east, rows are listed north (top) to south.
    Cells: ground (# soil, _ grassland) + entity code + size (1 small, 2 medium, 3 full); * marks a drone.
    Entities: Gr=grass, Bu=bush.
    y= 2  _Gr3  _Gr3  _Gr3
    y= 1  _Bu3  _Bu3  _Bu3
    y= 0  _Bu3  _Bu3  _Bu3*
    Recent output:
    (no…
  36. 9m 23swrite_program name="setup" · evidence
    result
    Saved setup (22 lines).
    Game time: 9m 33s elapsed, 5h 50m 27s of budget remaining.
  37. 9m 33srun_program name="setup" seconds=60
    result
    Ran setup for 1m of game time; it is still running.
    Inventory change: carrot +27, hay +59, wood +72.
    Game time: 10m 43s elapsed, 5h 49m 17s of budget remaining.
    Output:
    (none)
  38. 10m 43sbuy_upgrade upgrades=["senses","speed","expand"] · evidence
    result
    Bought senses, now level 1. Paid hay 100. Its tutorial is docs page docs/unlocks/senses.md.
    Could not buy speed: Not enough resources.
    Bought expand, now level 3. Paid wood 30, carrot 20. Its tutorial is docs page docs/unlocks/expand_1.md.
    Game time: 10m 53s elapsed, 5h 49m 7s of budget remaining.
  39. 10m 53swait seconds=60 until_resources={"carrot":75}
    result
    Waited 1m (time up). Program: setup running.
    Inventory change: hay +115, wood +54.
    Game time: 12m 3s elapsed, 5h 47m 57s of budget remaining.
  40. 12m 03sstop_program
    result
    Program stopped.
    Game time: 12m 13s elapsed, 5h 47m 47s of budget remaining.
  41. 12m 13swrite_program name="b" · evidence
    result
    Saved b (14 lines).
    Game time: 12m 23s elapsed, 5h 47m 37s of budget remaining.
  42. 12m 23srun_program name="b" seconds=60
    result
    Ran b for 1m of game time; it is still running.
    Inventory change: carrot +68, hay +26, wood +8.
    Game time: 13m 33s elapsed, 5h 46m 27s of budget remaining.
    Output:
    (none)
  43. 13m 33sbuy_upgrade upgrades=["variables","functions","speed"] · evidence
    result
    Bought variables, now level 1. Paid carrot 35. Its tutorial is docs page docs/scripting/variables.md.
    Bought functions, now level 1. Paid carrot 40. Its tutorial is docs page docs/scripting/functions.md.
    Could not buy speed: Not enough resources.
    Game time: 13m 43s elapsed, 5h 46m 17s of budget remaining.
  44. 13m 43sresearch
    result
    auto_unlock (Auto Unlock) level 0/1; cost pumpkin 5000; requires costs
      ## Auto Unlock Automatically unlock things. unlock(Unlocks.Megafarm)
    cactus (Cactus) level 0/6; cost pumpkin 5000; requires pumpkins
      ## Cactus Cactus! plant(Entities.Cactus)
    carrots (Carrots) level 1/10; cost wood 250; available, not affordable; tutorial docs/unlocks/carrots.md
      ## Carrots Increases the yield and cost of c…
  45. 13m 53ssaidCarrots, senses, variables and functions are in; now saving carrots and wood for speed, trees and the next expansion.
  46. 13m 53swait seconds=120 until_resources={"carrot":120}
    result
    Waited 1m 13s (carrot reached 120). Program: b running.
    Inventory change: carrot +77, hay +7, wood -1.
    Game time: 15m 15s elapsed, 5h 44m 45s of budget remaining.
  47. 15m 15sbuy_upgrade upgrades=["speed","trees"] · evidence
    result
    Bought speed, now level 3. Paid wood 50, carrot 50. Its tutorial is docs page docs/unlocks/speed.md.
    Bought trees, now level 1. Paid wood 50, carrot 70. Its tutorial is docs page docs/unlocks/trees.md.
    Game time: 15m 25s elapsed, 5h 44m 35s of budget remaining.
  48. 15m 25sdocs_read path="docs/unlocks/trees.md"
    result
    # Trees
    [Trees](objects/tree) are a better way to get wood than bushes. They give 5 wood each. Like bushes, they can be planted on grass or soil.
    
    Trees like to have some space and planting them right next to each other will slow down their growth. The growing time is doubled for each tree that is on a tile directly to the north, east, west or south of it. So if you plant trees on every tile, they…
  49. 15m 35sstop_program
    result
    Program stopped.
    Game time: 15m 45s elapsed, 5h 44m 15s of budget remaining.
  50. 15m 45swrite_program name="c" · evidence
    result
    Saved c (22 lines).
    Game time: 15m 55s elapsed, 5h 44m 5s of budget remaining.
  51. 15m 55srun_program name="c" seconds=90
    result
    Ran c for 1m 30s of game time; it is still running.
    Inventory change: carrot +81, hay +92, wood +603.
    Game time: 17m 35s elapsed, 5h 42m 25s of budget remaining.
    Output:
    (none)
  52. 17m 35sbuy_upgrade upgrades=["expand","watering","carrots"] · evidence
    result
    Bought expand, now level 4. Paid wood 100, carrot 50. Its tutorial is docs page docs/unlocks/expand_1.md.
    Bought watering, now level 1. Paid wood 50. Its tutorial is docs page docs/unlocks/watering.md.
    Bought carrots, now level 2. Paid wood 250. Its tutorial is docs page docs/unlocks/carrots.md.
    Game time: 17m 45s elapsed, 5h 42m 15s of budget remaining.
  53. 17m 45sdocs_read path="docs/unlocks/watering.md"
    result
    # Watering
    Plants grow faster when they are watered. The ground has a water level ranging from `0` to `1`.
    The function `get_water()` returns the water level of the ground it is over.
    
    The growth speed of a plant scales linearly from 1x speed at water level 0 to 5x speed at water level 1.
    
    The ground dries up over time: On average, it loses 1% of its current water per second, but there is some ran…
  54. 17m 55sstop_program
    result
    Program stopped.
    Game time: 18m 5s elapsed, 5h 41m 55s of budget remaining.
  55. 18m 05swrite_program name="c" · evidence
    result
    Saved c (26 lines).
    Game time: 18m 15s elapsed, 5h 41m 45s of budget remaining.
  56. 18m 15srun_program name="c" seconds=120
    result
    Ran c for 2m of game time; it is still running.
    Inventory change: carrot +268, hay +13, water -3, wood +1088.
    Game time: 20m 25s elapsed, 5h 39m 35s of budget remaining.
    Output:
    (none)
  57. 20m 25sbuy_upgrade upgrades=["pumpkins","speed","expand","fertilizer"] · evidence
    result
    Bought pumpkins, now level 1. Paid wood 500, carrot 200. Its tutorial is docs page docs/unlocks/pumpkins.md.
    Could not buy speed: Not enough resources.
    Could not buy expand: Not enough resources.
    Bought fertilizer, now level 1. Paid wood 500. Its tutorial is docs page docs/unlocks/fertilizer.md.
    Game time: 20m 35s elapsed, 5h 39m 25s of budget remaining.
  58. 20m 35sresearch
    result
    auto_unlock (Auto Unlock) level 0/1; cost pumpkin 5000; requires costs
      ## Auto Unlock Automatically unlock things. unlock(Unlocks.Megafarm)
    cactus (Cactus) level 0/6; cost pumpkin 5000; available, not affordable
      ## Cactus Cactus! plant(Entities.Cactus)
    carrots (Carrots) level 2/10; cost wood 1250; available, not affordable; tutorial docs/unlocks/carrots.md
      ## Carrots Increases the yield and …
  59. 20m 45sbuy_upgrade upgrades=["trees","watering"] · evidence
    result
    Bought trees, now level 2. Paid hay 300. Its tutorial is docs page docs/unlocks/trees.md.
    Bought watering, now level 2. Paid wood 200. Its tutorial is docs page docs/unlocks/watering.md.
    Game time: 20m 55s elapsed, 5h 39m 5s of budget remaining.
  60. 20m 55sdocs_read path="docs/unlocks/pumpkins.md"
    result
    # Pumpkins
    [Pumpkins](objects/pumpkin) grow like carrots on tilled soil. Planting them costs carrots.
    
    When all the pumpkins in a square are fully grown, they will grow together to form a giant pumpkin. Unfortunately, pumpkins have a 20% chance of dying once they are fully grown, so you will need to replant the dead ones if you want them to merge. 
    
    When a pumpkin dies, it leaves behind a dead pum…
  61. 21m 05sdocs_read path="docs/unlocks/fertilizer.md"
    result
    # Fertilizer
    At some point, waiting for the plants to grow is just not efficient enough anymore. 
    Similar to water, you will automatically receive 1 fertilizer every 10 seconds, doubling with each upgrade.
    
    Fertilizer can make plants grow instantly. `use_item(Items.Fertilizer)` reduces the remaining growing time of the plant under the drone by 2 seconds.
    
    This has some side effects.
    Plants grown w…
  62. 21m 15sstop_program
    result
    Program stopped.
    Game time: 21m 25s elapsed, 5h 38m 35s of budget remaining.
  63. 21m 25swrite_program name="d" · evidence
    result
    Saved d (76 lines).
    Game time: 21m 35s elapsed, 5h 38m 25s of budget remaining.
  64. 21m 35srun_program name="d" seconds=180
    result
    Ran d for 3m of game time; it is still running.
    Inventory change: carrot +186, fertilizer +18, hay +354, water +2, wood +308.
    Game time: 24m 45s elapsed, 5h 35m 15s of budget remaining.
    Output:
    (none)
  65. 24m 45swait seconds=300 until_affordable="speed"
    result
    Waited 17s (speed is affordable). Program: d running.
    Inventory change: carrot +14, fertilizer +2, hay -11, wood -56.
    Game time: 25m 12s elapsed, 5h 34m 48s of budget remaining.
  66. 25m 12ssaidBuying the next speed level, then building toward pumpkins for the 8x8 expansion.
  67. 25m 12sbuy_upgrade upgrades=["speed"] · evidence
    result
    Bought speed, now level 4. Paid carrot 500. Its tutorial is docs page docs/unlocks/speed.md.
    Game time: 25m 22s elapsed, 5h 34m 38s of budget remaining.
  68. 25m 22swait seconds=300 until_resources={"pumpkin":200}
    result
    Waited 5m (time up). Program: d running.
    Inventory change: carrot +936, fertilizer +30, hay +76, water -1, wood +286.
    Game time: 30m 32s elapsed, 5h 29m 28s of budget remaining.
  69. 30m 32swait seconds=400 until_resources={"pumpkin":400}
    result
    Waited 1m 30s (pumpkin reached 432). Program: d running.
    Inventory change: carrot +96, fertilizer +9, hay +48, pumpkin +432, water +1, wood -60.
    Game time: 32m 13s elapsed, 5h 27m 47s of budget remaining.
  70. 32m 13swait seconds=400 until_affordable="expand"
    result
    Waited 1m 28s (expand is affordable). Program: d running.
    Inventory change: carrot +1, fertilizer +9, hay +72, pumpkin +648, water +2.
    Game time: 33m 50s elapsed, 5h 26m 10s of budget remaining.
  71. 33m 50sbuy_upgrade upgrades=["expand"] · evidence
    result
    Bought expand, now level 5. Paid pumpkin 1000. Its tutorial is docs page docs/unlocks/expand_1.md.
    Game time: 34m elapsed, 5h 26m of budget remaining.
  72. 34m 00swait seconds=600 until_resources={"pumpkin":1000}
    result
    Waited 3m 15s (pumpkin reached 1232). Program: d running.
    Inventory change: carrot -3, fertilizer +19, hay +115, pumpkin +1152, water +2, wood -114.
    Game time: 37m 25s elapsed, 5h 22m 35s of budget remaining.
  73. 37m 25sresearch
    result
    auto_unlock (Auto Unlock) level 0/1; cost pumpkin 5000; requires costs
      ## Auto Unlock Automatically unlock things. unlock(Unlocks.Megafarm)
    cactus (Cactus) level 0/6; cost pumpkin 5000; available, not affordable
      ## Cactus Cactus! plant(Entities.Cactus)
    carrots (Carrots) level 2/10; cost wood 1250; can buy now; tutorial docs/unlocks/carrots.md
      ## Carrots Increases the yield and cost of carrot…
  74. 37m 35sbuy_upgrade upgrades=["speed"] · evidence
    result
    Bought speed, now level 5. Paid carrot 1000. Its tutorial is docs page docs/unlocks/speed.md.
    Game time: 37m 45s elapsed, 5h 22m 15s of budget remaining.
  75. 37m 45sdocs_read path="unlocks/mazes"
    result
    ## Mazes
    A maze with a treasure in the middle.
    
    if get_entity_type() == Entities.Treasure:
        harvest()
    
    ### Unlock Cost [Current cost: weird_substance=1000]
    Game time: 37m 55s elapsed, 5h 22m 5s of budget remaining.
  76. 37m 55sdocs_read path="unlocks/megafarm"
    result
    ## Megafarm
    More drones!
    
    spawn_drone(task)
    
    ### Unlock Cost [Current cost: gold=2000]
    Game time: 38m 5s elapsed, 5h 21m 55s of budget remaining.
  77. 38m 05sstop_program
    result
    Program stopped.
    Game time: 38m 15s elapsed, 5h 21m 45s of budget remaining.
  78. 38m 15swrite_program name="d" · evidence
    result
    Saved d (82 lines).
    Game time: 38m 25s elapsed, 5h 21m 35s of budget remaining.
  79. 38m 25srun_program name="d" seconds=300
    result
    Ran d for 5m of game time; it is still running.
    Inventory change: carrot +876, fertilizer -108, hay +56, pumpkin +459, water -4, weird_substance +309, wood +968.
    Game time: 43m 35s elapsed, 5h 16m 25s of budget remaining.
    Output:
    (none)
  80. 43m 35sstop_program
    result
    Program stopped.
    Game time: 43m 45s elapsed, 5h 16m 15s of budget remaining.
  81. 43m 45swrite_program name="d" · evidence
    result
    Saved d (83 lines).
    Game time: 43m 55s elapsed, 5h 16m 5s of budget remaining.
  82. 43m 55sbuy_upgrade upgrades=["carrots"] · evidence
    result
    Bought carrots, now level 3. Paid wood 1250. Its tutorial is docs page docs/unlocks/carrots.md.
    Game time: 44m 5s elapsed, 5h 15m 55s of budget remaining.
  83. 44m 05srun_program name="d" seconds=300
    result
    Ran d for 5m of game time; it is still running.
    Inventory change: carrot -65, fertilizer +30, pumpkin +1626, water -7, weird_substance +984, wood +1088.
    Game time: 49m 15s elapsed, 5h 10m 45s of budget remaining.
    Output:
    (none)
  84. 49m 15ssaidPumpkins are now yielding weird substance too; unlocking mazes next, on the way to more drones.
  85. 49m 15sbuy_upgrade upgrades=["mazes"] · evidence
    result
    Bought mazes, now level 1. Paid weird_substance 1000. Its tutorial is docs page docs/unlocks/mazes.md.
    Game time: 49m 25s elapsed, 5h 10m 35s of budget remaining.
  86. 49m 25sdocs_read path="docs/unlocks/mazes.md"
    result
    # Mazes
    `Items.Weird_Substance`, which is obtained by [fertilizing](docs/unlocks/fertilizer.md) plants, has a strange effect on bushes. If the drone is over a bush and you call `use_item(Items.Weird_Substance, amount)` the bush will grow into a maze of hedges.
    The size of the maze depends on the amount of `Items.Weird_Substance` used (the second argument of the `use_item()` call).
    Without maze upg…
  87. 49m 35sstop_program
    result
    Program stopped.
    Game time: 49m 45s elapsed, 5h 10m 15s of budget remaining.
  88. 49m 45swrite_program name="maze" · evidence
    result
    Saved maze (26 lines).
    Game time: 49m 55s elapsed, 5h 10m 5s of budget remaining.
  89. 49m 55srun_program name="maze" seconds=120
    result
    Ran maze for 2m of game time; it is still running.
    Inventory change: fertilizer +12, gold +1856, pumpkin +1, water +24, weird_substance -240.
    Game time: 52m 5s elapsed, 5h 7m 55s of budget remaining.
    Output:
    (none)
  90. 52m 05swait seconds=60 until_program_ends=true
    result
    Waited 0s (the program ended). Program: none running.
    Inventory change: no change.
    Game time: 52m 15s elapsed, 5h 7m 45s of budget remaining.
  91. 52m 15sobserve
    result
    Game time: 52m 25s elapsed, 5h 7m 35s of budget remaining.
    Program: none running.
    Inventory: hay 580, wood 1949, carrot 1173, pumpkin 3528, weird_substance 198, gold 2048, water 32, fertilizer 53.
    Farm 8x8. x runs west to east, rows are listed north (top) to south.
    Cells: ground (# soil, _ grassland) + entity code + size (1 small, 2 medium, 3 full); * marks a drone.
    Entities: Gr=grass.
    y= 7  _Gr3 …
  92. 52m 25sbuy_upgrade upgrades=["megafarm","lists"] · evidence
    result
    Bought megafarm, now level 1. Paid gold 2000. Its tutorial is docs page docs/unlocks/megafarm.md.
    Bought lists, now level 1. Paid carrot 500. Its tutorial is docs page docs/scripting/lists.md.
    Game time: 52m 35s elapsed, 5h 7m 25s of budget remaining.
  93. 52m 35sdocs_read path="docs/unlocks/megafarm.md"
    result
    # Mega Farm
    This incredibly powerful unlock gives you access to multiple drones. 
    
    As before, you still start with just one drone. Additional drones must first be spawned and will disappear after the program terminates.
    Each drone runs its own separate program. New drones can be spawned using the `spawn_drone(function)` function.
    
    `def drone_function():
        move(North)
        do_a_flip()
    
    spawn_drone…
  94. 52m 45sresearch
    result
    auto_unlock (Auto Unlock) level 0/1; cost pumpkin 5000; requires costs
      ## Auto Unlock Automatically unlock things. unlock(Unlocks.Megafarm)
    cactus (Cactus) level 0/6; cost pumpkin 5000; available, not affordable
      ## Cactus Cactus! plant(Entities.Cactus)
    carrots (Carrots) level 3/10; cost wood 6250; available, not affordable; tutorial docs/unlocks/carrots.md
      ## Carrots Increases the yield and …
  95. 52m 55swrite_program name="f" · evidence
    result
    Saved f (152 lines).
    Game time: 53m 5s elapsed, 5h 6m 55s of budget remaining.
  96. 53m 05srun_program name="f" seconds=120
    result
    Ran f for 2m of game time; it is still running.
    Inventory change: carrot +828, fertilizer +12, gold +320, hay +348, water -37, weird_substance -48, wood -28.
    Game time: 55m 15s elapsed, 5h 4m 45s of budget remaining.
    Output:
    Warning: Tried to use Items.Water but didn't have enough of it.
    In: strip <- c_carrot <- c_plant <- water
    use_item(Items.Water)
            ^^           
    -------------------------…
  97. 55m 15swait seconds=600 until_affordable="megafarm"
    result
    Waited 10m (time up). Program: f running.
    Inventory change: carrot +331, fertilizer +60, gold +5888, hay -127, pumpkin +1050, water -7, weird_substance +77, wood -168.
    Game time: 1h 5m 25s elapsed, 4h 54m 35s of budget remaining.
  98. 1h 05msaidTwo drones are farming now; gold is at about 6,300 of the 8,000 needed for four drones, so I'm waiting on that.
  99. 1h 05mwait seconds=400 until_affordable="megafarm"
    result
    Waited 2m 31s (megafarm is affordable). Program: f running.
    Inventory change: carrot -70, fertilizer +15, gold +1472, hay +63, pumpkin +210, water +6, weird_substance -15.
    Game time: 1h 8m 6s elapsed, 4h 51m 54s of budget remaining.
  100. 1h 08mbuy_upgrade upgrades=["megafarm"] · evidence
    result
    Bought megafarm, now level 2. Paid gold 8000. Its tutorial is docs page docs/unlocks/megafarm.md.
    Game time: 1h 8m 16s elapsed, 4h 51m 44s of budget remaining.
  101. 1h 08mdocs_read path="unlocks/megafarm"
    result
    ## Megafarm
    Increase drone count further.
    4 => 8
    
    ### Unlock Cost [Current cost: gold=32000]
    
    [Tutorial](docs/unlocks/megafarm.md)
    Game time: 1h 8m 26s elapsed, 4h 51m 34s of budget remaining.
  102. 1h 08mbuy_upgrade upgrades=["import"] · evidence
    result
    Bought import, now level 1. Paid carrot 80. Its tutorial is docs page docs/scripting/import.md.
    Game time: 1h 8m 36s elapsed, 4h 51m 24s of budget remaining.
  103. 1h 08mstop_program
    result
    Program stopped.
    Game time: 1h 8m 46s elapsed, 4h 51m 14s of budget remaining.
  104. 1h 08mwrite_program name="lib" · evidence
    result
    Saved lib (147 lines).
    Game time: 1h 8m 56s elapsed, 4h 51m 4s of budget remaining.
  105. 1h 08mwrite_program name="go" · evidence
    result
    Saved go (2 lines).
    Game time: 1h 9m 6s elapsed, 4h 50m 54s of budget remaining.
  106. 1h 09mrun_program name="go" seconds=300
    result
    Ran go for 5m of game time; it is still running.
    Inventory change: carrot -97, fertilizer +30, gold +256, hay +19, pumpkin +3492, water -15, weird_substance +290, wood -296.
    Game time: 1h 14m 16s elapsed, 4h 45m 44s of budget remaining.
    Output:
    Warning: Tried to use Items.Water but didn't have enough of it.
    In: t_pumpkin <- strip <- c_pplant <- water
    use_item(Items.Water)
            ^^           
    ---…
  107. 1h 14mbuy_upgrade upgrades=["expand"] · evidence
    result
    Bought expand, now level 6. Paid pumpkin 8000. Its tutorial is docs page docs/unlocks/expand_1.md.
    Game time: 1h 14m 26s elapsed, 4h 45m 34s of budget remaining.
  108. 1h 14mresearch
    result
    auto_unlock (Auto Unlock) level 0/1; cost pumpkin 5000; requires costs
      ## Auto Unlock Automatically unlock things. unlock(Unlocks.Megafarm)
    cactus (Cactus) level 0/6; cost pumpkin 5000; available, not affordable
      ## Cactus Cactus! plant(Entities.Cactus)
    carrots (Carrots) level 3/10; cost wood 6250; available, not affordable; tutorial docs/unlocks/carrots.md
      ## Carrots Increases the yield and …
  109. 1h 14mwrite_program name="go2" · evidence
    result
    Saved go2 (2 lines).
    Game time: 1h 14m 46s elapsed, 4h 45m 14s of budget remaining.
  110. 1h 14mrun_program name="go2" seconds=360
    result
    Ran go2 for 6m of game time; it is still running.
    Inventory change: carrot +1806, fertilizer +36, gold +2160, hay -55, pumpkin +5184, water +18, weird_substance -192, wood +1720.
    Game time: 1h 20m 56s elapsed, 4h 39m 4s of budget remaining.
    Output:
    Warning: Tried to use Items.Water but didn't have enough of it.
    In: strip <- c_carrot <- c_plant <- water
    use_item(Items.Water)
            ^^           
    -…
  111. 1h 20mbuy_upgrade upgrades=["cactus","watering"] · evidence
    result
    Bought cactus, now level 1. Paid pumpkin 5000. Its tutorial is docs page docs/unlocks/cactus.md.
    Bought watering, now level 3. Paid wood 800. Its tutorial is docs page docs/unlocks/watering.md.
    Game time: 1h 21m 6s elapsed, 4h 38m 54s of budget remaining.
  112. 1h 21mdocs_read path="docs/unlocks/cactus.md"
    result
    # Cactus
    Like other plants, [cacti](objects/cactus) can be grown on soil and harvested as usual.
    
    However, they come in various sizes and have a strange sense of order.
    
    If you harvest a fully-grown cactus and all neighboring cacti are in sorted order, it will also harvest all neighboring cacti recursively.
    
    A cactus is considered to be in sorted order if all neighboring cacti to the `North` and `…
  113. 1h 21mdocs_read path="unlocks/dinosaurs"
    result
    ## Dinosaurs
    Majestic ancient creatures.
    
    ### Unlock Cost [Current cost: cactus=2000]
    Game time: 1h 21m 26s elapsed, 4h 38m 34s of budget remaining.
  114. 1h 21mdocs_read path="unlocks/sunflowers"
    result
    ## Sunflowers
    Sunflowers and Power.
    
    plant(Entities.Sunflowers)
    
    ### Unlock Cost [Current cost: carrot=500]
    Game time: 1h 21m 36s elapsed, 4h 38m 24s of budget remaining.
  115. 1h 21mdocs_read path="unlocks/polyculture"
    result
    ## Polyculture
    Use companion planting to increase the yield.
    
    plant_type, (x, y) = get_companion()
    
    ### Unlock Cost [Current cost: pumpkin=3000]
    Game time: 1h 21m 46s elapsed, 4h 38m 14s of budget remaining.
  116. 1h 21mstop_program
    result
    Program stopped.
    Game time: 1h 21m 56s elapsed, 4h 38m 4s of budget remaining.
  117. 1h 21mwrite_program name="lib" · evidence
    result
    Saved lib (195 lines).
    Game time: 1h 22m 6s elapsed, 4h 37m 54s of budget remaining.
  118. 1h 22mwrite_program name="go2" · evidence
    result
    Saved go2 (2 lines).
    Game time: 1h 22m 16s elapsed, 4h 37m 44s of budget remaining.
  119. 1h 22mrun_program name="go2" seconds=240
    result
    Ran go2 for 4m of game time; it is still running.
    Inventory change: cactus +20736, carrot -543, fertilizer +24, gold +1152, pumpkin +2565, water +56, weird_substance +437.
    Game time: 1h 26m 26s elapsed, 4h 33m 34s of budget remaining.
    Output:
    (none)
  120. 1h 26msaidCactus sorting works (20,736 in one harvest). Buying the maze upgrade and dinosaurs next.
  121. 1h 26mbuy_upgrade upgrades=["mazes","dinosaurs"] · evidence
    result
    Bought mazes, now level 2. Paid cactus 12000. Its tutorial is docs page docs/unlocks/mazes.md.
    Bought dinosaurs, now level 1. Paid cactus 2000. Its tutorial is docs page docs/unlocks/dinosaurs.md.
    Game time: 1h 26m 36s elapsed, 4h 33m 24s of budget remaining.
  122. 1h 26mdocs_read path="docs/unlocks/dinosaurs.md"
    result
    # Dinosaurs
    Dinosaurs are ancient, majestic creatures that can be farmed for ancient bones.
    
    Unfortunately dinosaurs have gone extinct a long time ago, so the best we can do now is dressing up as one.
    For this purpose you have received the new dinosaur hat.
    
    The hat can be equipped with
    `change_hat(Hats.Dinosaur_Hat)`
    
    Unfortunately it doesn't quite look like on the advertisement...
    
    If you equip …
  123. 1h 26mdocs_read path="objects/apple"
    result
    ## Apple
    Dinosaurs love them apparently.
    
    ### Plant Cost [Current cost: cactus=2]
    
    For more related information see: [Dinosaurs](docs/unlocks/dinosaurs.md)
    Game time: 1h 26m 56s elapsed, 4h 33m 4s of budget remaining.
  124. 1h 26mbuy_upgrade upgrades=["hats"] · evidence
    result
    Could not buy hats: Already at maximum level.
  125. 1h 27mdocs_read path="unlocks/hats"
    result
    ## Hats
    Hats for your drone.
    
    change_hat(Hats.Green_Hat)
    
    [Tutorial](docs/unlocks/hats.md)
    Game time: 1h 27m 16s elapsed, 4h 32m 44s of budget remaining.
  126. 1h 27mdocs_read path="docs/unlocks/hats.md"
    result
    # Hats
    
    You have unlocked a few new hat colors for your drone.
    
    Equip them like this:
    `change_hat(Hats.Gray_Hat)
    do_a_flip()
    change_hat(Hats.Purple_Hat)
    do_a_flip()
    change_hat(Hats.Green_Hat)
    do_a_flip()
    change_hat(Hats.Brown_Hat)
    do_a_flip()`
    Game time: 1h 27m 26s elapsed, 4h 32m 34s of budget remaining.
  127. 1h 27mwrite_program name="m2" · evidence
    result
    Saved m2 (73 lines).
    Game time: 1h 27m 36s elapsed, 4h 32m 24s of budget remaining.
  128. 1h 27mrun_program name="m2" seconds=300
    result
    Ran m2 for 4m 32s of game time; it stopped with an error: Hats.Green_Hat must be unlocked before this can be used.
    Inventory change: cactus -286, carrot +824, fertilizer +27, hay -40, pumpkin +459, water +73, weird_substance +376, wood +1098.
    Game time: 1h 32m 18s elapsed, 4h 27m 42s of budget remaining.
    Output:
    Error: Hats.Green_Hat must be unlocked before this can be used.
    In: main <- dino
    chang…
  129. 1h 32mwrite_program name="hat" · evidence
    result
    Saved hat (1 lines).
    Game time: 1h 32m 28s elapsed, 4h 27m 32s of budget remaining.
  130. 1h 32mrun_program name="hat" seconds=5
    result
    Ran hat for 0s of game time; it finished.
    Inventory change: bone +20449.
    Game time: 1h 32m 39s elapsed, 4h 27m 21s of budget remaining.
    Output:
    (none)
  131. 1h 32mwrite_program name="m2" · evidence
    result
    Saved m2 (71 lines).
    Game time: 1h 32m 49s elapsed, 4h 27m 11s of budget remaining.
  132. 1h 32mwrite_program name="r1" · evidence
    result
    Saved r1 (2 lines).
    Game time: 1h 32m 59s elapsed, 4h 27m 1s of budget remaining.
  133. 1h 32mbuy_upgrade upgrades=["pumpkins","grass","fertilizer"] · evidence
    result
    Bought pumpkins, now level 2. Paid carrot 1000. Its tutorial is docs page docs/unlocks/pumpkins.md.
    Bought grass, now level 2. Paid hay 300.
    Bought fertilizer, now level 2. Paid wood 1500. Its tutorial is docs page docs/unlocks/fertilizer.md.
    Game time: 1h 33m 9s elapsed, 4h 26m 51s of budget remaining.
  134. 1h 33mrun_program name="r1" seconds=300
    result
    Ran r1 for 5m of game time; it is still running.
    Inventory change: carrot +1520, fertilizer +60, gold +6912, hay +746, water -18, weird_substance -600, wood +6730.
    Game time: 1h 38m 19s elapsed, 4h 21m 41s of budget remaining.
    Output:
    Warning: Tried to use Items.Water but didn't have enough of it.
    In: strip <- c_tree <- c_plant <- water
    use_item(Items.Water)
            ^^           
    -----------------…
  135. 1h 38msaidBones are in (20,449 from one full snake). Now running mazes toward 32,000 gold for 8 drones, and buying yield upgrades as they become affordable.
  136. 1h 38mbuy_upgrade upgrades=["carrots","trees"] · evidence
    result
    Bought carrots, now level 4. Paid wood 6250. Its tutorial is docs page docs/unlocks/carrots.md.
    Bought trees, now level 3. Paid hay 1200. Its tutorial is docs page docs/unlocks/trees.md.
    Game time: 1h 38m 29s elapsed, 4h 21m 31s of budget remaining.
  137. 1h 38mwait seconds=900 until_affordable="megafarm"
    result
    Waited 15m (time up). Program: r1 running.
    Inventory change: carrot +784, fertilizer +180, gold +12384, hay +1366, pumpkin +32022, water -88, weird_substance -227, wood +4180.
    Game time: 1h 53m 39s elapsed, 4h 6m 21s of budget remaining.
  138. 1h 53mwait seconds=900 until_affordable="megafarm"
    result
    Waited 15m (time up). Program: r1 running.
    Inventory change: carrot -1224, fertilizer +180, hay +104, pumpkin +58752, wood +4388.
    Game time: 2h 8m 49s elapsed, 3h 51m 11s of budget remaining.
  139. 2h 08mbuy_upgrade upgrades=["expand"] · evidence
    result
    Bought expand, now level 7. Paid pumpkin 64000. Its tutorial is docs page docs/unlocks/expand_1.md.
    Game time: 2h 8m 59s elapsed, 3h 51m 1s of budget remaining.
  140. 2h 08mstop_program
    result
    Program stopped.
    Game time: 2h 9m 9s elapsed, 3h 50m 51s of budget remaining.
  141. 2h 09mresearch
    result
    auto_unlock (Auto Unlock) level 0/1; cost pumpkin 5000; requires costs
      ## Auto Unlock Automatically unlock things. unlock(Unlocks.Megafarm)
    cactus (Cactus) level 1/6; cost pumpkin 20000; can buy now; tutorial docs/unlocks/cactus.md
      ## Cactus Increases the yield and cost of cactus. 100% => 200%
    carrots (Carrots) level 4/10; cost wood 31200; available, not affordable; tutorial docs/unlocks/carro…
  142. 2h 09mbuy_upgrade upgrades=["cactus","grass","sunflowers","polyculture","watering"] · evidence
    result
    Bought cactus, now level 2. Paid pumpkin 20000. Its tutorial is docs page docs/unlocks/cactus.md.
    Bought grass, now level 3. Paid wood 500.
    Bought sunflowers, now level 1. Paid carrot 500. Its tutorial is docs page docs/unlocks/sunflowers.md.
    Bought polyculture, now level 1. Paid pumpkin 3000. Its tutorial is docs page docs/unlocks/polyculture.md.
    Bought watering, now level 4. Paid wood 3200. Its …
  143. 2h 09mdocs_read path="docs/unlocks/sunflowers.md"
    result
    # Sunflowers
    [Sunflowers](objects/sunflower) collect the power of the sun. You can harvest that power. 
    
    Planting them works exactly like planting carrots or pumpkins. 
    
    Harvesting a grown sunflower yields power.
    If there are at least 10 sunflowers on the farm and you harvest the one with the largest number of petals you get `8` times more power!
    If you harvest a sunflower while there is another s…
  144. 2h 09mdocs_read path="docs/unlocks/polyculture.md"
    result
    # Polyculture
    You may have already noticed that sometimes plants yield more when planted together.
    Grass, bushes, trees, and carrots yield more when they have the right plant companion. Companion preference is different for each individual plant and cannot be predicted. Fortunately, the companion preference of the plant under the drone can be measured using `get_companion()`. It returns a tuple wh…
  145. 2h 09mwrite_program name="m3" · evidence
    result
    Saved m3 (115 lines).
    Game time: 2h 9m 59s elapsed, 3h 50m 1s of budget remaining.
  146. 2h 09mwrite_program name="r2" · evidence
    result
    Saved r2 (2 lines).
    Game time: 2h 10m 9s elapsed, 3h 49m 51s of budget remaining.
  147. 2h 10mrun_program name="r2" seconds=180
    result
    Ran r2 for 3m of game time; it is still running.
    Inventory change: carrot +8730, fertilizer +23, hay +4528, power +1819.73, pumpkin +156, water -45, weird_substance +60, wood +3160.
    Game time: 2h 13m 19s elapsed, 3h 46m 41s of budget remaining.
    Output:
    Warning: Tried to use Items.Water but didn't have enough of it.
    In: strip <- c_pgrass <- c_poly <- water
    use_item(Items.Water)
            ^^          …
  148. 2h 13msaidFarm is now 16x16 with companion planting and sunflower power working. Waiting on gold for the 8-drone upgrade.
  149. 2h 13mwait seconds=600 until_affordable="megafarm"
    result
    Waited 2m 17s (megafarm is affordable). Program: r2 running.
    Inventory change: fertilizer +28, gold +6656, power -138.69, water +110, weird_substance -384.
    Game time: 2h 15m 46s elapsed, 3h 44m 14s of budget remaining.
  150. 2h 15mbuy_upgrade upgrades=["megafarm","pumpkins","trees"] · evidence
    result
    Bought megafarm, now level 3. Paid gold 32000. Its tutorial is docs page docs/unlocks/megafarm.md.
    Bought pumpkins, now level 3. Paid carrot 4000. Its tutorial is docs page docs/unlocks/pumpkins.md.
    Bought trees, now level 4. Paid hay 4800. Its tutorial is docs page docs/unlocks/trees.md.
    Game time: 2h 15m 56s elapsed, 3h 44m 4s of budget remaining.
  151. 2h 15mresearch
    result
    auto_unlock (Auto Unlock) level 0/1; cost pumpkin 5000; requires costs
      ## Auto Unlock Automatically unlock things. unlock(Unlocks.Megafarm)
    cactus (Cactus) level 2/6; cost pumpkin 120000; available, not affordable; tutorial docs/unlocks/cactus.md
      ## Cactus Increases the yield and cost of cactus. 200% => 400%
    carrots (Carrots) level 4/10; cost wood 31200; available, not affordable; tutorial doc…
  152. 2h 16mstop_program
    result
    Program stopped.
    Game time: 2h 16m 16s elapsed, 3h 43m 44s of budget remaining.
  153. 2h 16mwrite_program name="t1" · evidence
    result
    Saved t1 (22 lines).
    Game time: 2h 16m 26s elapsed, 3h 43m 34s of budget remaining.
  154. 2h 16mbuy_upgrade upgrades=["polyculture","dictionaries","utilities","debug"] · evidence
    result
    Bought polyculture, now level 2. Paid bone 10000. Its tutorial is docs page docs/unlocks/polyculture.md.
    Bought dictionaries, now level 1. Paid pumpkin 2500. Its tutorial is docs page docs/scripting/dicts.md.
    Bought utilities, now level 1. Paid pumpkin 1000.
    Bought debug, now level 1. Paid hay 50, wood 50. Its tutorial is docs page docs/scripting/debug.md.
    Game time: 2h 16m 36s elapsed, 3h 43m 24s…
  155. 2h 16mrun_program name="t1" seconds=60
    result
    Ran t1 for 12s of game time; it finished.
    Inventory change: fertilizer +2, gold +1024, power -12.22, water +10, weird_substance -96.
    Game time: 2h 16m 58s elapsed, 3h 43m 2s of budget remaining.
    Output:
    512
    1024
  156. 2h 16mwrite_program name="m4" · evidence
    result
    Saved m4 (82 lines).
    Game time: 2h 17m 8s elapsed, 3h 42m 52s of budget remaining.
  157. 2h 17mwrite_program name="r3" · evidence
    result
    Saved r3 (3 lines).
    Game time: 2h 17m 18s elapsed, 3h 42m 42s of budget remaining.
  158. 2h 17mrun_program name="r3" seconds=300
    result
    Ran r3 for 5m of game time; it is still running.
    Inventory change: carrot +11796, fertilizer +60, gold +44032, hay +10544, power -168.38, pumpkin +12864, water -114, weird_substance +8656, wood +11176.
    Game time: 2h 22m 28s elapsed, 3h 37m 32s of budget remaining.
    Output:
    Warning: Tried to use Items.Water but didn't have enough of it.
    In: t_pumpkin <- strip <- c_pplant <- water
    use_item(Items.Wate…
  159. 2h 22msaidShared-maze gold farming with 8 drones works well (44k gold in under 5 minutes). Waiting for 128k gold to unlock 16 drones.
  160. 2h 22mwait seconds=600 until_affordable="megafarm"
    result
    Waited 7m 26s (megafarm is affordable). Program: r3 running.
    Inventory change: carrot -3056, fertilizer +89, gold +80896, hay +3040, power +504.90, pumpkin +6432, water -11, weird_substance +536.
    Game time: 2h 30m 4s elapsed, 3h 29m 56s of budget remaining.
  161. 2h 30mbuy_upgrade upgrades=["megafarm","grass","fertilizer"] · evidence
    result
    Bought megafarm, now level 4. Paid gold 128000. Its tutorial is docs page docs/unlocks/megafarm.md.
    Bought grass, now level 4. Paid wood 2500.
    Bought fertilizer, now level 3. Paid wood 9000. Its tutorial is docs page docs/unlocks/fertilizer.md.
    Game time: 2h 30m 14s elapsed, 3h 29m 46s of budget remaining.
  162. 2h 30mobserve
    result
    Game time: 2h 30m 24s elapsed, 3h 29m 36s of budget remaining.
    Program: r3 (running).
    Inventory: hay 15482, wood 10507, carrot 15877, pumpkin 24534, cactus 27186, bone 10449, weird_substance 9821, gold 3232, water 101, fertilizer 973, power 1712.85.
    Farm 16x16. x runs west to east, rows are listed north (top) to south.
    Cells: ground (# soil, _ grassland) + entity code + size (1 small, 2 medium, 3 …
  163. 2h 30mwrite_program name="r4" · evidence
    result
    Saved r4 (3 lines).
    Game time: 2h 30m 34s elapsed, 3h 29m 26s of budget remaining.
  164. 2h 30mbuy_upgrade upgrades=["dinosaurs"] · evidence
    result
    Bought dinosaurs, now level 2. Paid cactus 12000. Its tutorial is docs page docs/unlocks/dinosaurs.md.
    Game time: 2h 30m 44s elapsed, 3h 29m 16s of budget remaining.
  165. 2h 30mrun_program name="r4" seconds=420
    result
    Ran r4 for 7m of game time; it is still running.
    Inventory change: bone +130050, cactus +130052, carrot +26156, fertilizer +168, gold +24576, hay +23184, power +1626.93, pumpkin +14880, water +42, weird_substance +9936, wood +108912.
    Game time: 2h 37m 54s elapsed, 3h 22m 6s of budget remaining.
    Output:
    (none)
  166. 2h 37mbuy_upgrade upgrades=["mazes","carrots","pumpkins","trees","watering","polyculture","grass","fertilizer","dinosaurs"] · evidence
    result
    Bought mazes, now level 3. Paid cactus 72000. Its tutorial is docs page docs/unlocks/mazes.md.
    Bought carrots, now level 5. Paid wood 31200. Its tutorial is docs page docs/unlocks/carrots.md.
    Bought pumpkins, now level 4. Paid carrot 16000. Its tutorial is docs page docs/unlocks/pumpkins.md.
    Bought trees, now level 5. Paid hay 19200. Its tutorial is docs page docs/unlocks/trees.md.
    Bought watering…
  167. 2h 38mresearch
    result
    auto_unlock (Auto Unlock) level 0/1; cost pumpkin 5000; requires costs
      ## Auto Unlock Automatically unlock things. unlock(Unlocks.Megafarm)
    cactus (Cactus) level 2/6; cost pumpkin 120000; available, not affordable; tutorial docs/unlocks/cactus.md
      ## Cactus Increases the yield and cost of cactus. 200% => 400%
    carrots (Carrots) level 5/10; cost wood 156000; available, not affordable; tutorial do…
  168. 2h 38mwrite_program name="r5" · evidence
    result
    Saved r5 (3 lines).
    Game time: 2h 38m 24s elapsed, 3h 21m 36s of budget remaining.
  169. 2h 38mrun_program name="r5" seconds=480
    result
    Ran r5 for 8m of game time; it is still running.
    Inventory change: cactus +522560, carrot +20280, fertilizer +384, hay +70368, power +1179.97, pumpkin +107688, water +492, weird_substance +23216, wood +45248.
    Game time: 2h 46m 34s elapsed, 3h 13m 26s of budget remaining.
    Output:
    Warning: Tried to use Items.Water but didn't have enough of it.
    In: strip <- c_splant <- water
    use_item(Items.Water)
       …
  170. 2h 46mobserve
    result
    Game time: 2h 46m 44s elapsed, 3h 13m 16s of budget remaining.
    Program: r5 (running).
    Inventory: hay 149322, wood 414407, carrot 94465, pumpkin 147102, cactus 523486, bone 350599, weird_substance 42173, gold 40608, water 508, fertilizer 1573, power 3681.56.
    Farm 16x16. x runs west to east, rows are listed north (top) to south.
    Cells: ground (# soil, _ grassland) + entity code + size (1 small, 2 me…
  171. 2h 46mbuy_upgrade upgrades=["carrots","grass","trees","watering","pumpkins","cactus","mazes","polyculture","watering"] · evidence
    result
    Bought carrots, now level 6. Paid wood 156000. Its tutorial is docs page docs/unlocks/carrots.md.
    Bought grass, now level 6. Paid wood 62500.
    Bought trees, now level 6. Paid hay 76800. Its tutorial is docs page docs/unlocks/trees.md.
    Bought watering, now level 6. Paid wood 51200. Its tutorial is docs page docs/unlocks/watering.md.
    Bought pumpkins, now level 5. Paid carrot 64000. Its tutorial is do…
  172. 2h 46msaid16 drones running and a big round of yield upgrades bought. Now raising targets for the 22x22 expansion and 32 drones.
  173. 2h 46mwrite_program name="r6" · evidence
    result
    Saved r6 (3 lines).
    Game time: 2h 47m 4s elapsed, 3h 12m 56s of budget remaining.
  174. 2h 47mrun_program name="r6" seconds=600
    result
    Ran r6 for 10m of game time; it is still running.
    Inventory change: cactus +524288, carrot +334192, fertilizer +480, gold +391168, hay +101568, power +2289.49, pumpkin +540032, water -158, weird_substance +44872, wood +1255072.
    Game time: 2h 57m 14s elapsed, 3h 2m 46s of budget remaining.
    Output:
    Warning: Tried to use Items.Water but didn't have enough of it.
    In: t_pumpkin <- strip <- c_pplant <- …
  175. 2h 57mbuy_upgrade upgrades=["expand","carrots","watering","grass","pumpkins","dinosaurs","trees"] · evidence
    result
    Bought expand, now level 8. Paid pumpkin 512000. Its tutorial is docs page docs/unlocks/expand_1.md.
    Bought carrots, now level 7. Paid wood 781000. Its tutorial is docs page docs/unlocks/carrots.md.
    Bought watering, now level 7. Paid wood 205000. Its tutorial is docs page docs/unlocks/watering.md.
    Bought grass, now level 7. Paid wood 312000.
    Bought pumpkins, now level 6. Paid carrot 256000. Its tu…
  176. 2h 57mstop_program
    result
    Program stopped.
    Game time: 2h 57m 34s elapsed, 3h 2m 26s of budget remaining.
  177. 2h 57mresearch
    result
    auto_unlock (Auto Unlock) level 0/1; cost pumpkin 5000; requires costs
      ## Auto Unlock Automatically unlock things. unlock(Unlocks.Megafarm)
    cactus (Cactus) level 3/6; cost pumpkin 720000; available, not affordable; tutorial docs/unlocks/cactus.md
      ## Cactus Increases the yield and cost of cactus. 400% => 800%
    carrots (Carrots) level 7/10; cost wood 3910000; available, not affordable; tutorial d…
  178. 2h 57mwrite_program name="r7" · evidence
    result
    Saved r7 (3 lines).
    Game time: 2h 57m 54s elapsed, 3h 2m 6s of budget remaining.
  179. 2h 57mrun_program name="r7" seconds=600
    result
    Ran r7 for 10m of game time; it is still running.
    Inventory change: cactus +2810736, carrot +1509340, fertilizer +480, hay +1987712, power +93.90, pumpkin +779904, water +1982, weird_substance +44735, wood +7387648.
    Game time: 3h 8m 4s elapsed, 2h 51m 56s of budget remaining.
    Output:
    Warning: Tried to use Items.Water but didn't have enough of it.
    In: t_pumpkin <- strip <- c_pplant <- water
    use_ite…
  180. 3h 08mbuy_upgrade upgrades=["trees","carrots","grass","watering","pumpkins","mazes","cactus"] · evidence
    result
    Bought trees, now level 8. Paid hay 1230000. Its tutorial is docs page docs/unlocks/trees.md.
    Bought carrots, now level 8. Paid wood 3910000. Its tutorial is docs page docs/unlocks/carrots.md.
    Bought grass, now level 8. Paid wood 1560000.
    Bought watering, now level 8. Paid wood 819000. Its tutorial is docs page docs/unlocks/watering.md.
    Bought pumpkins, now level 7. Paid carrot 1020000. Its tutori…
  181. 3h 08mwait seconds=600 until_affordable="megafarm"
    result
    Waited 9m 58s (megafarm is affordable). Program: r7 running.
    Inventory change: bone +1866312, cactus +3740752, carrot +1817948, fertilizer +478, gold +46464, hay +2456960, power +1214.43, pumpkin +727936, water +6223, weird_substance -2464, wood +1548544.
    Game time: 3h 18m 22s elapsed, 2h 41m 38s of budget remaining.
  182. 3h 18msaidFarm is 22x22 and producing millions per cycle. Buying the 32-drone upgrade and another round of yield upgrades now.
  183. 3h 18mbuy_upgrade upgrades=["megafarm","polyculture","dinosaurs","trees","carrots","grass","watering","pumpkins","cactus","mazes"] · evidence
    result
    Bought megafarm, now level 5. Paid gold 512000. Its tutorial is docs page docs/unlocks/megafarm.md.
    Bought polyculture, now level 5. Paid bone 1250000. Its tutorial is docs page docs/unlocks/polyculture.md.
    Bought dinosaurs, now level 5. Paid cactus 2590000. Its tutorial is docs page docs/unlocks/dinosaurs.md.
    Could not buy trees: Not enough resources.
    Could not buy carrots: Not enough resources.
    …
  184. 3h 18mresearch
    result
    auto_unlock (Auto Unlock) level 0/1; cost pumpkin 5000; requires costs
      ## Auto Unlock Automatically unlock things. unlock(Unlocks.Megafarm)
    cactus (Cactus) level 4/6; cost pumpkin 4320000; available, not affordable; tutorial docs/unlocks/cactus.md
      ## Cactus Increases the yield and cost of cactus. 800% => 1600%
    carrots (Carrots) level 8/10; cost wood 19500000; available, not affordable; tutoria…
  185. 3h 18mstop_program
    result
    Program stopped.
    Game time: 3h 18m 52s elapsed, 2h 41m 8s of budget remaining.
  186. 3h 18mwrite_program name="lib" · evidence
    result
    Saved lib (172 lines).
    Game time: 3h 19m 2s elapsed, 2h 40m 58s of budget remaining.
  187. 3h 19mwrite_program name="m5" · evidence
    result
    Saved m5 (38 lines).
    Game time: 3h 19m 12s elapsed, 2h 40m 48s of budget remaining.
  188. 3h 19mwrite_program name="r8" · evidence
    result
    Saved r8 (3 lines).
    Game time: 3h 19m 22s elapsed, 2h 40m 38s of budget remaining.
  189. 3h 19mbuy_upgrade upgrades=["timing"] · evidence
    result
    Bought timing, now level 1. Paid pumpkin 1000. Its tutorial is docs page docs/unlocks/timing.md.
    Game time: 3h 19m 32s elapsed, 2h 40m 28s of budget remaining.
  190. 3h 19mrun_program name="r8" seconds=420
    result
    Ran r8 for 7m of game time; it is still running.
    Inventory change: cactus +1873792, carrot +19751936, fertilizer +336, gold +286528, hay +22887552, power -5761.63, pumpkin +363968, water +7015, weird_substance -13376, wood +113191168.
    Game time: 3h 26m 42s elapsed, 2h 33m 18s of budget remaining.
    Output:
    poly 230.39
    pump 16.92
    cact 30.99
    maze 75.73
  191. 3h 26mbuy_upgrade upgrades=["pumpkins","carrots","grass","trees"] · evidence
    result
    Bought pumpkins, now level 8. Paid carrot 4100000. Its tutorial is docs page docs/unlocks/pumpkins.md.
    Bought carrots, now level 9. Paid wood 19500000. Its tutorial is docs page docs/unlocks/carrots.md.
    Bought grass, now level 9. Paid wood 7810000.
    Bought trees, now level 9. Paid hay 4920000. Its tutorial is docs page docs/unlocks/trees.md.
    Game time: 3h 26m 52s elapsed, 2h 33m 8s of budget remain…
  192. 3h 26mwrite_program name="r9" · evidence
    result
    Saved r9 (3 lines).
    Game time: 3h 27m 2s elapsed, 2h 32m 58s of budget remaining.
  193. 3h 27mrun_program name="r9" seconds=300
    result
    Ran r9 for 5m of game time; it is still running.
    Inventory change: carrot -462, fertilizer +240, power -77.49, water +6291.
    Game time: 3h 32m 12s elapsed, 2h 27m 48s of budget remaining.
    Output:
    (none)
  194. 3h 32msaidSomething has stalled — almost nothing was produced in the last 5 minutes. Checking the farm state.
  195. 3h 32mobserve
    result
    Game time: 3h 32m 22s elapsed, 2h 27m 38s of budget remaining.
    Program: r9 (running).
    Inventory: hay 21527202, wood 85888571, carrot 18085915, pumpkin 1205942, cactus 3428878, bone 716911, weird_substance 107172, gold 433120, water 24949, fertilizer 3763, power 273.13.
    Farm 22x22. x runs west to east, rows are listed north (top) to south.
    Cells: ground (# soil, _ grassland) + entity code + size (1…
  196. 3h 32mwrite_program name="r9" · evidence
    result
    Stop the program before editing it.
  197. 3h 32mrun_program name="r9" seconds=240
    result
    Ran r9 for 4m of game time; it is still running.
    Inventory change: carrot -44, fertilizer +192, power -252.88, water +4758.
    Game time: 3h 36m 42s elapsed, 2h 23m 18s of budget remaining.
    Output:
    (none)
  198. 3h 36mstop_program
    result
    Program stopped.
    Game time: 3h 36m 52s elapsed, 2h 23m 8s of budget remaining.
  199. 3h 36mwrite_program name="r9" · evidence
    result
    Saved r9 (4 lines).
    Game time: 3h 37m 2s elapsed, 2h 22m 58s of budget remaining.
  200. 3h 37mrun_program name="r9" seconds=120
    result
    Ran r9 for 2m of game time; it is still running.
    Inventory change: bone +1936, carrot -700796, fertilizer +96, power +6061.92, pumpkin +2794368, water -259, weird_substance +179231.
    Game time: 3h 39m 12s elapsed, 2h 20m 48s of budget remaining.
    Output:
    (none)
  201. 3h 39mwait seconds=400 until_resources={"pumpkin":8450000}
    result
    Waited 1m 17s (pumpkin reached 8460854). Program: r9 running.
    Inventory change: carrot -722048, fertilizer +62, power -1029.00, pumpkin +3717120, water +750.
    Game time: 3h 40m 39s elapsed, 2h 19m 21s of budget remaining.
  202. 3h 40mstop_program
    result
    Program stopped.
    Game time: 3h 40m 49s elapsed, 2h 19m 11s of budget remaining.
  203. 3h 40mbuy_upgrade upgrades=["cactus","expand","grass","trees","carrots","pumpkins"] · evidence
    result
    Bought cactus, now level 5. Paid pumpkin 4320000. Its tutorial is docs page docs/unlocks/cactus.md.
    Bought expand, now level 9. Paid pumpkin 4100000. Its tutorial is docs page docs/unlocks/expand_1.md.
    Bought grass, now level 10. Paid wood 39100000.
    Bought trees, now level 10. Paid hay 19700000. Its tutorial is docs page docs/unlocks/trees.md.
    Could not buy carrots: Not enough resources.
    Could not…
  204. 3h 40mwrite_program name="m6" · evidence
    result
    Saved m6 (43 lines).
    Game time: 3h 41m 9s elapsed, 2h 18m 51s of budget remaining.
  205. 3h 41msaidFarm is now 32x32 with 32 drones. Starting a balanced rotation across all crops, cactus, and gold.
  206. 3h 41mwrite_program name="r10" · evidence
    result
    Saved r10 (4 lines).
    Game time: 3h 41m 19s elapsed, 2h 18m 41s of budget remaining.
  207. 3h 41mrun_program name="r10" seconds=420
    result
    Ran r10 for 7m of game time; it is still running.
    Inventory change: cactus +33554432, carrot +40232485, fertilizer +336, hay +93103616, power +666.73, pumpkin +3080192, water -1846, wood +465328128.
    Game time: 3h 48m 29s elapsed, 2h 11m 31s of budget remaining.
    Output:
    sun 39.91
    poly 211.51
    pump 48.09
    cact 116.17
  208. 3h 48mbuy_upgrade upgrades=["mazes","dinosaurs","carrots","pumpkins","pumpkins"] · evidence
    result
    Bought mazes, now level 6. Paid cactus 15600000. Its tutorial is docs page docs/unlocks/mazes.md.
    Bought dinosaurs, now level 6. Paid cactus 15600000. Its tutorial is docs page docs/unlocks/dinosaurs.md.
    Bought carrots, now level 10. Paid wood 97700000. Its tutorial is docs page docs/unlocks/carrots.md.
    Bought pumpkins, now level 9. Paid carrot 16400000. Its tutorial is docs page docs/unlocks/pump…
  209. 3h 48mwait seconds=360
    result
    Waited 6m (time up). Program: r10 running.
    Inventory change: fertilizer +288, gold +1114112, power -1274.76, water +9216, weird_substance -35840.
    Game time: 3h 54m 49s elapsed, 2h 5m 11s of budget remaining.
  210. 3h 54msaidGold came in slower than expected during the maze phase; checking what the drones are doing.
  211. 3h 54mobserve
    result
    Game time: 3h 54m 59s elapsed, 2h 5m 1s of budget remaining.
    Program: r10 (running).
    Inventory: hay 94930818, wood 414416699, carrot 40227955, pumpkin 3492758, cactus 5783310, bone 718847, weird_substance 250563, gold 1547232, water 40543, fertilizer 4849, power 8835.99.
    Farm 32x32. x runs west to east, rows are listed north (top) to south.
    Cells: ground (# soil, _ grassland) + entity code + size …
  212. 3h 54mstop_program
    result
    Program stopped.
    Game time: 3h 55m 9s elapsed, 2h 4m 51s of budget remaining.
  213. 3h 55mwrite_program name="m4" · evidence
    result
    Saved m4 (98 lines).
    Game time: 3h 55m 19s elapsed, 2h 4m 41s of budget remaining.
  214. 3h 55mwrite_program name="tm" · evidence
    result
    Saved tm (6 lines).
    Game time: 3h 55m 29s elapsed, 2h 4m 31s of budget remaining.
  215. 3h 55mrun_program name="tm" seconds=120
    result
    Ran tm for 2m of game time; it is still running.
    Inventory change: fertilizer +96, gold +1474560, hay +512, power -3815.70, water +3072, weird_substance -47104.
    Game time: 3h 57m 39s elapsed, 2h 2m 21s of budget remaining.
    Output:
    (none)
  216. 3h 57mwait seconds=600 until_program_ends=true
    result
    Waited 46s (the program ended). Program: none running.
    Inventory change: fertilizer +36, power -1483.98, water +1174.
    Game time: 3h 58m 35s elapsed, 2h 1m 25s of budget remaining.
  217. 3h 58mwrite_program name="m7" · evidence
    result
    Saved m7 (91 lines).
    Game time: 3h 58m 45s elapsed, 2h 1m 15s of budget remaining.
  218. 3h 58msaidThe maze drones were stalling once walls opened up into loops, so I've rewritten them with a proper search. Testing that now.
  219. 3h 58mwrite_program name="tm" · evidence
    result
    Saved tm (6 lines).
    Game time: 3h 58m 55s elapsed, 2h 1m 5s of budget remaining.
  220. 3h 58mrun_program name="tm" seconds=120
    result
    Ran tm for 2m of game time; it is still running.
    Inventory change: fertilizer +96, gold +2359296, hay +512, power -3181.29, water +3072, weird_substance -74752.
    Game time: 4h 1m 5s elapsed, 1h 58m 55s of budget remaining.
    Output:
    (none)
  221. 4h 01mwait seconds=420 until_program_ends=true
    result
    Waited 7m (time up). Program: tm running.
    Inventory change: fertilizer +336, gold +3309568, water +10752, weird_substance -103424.
    Game time: 4h 8m 15s elapsed, 1h 51m 45s of budget remaining.
  222. 4h 08mwait seconds=150 until_program_ends=true
    result
    Waited 1m 8s (the program ended). Program: none running.
    Inventory change: fertilizer +55, gold +688128, water +1737, weird_substance -20480.
    Game time: 4h 9m 33s elapsed, 1h 50m 27s of budget remaining.
  223. 4h 09mwrite_program name="m7" · evidence
    result
    Saved m7 (136 lines).
    Game time: 4h 9m 43s elapsed, 1h 50m 17s of budget remaining.
  224. 4h 09msaidMaze search works (gold is now ~9M). Next: a short pumpkin/carrot push to afford the last two yield upgrades, then a long dinosaur run for bones.
  225. 4h 09mwrite_program name="r11" · evidence
    result
    Saved r11 (11 lines).
    Game time: 4h 9m 53s elapsed, 1h 50m 7s of budget remaining.
  226. 4h 09mrun_program name="r11" seconds=240
    result
    Ran r11 for 4m of game time; it is still running.
    Inventory change: carrot +108925696, fertilizer +192, hay +7335424, power +12465.61, pumpkin +5524224, water -3654, weird_substance +767027, wood +40256000.
    Game time: 4h 14m 3s elapsed, 1h 45m 57s of budget remaining.
    Output:
    (none)
  227. 4h 14mbuy_upgrade upgrades=["pumpkins"] · evidence
    result
    Bought pumpkins, now level 10. Paid carrot 65500000. Its tutorial is docs page docs/unlocks/pumpkins.md.
    Game time: 4h 14m 13s elapsed, 1h 45m 47s of budget remaining.
  228. 4h 14mwait seconds=400 until_affordable="cactus"
    result
    Waited 38s (cactus is affordable). Program: r11 running.
    Inventory change: carrot -1977856, fertilizer +30, power -707.26, pumpkin +12582912, water -153.
    Game time: 4h 15m 1s elapsed, 1h 44m 59s of budget remaining.
  229. 4h 15mbuy_upgrade upgrades=["cactus"] · evidence
    result
    Bought cactus, now level 6. Paid pumpkin 25900000. Its tutorial is docs page docs/unlocks/cactus.md.
    Game time: 4h 15m 11s elapsed, 1h 44m 49s of budget remaining.
  230. 4h 15mstop_program
    result
    Program stopped.
    Game time: 4h 15m 21s elapsed, 1h 44m 39s of budget remaining.
  231. 4h 15mwrite_program name="r12" · evidence
    result
    Saved r12 (17 lines).
    Game time: 4h 15m 31s elapsed, 1h 44m 29s of budget remaining.
  232. 4h 15mrun_program name="r12" seconds=300
    result
    Ran r12 for 5m of game time; it is still running.
    Inventory change: cactus -960, fertilizer +240, power -362.11, pumpkin +1583104, water +7680.
    Game time: 4h 20m 41s elapsed, 1h 39m 19s of budget remaining.
    Output:
    (none)
  233. 4h 20mthoughtThe dinosaur run starts slowly because of the hat but speeds up as the tail grows. About 35 more minutes for roughly 33M bones, then the balanced rotation for the final hour.
  234. 4h 20mwait seconds=900 until_program_ends=true
    result
    Waited 15m (time up). Program: r12 running.
    Inventory change: cactus -17088, fertilizer +720, power -911.23, water +23040.
    Game time: 4h 35m 51s elapsed, 1h 24m 9s of budget remaining.
  235. 4h 35mwait seconds=120 until_program_ends=true
    result
    Waited 2m (time up). Program: r12 running.
    Inventory change: cactus -5632, fertilizer +96, power -121.50, water +3072.
    Game time: 4h 38m 1s elapsed, 1h 21m 59s of budget remaining.
  236. 4h 38mwrite_program name="r13" · evidence
    result
    Saved r13 (4 lines).
    Game time: 4h 38m 11s elapsed, 1h 21m 49s of budget remaining.
  237. 4h 38mwait seconds=1200 until_program_ends=true
    result
    Waited 6m 53s (the program ended). Program: none running.
    Inventory change: bone +33488928, cactus -40000, fertilizer +331, power -418.57, water +10582.
    Game time: 4h 45m 14s elapsed, 1h 14m 46s of budget remaining.
  238. 4h 45mrun_program name="r13" seconds=600
    result
    Ran r13 for 10m of game time; it is still running.
    Inventory change: cactus +67108864, carrot +56090624, fertilizer +480, gold +1572864, hay +70061568, power -6006.93, pumpkin +15597568, water +4433, weird_substance -50176, wood +353260032.
    Game time: 4h 55m 24s elapsed, 1h 4m 36s of budget remaining.
    Output:
    poly 153.44
    pump 66.92
    cact 119.56
  239. 4h 55msaidBones done (+33.5M). The final rotation is running across all crops, cactus and gold; I'll let it run and check periodically.
  240. 4h 55mwait seconds=900
    result
    Waited 15m (time up). Program: r13 running.
    Inventory change: carrot +56230912, fertilizer +720, gold +4259840, hay +73147904, power +8921.37, pumpkin +15663104, water +7902, weird_substance -132096, wood +354849792.
    Game time: 5h 10m 34s elapsed, 49m 26s of budget remaining.
  241. 5h 10mstop_program
    result
    Program stopped.
    Game time: 5h 10m 44s elapsed, 49m 16s of budget remaining.
  242. 5h 10msaidGold is the lowest resource, so I'm restarting the rotation with more maze time for the last ~49 minutes.
  243. 5h 10mwrite_program name="r13" · evidence
    result
    Saved r13 (4 lines).
    Game time: 5h 10m 54s elapsed, 49m 6s of budget remaining.
  244. 5h 10mrun_program name="r13" seconds=1200
    result
    Ran r13 for 20m of game time; it is still running.
    Inventory change: cactus +67260992, carrot +58213376, fertilizer +960, gold +7405568, hay +69630976, power -8542.98, pumpkin +12451840, water +17004, weird_substance -232448, wood +355742720.
    Game time: 5h 31m 4s elapsed, 28m 56s of budget remaining.
    Output:
    poly 153.65
    pump 48.41
    cact 110.67
    maze 392.01
  245. 5h 31msaidAbout 29 minutes left; the rotation is producing steadily (gold +7.4M in the last 20 minutes), so I'm letting it run to the end.
  246. 5h 31mwait seconds=1200
    result
    Waited 20m (time up). Program: r13 running.
    Inventory change: carrot +56924672, fertilizer +960, gold +11010048, hay +69548544, power +8176.24, pumpkin +4756992, water +13070, weird_substance +1191219, wood +367473664.
    Game time: 5h 51m 14s elapsed, 8m 46s of budget remaining.
  247. 5h 51mwait seconds=500
    result
    Waited 8m 20s (time up). Program: r13 running.
    Inventory change: cactus +67108864, carrot -396800, fertilizer +400, gold +3964928, power -6643.66, pumpkin +3014656, water +9213, weird_substance -124928.
    Game time: 5h 59m 44s elapsed, 16s of budget remaining.
  248. 5h 59msaidThe 6-hour budget is used up (16 seconds left, not enough for another action), so the run is finished. The farm went from a 1x1 grass tile to a 32x32 field with 32 drones, and every resource type in the game was produced. | Resource | Roughly how much was produced | How | |---|---|---| | Wood | well over 1.5 billion | companion-planted trees | | Hay | several hundred million | companion-planted grass | | Carrots | several hundred million | companion-planted carrots | | Cactus | about 300 million | full-field sorted harvests | | Pumpkins | about 150 million | full-field giant pumpkins | | Bones | about 36 million | two full-length and two partial dinosaur runs | | Gold | about 37 million | shared maze solved by all drones | | Weird substance | a few million | infected pumpkin harvests | | Power | tens of thousands | sunflowers harvested in petal order | These totals are estimates added up from the inventory changes reported during the run; I did not take a final inventory reading. Every upgrade was bought to its maximum except the three end-game ones that were out of reach (leaderboard, top hat, the farmer's remains) and a few scripting utilities I didn't need. Three things cost time along the way: - Stalled gold, early: about 15 minutes with no gold because weird substance ran out and my code had no way to restart it. - Dinosaur hat left on: about 10 minutes with almost nothing produced because stopping a program mid-dinosaur-run left the hat on and blocked a drone. - Slow dinosaur run: the last full run on the 32x32 field took about 30 minutes with the other 31 drones idle. It gave 33.5M bones, but a smarter snake path would have been much faster. Gold stayed the lowest of the main resources even after I shifted the final rotation toward mazes.
  249. 5h 59mwait seconds=6
    result
    Waited 6s (time up). Program: r13 running.
    Inventory change: fertilizer +5, gold +32768, power -181.45, water +143, weird_substance -1024.
    Game time: 6h elapsed, 0s of budget remaining. The game-time budget is used up. The run is over; stop now.
  250. 6h 00msaidThe game-time budget is now fully used: the clock reads 6h elapsed with 0s remaining, and the run is over. The last 6 seconds added one more maze treasure (+32,768 gold) while the rotation kept running. Nothing else changed from the summary above.

Thinking is shown as the agent reported it over ACP; some agents report a summary, not the full reasoning. Tool results are cut at 400 characters; program code is in evidence.json.

spentreported alongside the score, never folded into it

What it spent

API-equivalent cost (estimate)agent-session (one point per model request)

API-equivalent estimate at list prices; not an actual charge

Tokens

Input (uncached)1,651
Cache reads11,715,473
Cache writes166,356
Output77,998
Thinking (subset of output where reported)39,682
Total11,961,478
ModelTokensEstimate
claude-fable-5-211,960,059$7.13
claude-haiku-5-51,419$0.00015

Estimate: API-equivalent estimate at list prices; not an actual charge. Price table prices-2026-11-09. The agent itself reported $7.13 (cost reported by the agent itself; plan or subscription billing may differ).

conditionsprovenance

Limitations

  • Recorded from a harness checkout with uncommitted changes.
Run ideconomy-v1-claude-claude-fable-5-2-s3-a1-20261109T210934Z
Taskeconomy-v1 · acb5fb455a43
Budget6h 00m game time · 10s per action · caps: 2,000 tool calls, 20 continuations, 4h 00m real time
AgentClaude Agent 0.91.0 (@agentclientprotocol/claude-agent-acp)
Applied config{"model":"claude-fable-5-2 (session option)","effort":"medium","fast":"off"}
Models reportedclaude-fable-5-2, claude-haiku-5-5
Tools availablebuy_upgrade, docs_list, docs_read, docs_search, inspect_tile, list_programs, observe, research, run_program, stop_program, wait, write_program
Harnessa50c2460e8d9 (uncommitted changes)
Bridge / game2cb6f7438845 / 953fea25964f
Adaptersclaude-agent-acp 0.91.0, codex-acp 2.2.2, acp-sdk 1.8.0, mcp-sdk 1.32.1
Rubrics
economy-v1 (headline) · Σ over resources of log10(1 + produced) · 51746c5bec27
economy-weighted-v1 · scores 9.27 · log10(1 + Σ w_r × produced_r), weights from late-game sink prices · 228b39065cbd
Started / ended2026-11-09T21:09:34.391Z → 2026-11-09T21:39:47.762Z
Evidence102 items in evidence.json