Claude Fable 5.2, seed 2

Claude Code · medium reasoning effort

ValidCounts toward the meanGame-time budget used

  • Hay 900m produced, 8.95 points
  • Wood 1.05b produced, 9.02 points
  • Carrot 978m produced, 8.99 points
  • Pumpkin 119m produced, 8.08 points
  • Cactus 170m produced, 8.23 points
  • Power 131k produced, 5.12 points
  • Bone 31.6m produced, 7.50 points
  • Weird substance 11.4m produced, 7.06 points
  • Gold 22.2m produced, 7.35 points
  • Water 299k produced, 5.48 points
  • Fertilizer 13.8k produced, 4.14 points

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

Score · economy-v1
79.91orders of magnitude · model mean 80.16
On seed 2
#2of 16 models
Cost
$8.74API-equivalent estimate
Real time
36m 42swall 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 00m33.1
2h 00m53.9
3h 00m62.5
4h 00m71.2
5h 00m77.2
6h 00m79.9
said4m 20s · Bootstrapping the farm: just unlocked planting, now setting up bushes for wood so I can expand and speed up.17m 50s · Trees are paying off (wood +559 in 90s). Buying expansion and upgrades next, then heading toward pumpkins.36m 37s · Speed is maxed; now adding fertilizer use (for weird substance → mazes) and saving carrots for lists and sunflowers.45m 57s · Gold from mazes was fast enough to buy Megafarm (2 drones). Now rewriting the program to run drones in parallel.57m 11s · Farm expanded to 12x12 with 4 drones. Now splitting the code into a library plus a small main script so I can retune priorities cheaply, then pushing gold for 81h 12m · Big jump with 8 drones and the weird-substance trick (pumpkin +12k, wood +23k, weird +2.7k in 3 min). Buying the pumpkin-gated unlocks now.1h 19m · Gold now at ~8k/min with the parallel maze flood-fill; waiting on 128k for 16 drones. Meanwhile I'm reading up for the dinosaur (bones) routine.1h 33m · Bought 16 drones and the 16x16 expansion. Now testing the dinosaur routine for bones (which unlock polyculture upgrades).1h 41m · Polyculture (40x) is a massive win: +200k each of hay/wood/carrot in 2 minutes, plus bones from the dinosaur. Spending it on yield upgrades now.2h 02m · Found the maze bottleneck: one big maze takes ~5s. Switching to 16 small mazes solved in parallel (one per drone), which should multiply gold output several tim2h 22m · 32 drones unlocked (Megafarm maxed). Updating the polyculture and maze routines to use all 32, then going for bones → Polyculture L5 and the 22x22 expansion.2h 33m · Found a stall: stopping the program mid-maze left stale mazes that trapped the drones (10 min lost). Adding a robust startup cleanup that wipes the field with a3h 01m · Polyculture L5 with 32 drones now yields ~6M each of hay/wood/carrot per cycle. Spending on the yield-upgrade ladders.3h 12m · Farm is 22x22 and producing tens of millions of hay/wood/carrot per cycle. Checking state and buying the next round of upgrades.3h 28m · The 22x22 dinosaur run is far slower than expected (it ran out of power). Checking its progress to decide whether to cut it short and switch to the faster snake4h 01m · Cycle is running well (each ~4 min loop: +60M carrots, +4M pumpkins, +3.7M cactus, +690k gold). Checking the new sunflower routine's timing next.4h 17m · Stocking pumpkins/cactus for the last yield upgrades (Mazes L6 now affordable). Also fixing weird-substance production, which stalled and skipped the gold phase4h 46m · All yield upgrades are now maxed. Checking phase timings so I can set the time split for the final ~70 minutes (more weight on gold and bones, the scarcest reso5h 01m · Restarting the loop with a deadline guard so the last dinosaur run can't be cut off by the end of the budget (~58 min left).5h 37m · Final stretch: the loop now completes a full cycle in ~7 minutes with power topped up. Letting it run out the remaining ~22 minutes (one more dinosaur run, then5h 59m · The 6-hour budget is used up (16 seconds left, less than one more action), with the farm still producing at the end. **What the farm reached** - **Farm and dro6h 00m · The game-time budget is now fully used (6h elapsed) and the run is over. The last 16 seconds added about 1.4M hay, 1.4M carrots and 0.8M wood from the still-runsaid: 22 entries, first at 4m 20s
runningrunning: 42 entries, first at 50s
errorserrors: 2 entries, first at 1h 38m

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 2

How it played

MeasureThis runModel meanSeed 2 meanWhat it counts
Resources opened11 of 1111 of 119.7 of 11scored resources produced at least once
Study293348docs and research reads
Action overhead12%11%11%game time spent looking, reading and typing (10 s per call)
Tool calls250229230every action the agent took
Program writes545136accepted saves of a program
Program stints414242times a program was started and left running
Median stint5m 15s4m 40s5m 27show long a program usually ran before the next change
Cost per point$0.109$0.095$0.061API-equivalent estimate ÷ score

Farm idle 4% of samples; longest stint 36m 53s; 1 rejected write.

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
Wood1.1B produced · 9.02 pts
Wood1.1B produced · 9.02 pts
Carrot977.8M produced · 8.99 pts
Carrot977.8M produced · 8.99 pts
Hay900.1M produced · 8.95 pts
Hay900.1M produced · 8.95 pts
Cactus170.2M produced · 8.23 pts
Cactus170.2M produced · 8.23 pts
Pumpkin119.1M produced · 8.08 pts
Pumpkin119.1M produced · 8.08 pts
Bone31.6M produced · 7.50 pts
Bone31.6M produced · 7.50 pts
Gold22.2M produced · 7.35 pts
Gold22.2M produced · 7.35 pts
Weird substance11.4M produced · 7.06 pts
Weird substance11.4M produced · 7.06 pts
Water298.9K produced · 5.48 pts
Water298.9K produced · 5.48 pts
Power131.5K produced · 5.12 pts
Power131.5K produced · 5.12 pts
Fertilizer13.8K produced · 4.14 pts
Fertilizer13.8K produced · 4.14 pts
upgrades113 levels across 27 upgrades

Upgrade timeline

loopsloops: 1 entry, first at 1m 10s
speedspeed: 5 entries, first at 2m 00s
expandexpand: 8 entries, first at 2m 00s
plantplant: 1 entry, first at 4m 10s
carrotscarrots: 10 entries, first at 8m 40s
operatorsoperators: 1 entry, first at 8m 40s
variablesvariables: 1 entry, first at 10m 40s
functionsfunctions: 2 entries, first at 12m 10s
sensessenses: 1 entry, first at 12m 10s
treestrees: 10 entries, first at 15m 40s
wateringwatering: 9 entries, first at 18m 00s
pumpkinspumpkins: 10 entries, first at 20m 50s
fertilizerfertilizer: 4 entries, first at 20m 50s
grassgrass: 9 entries, first at 20m 50s
listslists: 1 entry, first at 42m 17s
sunflowerssunflowers: 1 entry, first at 42m 17s
mazesmazes: 6 entries, first at 42m 17s
importimport: 1 entry, first at 42m 17s
megafarmmegafarm: 5 entries, first at 45m 17s
dictionariesdictionaries: 1 entry, first at 1h 12m
polyculturepolyculture: 5 entries, first at 1h 12m
cactuscactus: 6 entries, first at 1h 12m
dinosaursdinosaurs: 6 entries, first at 1h 15m
hatshats: 6 entries, first at 1h 15m
utilitiesutilities: 1 entry, first at 1h 15m
debugdebug: 1 entry, first at 1h 38m
timingtiming: 1 entry, first at 2h 55m
Every purchase, with what the agent was told
Game timeCallUnlockedResult the agent saw
1m 00s{"upgrades":["loops"]}loops 1Bought loops, now level 1. Paid hay 5. Its tutorial is docs page docs/scripting/while.md.
1m 50s{"upgrades":["speed","expand","plant"]}speed 1, expand 1Bought speed, now level 1. Paid hay 20. Its tutorial is docs page docs/unlocks/speed.md.
4m 00s{"upgrades":["plant"]}plant 1Bought plant, now level 1. Paid hay 50. Its tutorial is docs page docs/unlocks/plant.md.
5m 30s{"upgrades":["expand"]}expand 2Bought expand, now level 2. Paid wood 20. Its tutorial is docs page docs/unlocks/expand_1.md.
7m 10s{"upgrades":["speed"]}speed 2Bought speed, now level 2. Paid wood 20. Its tutorial is docs page docs/unlocks/speed.md.
8m 30s{"upgrades":["carrots","speed","expand","operators"]}carrots 1, operators 1Bought carrots, now level 1. Paid wood 50. Its tutorial is docs page docs/unlocks/carrots.md.
10m 30s{"upgrades":["variables"]}variables 1Bought variables, now level 1. Paid carrot 35. Its tutorial is docs page docs/scripting/variables.md.
12m 00s{"upgrades":["functions","senses","expand"]}functions 1, functions 1, senses 1, expand 3Bought functions, now level 1. Paid carrot 40. Its tutorial is docs page docs/scripting/functions.md.
15m 30s{"upgrades":["speed","trees","expand"]}speed 3, trees 1Bought speed, now level 3. Paid wood 50, carrot 50. Its tutorial is docs page docs/unlocks/speed.md.
17m 50s{"upgrades":["expand","carrots","watering"]}expand 4, carrots 2, watering 1Bought expand, now level 4. Paid wood 100, carrot 50. Its tutorial is docs page docs/unlocks/expand_1.md.
20m 40s{"upgrades":["pumpkins","fertilizer","watering","grass","trees"]}pumpkins 1, fertilizer 1, watering 2, grass 2Bought pumpkins, now level 1. Paid wood 500, carrot 200. Its tutorial is docs page docs/unlocks/pumpkins.md.
28m 11s{"upgrades":["speed","trees","expand"]}speed 4, trees 2Bought speed, now level 4. Paid carrot 500. Its tutorial is docs page docs/unlocks/speed.md.
28m 31s{"upgrades":["grass","carrots"]}grass 3, carrots 3Bought grass, now level 3. Paid wood 500.
32m 17s{"upgrades":["expand","watering","fertilizer","trees"]}expand 5, watering 3, fertilizer 2Bought expand, now level 5. Paid pumpkin 1000. Its tutorial is docs page docs/unlocks/expand_1.md.
36m 07s{"upgrades":["speed"]}speed 5Bought speed, now level 5. Paid carrot 1000. Its tutorial is docs page docs/unlocks/speed.md.
42m 07s{"upgrades":["lists","sunflowers","mazes","trees","import"]}lists 1, sunflowers 1, mazes 1, trees 3, import 1Bought lists, now level 1. Paid carrot 500. Its tutorial is docs page docs/scripting/lists.md.
45m 07s{"upgrades":["megafarm"]}megafarm 1Bought megafarm, now level 1. Paid gold 2000. Its tutorial is docs page docs/unlocks/megafarm.md.
45m 37s{"upgrades":["grass","pumpkins"]}grass 4, pumpkins 2Bought grass, now level 4. Paid wood 2500.
49m 31s{"upgrades":["megafarm"]}megafarm 2Bought megafarm, now level 2. Paid gold 8000. Its tutorial is docs page docs/unlocks/megafarm.md.
57m 01s{"upgrades":["expand","carrots","watering"]}expand 6, carrots 4, watering 4Bought expand, now level 6. Paid pumpkin 8000. Its tutorial is docs page docs/unlocks/expand_1.md.
1h 08m{"upgrades":["megafarm"]}megafarm 3Bought megafarm, now level 3. Paid gold 32000. Its tutorial is docs page docs/unlocks/megafarm.md.
1h 12m{"upgrades":["dictionaries","polyculture","cactus","fertilizer","grass","pumpkins","trees"]}dictionaries 1, polyculture 1, cactus 1, fertilizer 3, grass 5, pumpkins 3, trees 4Bought dictionaries, now level 1. Paid pumpkin 2500. Its tutorial is docs page docs/scripting/dicts.md.
1h 15m{"upgrades":["mazes","dinosaurs","carrots","watering","utilities","trees","grass"]}mazes 2, dinosaurs 1, hats 1, carrots 5, watering 5, utilities 1, trees 5, grass 6Bought mazes, now level 2. Paid cactus 12000. Its tutorial is docs page docs/unlocks/mazes.md.
1h 16m{"upgrades":["pumpkins"]}pumpkins 4Bought pumpkins, now level 4. Paid carrot 16000. Its tutorial is docs page docs/unlocks/pumpkins.md.
1h 32m{"upgrades":["megafarm"]}megafarm 4Bought megafarm, now level 4. Paid gold 128000. Its tutorial is docs page docs/unlocks/megafarm.md.
1h 33m{"upgrades":["expand","dinosaurs","fertilizer"]}expand 7, dinosaurs 2, hats 1, fertilizer 4Bought expand, now level 7. Paid pumpkin 64000. Its tutorial is docs page docs/unlocks/expand_1.md.
1h 38m{"upgrades":["polyculture","polyculture","polyculture","debug"]}polyculture 2, polyculture 3, debug 1Bought polyculture, now level 2. Paid bone 10000. Its tutorial is docs page docs/unlocks/polyculture.md.
1h 41m{"upgrades":["carrots","trees","pumpkins","watering","costs"]}carrots 6, trees 6, pumpkins 5, watering 6Bought carrots, now level 6. Paid wood 156000. Its tutorial is docs page docs/unlocks/carrots.md.
1h 44m{"upgrades":["mazes","grass"]}mazes 3Bought mazes, now level 3. Paid cactus 72000. Its tutorial is docs page docs/unlocks/mazes.md.
2h 14m{"upgrades":["polyculture"]}polyculture 4Bought polyculture, now level 4. Paid bone 250000. Its tutorial is docs page docs/unlocks/polyculture.md.
2h 17m{"upgrades":["grass","trees","carrots","pumpkins","watering","cactus","dinosaurs"]}grass 7, trees 7, pumpkins 6, watering 7, cactus 2, dinosaurs 3, hats 1Bought grass, now level 7. Paid wood 312000.
2h 21m{"upgrades":["megafarm","carrots"]}megafarm 5Bought megafarm, now level 5. Paid gold 512000. Its tutorial is docs page docs/unlocks/megafarm.md.
2h 55m{"upgrades":["polyculture","timing"]}polyculture 5, timing 1Bought polyculture, now level 5. Paid bone 1250000. Its tutorial is docs page docs/unlocks/polyculture.md.
3h 01m{"upgrades":["grass","trees","carrots","pumpkins","cactus","watering","grass","trees","carrots","pumpkins","watering"]}grass 8, trees 8, carrots 7, pumpkins 7, cactus 3, watering 8, trees 9, carrots 8, pumpkins 8Bought grass, now level 8. Paid wood 1560000.
3h 05m{"upgrades":["mazes","expand","grass","trees","carrots","pumpkins","watering","grass","carrots","pumpkins"]}mazes 4, expand 8, grass 9, trees 10, pumpkins 9, watering 9Bought mazes, now level 4. Paid cactus 432000. Its tutorial is docs page docs/unlocks/mazes.md.
3h 12m{"upgrades":["dinosaurs","carrots","grass","pumpkins","cactus","mazes"]}dinosaurs 4, hats 1, carrots 9, cactus 4Bought dinosaurs, now level 4. Paid cactus 432000. Its tutorial is docs page docs/unlocks/dinosaurs.md.
3h 40m{"upgrades":["grass","mazes","cactus"]}grass 10Bought grass, now level 10. Paid wood 39100000.
3h 50m{"upgrades":["mazes","cactus"]}mazes 5, cactus 5Bought mazes, now level 5. Paid cactus 2590000. Its tutorial is docs page docs/unlocks/mazes.md.
3h 55m{"upgrades":["pumpkins","carrots","dinosaurs"]}pumpkins 10Bought pumpkins, now level 10. Paid carrot 65500000. Its tutorial is docs page docs/unlocks/pumpkins.md.
4h 06m{"upgrades":["carrots","dinosaurs","mazes","cactus","dinosaurs"]}carrots 10, dinosaurs 5, hats 1Bought carrots, now level 10. Paid wood 97700000. Its tutorial is docs page docs/unlocks/carrots.md.
4h 17m{"upgrades":["mazes","cactus"]}mazes 6Bought mazes, now level 6. Paid cactus 15600000. Its tutorial is docs page docs/unlocks/mazes.md.
4h 23m{"upgrades":["cactus","dinosaurs"]}cactus 6Bought cactus, now level 6. Paid pumpkin 25900000. Its tutorial is docs page docs/unlocks/cactus.md.
4h 29m{"upgrades":["dinosaurs"]}dinosaurs 6, hats 1Bought dinosaurs, now level 6. Paid cactus 15600000. Its tutorial is docs page docs/unlocks/dinosaurs.md.

Programs 55 writes, code as the agent wrote it

h.py16 writes · 15 ran · first at 30s
  1. r130sRan20 lines · ran 10s
    harvest()
    harvest()
    harvest()
    harvest()
    harvest()
    harvest()
    harvest()
    harvest()
    harvest()
    harvest()
    harvest()
    harvest()
    harvest()
    harvest()
    harvest()
    harvest()
    harvest()
    harvest()
    harvest()
    harvest()
    Write result the agent saw
    Saved h (20 lines).
    Game time: 40s elapsed, 5h 59m 20s of budget remaining.
    run_program at 40s for 30s (agent saw)
    Ran h for 10s of game time; it finished.
    Inventory change: hay +20.
    Game time: 1m elapsed, 5h 59m of budget remaining.
    Output:
    (none)
  2. r21m 10sRan2 lines · +2 −20 · ran 1m 40s
    while True:
    	harvest()
    Changes from the previous revision
    - harvest()
    - harvest()
    - harvest()
    - harvest()
    - harvest()
    - harvest()
    - harvest()
    - harvest()
    - harvest()
    - harvest()
    - harvest()
    - harvest()
    - harvest()
    - harvest()
    - harvest()
    - harvest()
    - harvest()
    - harvest()
    - harvest()
    - harvest()
    + while True:
    + 	harvest()
    
    Write result the agent saw
    Saved h (2 lines).
    Game time: 1m 20s elapsed, 5h 58m 40s of budget remaining.
    run_program at 1m 20s for 20s (agent saw)
    Ran h for 20s of game time; it is still running.
    Inventory change: hay +40.
    Game time: 1m 50s elapsed, 5h 58m 10s of budget remaining.
    Output:
    (none)
    run_program at 2m 10s for 30s (agent saw)
    Ran h for 30s of game time; it is still running.
    Inventory change: no change.
    Game time: 2m 50s elapsed, 5h 57m 10s of budget remaining.
    Output:
    (none)
  3. —2m 00sRejected
    while True:
    	harvest()
    	move(North)
    Write result the agent saw
    Stop the program before editing it.
  4. r33m 10sRan3 lines · +1 −0 · ran 1m 00s
    while True:
    	harvest()
    	move(North)
    Changes from the previous revision
      while True:
      	harvest()
    + 	move(North)
    
    Write result the agent saw
    Saved h (3 lines).
    Game time: 3m 20s elapsed, 5h 56m 40s of budget remaining.
    run_program at 3m 20s for 30s (agent saw)
    Ran h for 30s of game time; it is still running.
    Inventory change: hay +45.
    Game time: 4m elapsed, 5h 56m of budget remaining.
    Output:
    (none)
  5. r44m 30sRan5 lines · +3 −1 · ran 1m 00s
    while True:
    	if can_harvest():
    		harvest()
    		plant(Entities.Bush)
    	move(North)
    Changes from the previous revision
      while True:
    - 	harvest()
    + 	if can_harvest():
    + 		harvest()
    + 		plant(Entities.Bush)
      	move(North)
    
    Write result the agent saw
    Saved h (5 lines).
    Game time: 4m 40s elapsed, 5h 55m 20s of budget remaining.
    run_program at 4m 40s for 40s (agent saw)
    Ran h for 40s of game time; it is still running.
    Inventory change: hay +7, wood +22.
    Game time: 5m 30s elapsed, 5h 54m 30s of budget remaining.
    Output:
    (none)
  6. r55m 50sRan13 lines · +8 −0 · ran 3m 00s
    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
      		plant(Entities.Bush)
      	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 h (13 lines).
    Game time: 6m elapsed, 5h 54m of budget remaining.
    run_program at 6m 00s for 60s (agent saw)
    Ran h for 1m of game time; it is still running.
    Inventory change: hay +44, wood +56.
    Game time: 7m 10s elapsed, 5h 52m 50s of budget remaining.
    Output:
    (none)
  7. r69m 10sRan24 lines · +13 −2 · ran 2m 50s
    move(North)
    harvest()
    till()
    move(East)
    harvest()
    till()
    move(East)
    harvest()
    till()
    move(East)
    move(South)
    while True:
    	if can_harvest():
    		harvest()
    	plant(Entities.Bush)
    	move(North)
    	if can_harvest():
    		harvest()
    	plant(Entities.Carrot)
    	move(North)
    	if can_harvest():
    		harvest()
    	move(North)
    	move(East)
    Changes from the previous revision
    + move(North)
    + harvest()
    + till()
    + move(East)
    + harvest()
    + till()
    + move(East)
    + harvest()
    + till()
    + move(East)
    + move(South)
      while True:
      	if can_harvest():
      		harvest()
    - 		plant(Entities.Bush)
    + 	plant(Entities.Bush)
      	move(North)
      	if can_harvest():
      		harvest()
    - 		plant(Entities.Bush)
    + 	plant(Entities.Carrot)
      	move(North)
      	if can_harvest():
    
    Write result the agent saw
    Saved h (24 lines).
    Game time: 9m 20s elapsed, 5h 50m 40s of budget remaining.
    run_program at 9m 20s for 60s (agent saw)
    Ran h for 1m of game time; it is still running.
    Inventory change: carrot +36, hay +41, wood +28.
    Game time: 10m 30s elapsed, 5h 49m 30s of budget remaining.
    Output:
    (none)
  8. r712m 20sRan19 lines · +15 −20 · ran 3m 20s
    while True:
    	if can_harvest():
    		harvest()
    	h = num_items(Items.Hay)
    	w = num_items(Items.Wood)
    	c = num_items(Items.Carrot)
    	if get_entity_type() == None or get_entity_type() == Entities.Grass:
    		if w <= h and w <= c:
    			plant(Entities.Bush)
    		elif c <= h and c <= w:
    			if get_ground_type() != Grounds.Soil:
    				till()
    			plant(Entities.Carrot)
    		else:
    			if get_ground_type() == Grounds.Soil:
    				till()
    	move(North)
    	if get_pos_y() == 0:
    		move(East)
    Changes from the previous revision
    - move(North)
    - harvest()
    - till()
    - move(East)
    - harvest()
    - till()
    - move(East)
    - harvest()
    - till()
    - move(East)
    - move(South)
      while True:
      	if can_harvest():
      		harvest()
    - 	plant(Entities.Bush)
    - 	move(North)
    - 	if can_harvest():
    - 		harvest()
    - 	plant(Entities.Carrot)
    - 	move(North)
    - 	if can_harvest():
    - 		harvest()
    + 	h = num_items(Items.Hay)
    + 	w = num_items(Items.Wood)
    + 	c = num_items(Items.Carrot)
    + 	if get_entity_type() == None or get_entity_type() == Entities.Grass:
    + 		if w <= h and w <= c:
    + 			plant(Entities.Bush)
    + 		elif c <= h and c <= w:
    + 			if get_ground_type() != Grounds.Soil:
    + 				till()
    + 			plant(Entities.Carrot)
    + 		else:
    + 			if get_ground_type() == Grounds.Soil:
    + 				till()
      	move(North)
    - 	move(East)
    + 	if get_pos_y() == 0:
    + 		move(East)
    
    Write result the agent saw
    Saved h (19 lines).
    Game time: 12m 30s elapsed, 5h 47m 30s of budget remaining.
    run_program at 12m 30s for 60s (agent saw)
    Ran h for 1m of game time; it is still running.
    Inventory change: carrot +60, hay -52, wood -64.
    Game time: 13m 40s elapsed, 5h 46m 20s of budget remaining.
    Output:
    (none)
  9. r816m 00sRan20 lines · +5 −4 · ran 2m 00s
    while True:
    	if can_harvest():
    		harvest()
    	h = num_items(Items.Hay)
    	w = num_items(Items.Wood)
    	c = num_items(Items.Carrot)
    	e = get_entity_type()
    	if e == None or e == Entities.Grass:
    		if (get_pos_x() + get_pos_y()) % 2 == 0:
    			plant(Entities.Tree)
    		elif c <= h:
    			if get_ground_type() != Grounds.Soil:
    				till()
    			plant(Entities.Carrot)
    		else:
    			if get_ground_type() == Grounds.Soil:
    				till()
    	move(North)
    	if get_pos_y() == 0:
    		move(East)
    Changes from the previous revision
      	w = num_items(Items.Wood)
      	c = num_items(Items.Carrot)
    - 	if get_entity_type() == None or get_entity_type() == Entities.Grass:
    - 		if w <= h and w <= c:
    - 			plant(Entities.Bush)
    - 		elif c <= h and c <= w:
    + 	e = get_entity_type()
    + 	if e == None or e == Entities.Grass:
    + 		if (get_pos_x() + get_pos_y()) % 2 == 0:
    + 			plant(Entities.Tree)
    + 		elif c <= h:
      			if get_ground_type() != Grounds.Soil:
      				till()
    
    Write result the agent saw
    Saved h (20 lines).
    Game time: 16m 10s elapsed, 5h 43m 50s of budget remaining.
    run_program at 16m 10s for 90s (agent saw)
    Ran h for 1m 30s of game time; it is still running.
    Inventory change: carrot +96, hay +46, wood +559.
    Game time: 17m 50s elapsed, 5h 42m 10s of budget remaining.
    Output:
    (none)
  10. r918m 20sRan22 lines · +3 −1 · ran 2m 30s
    while True:
    	if can_harvest():
    		harvest()
    	h = num_items(Items.Hay)
    	w = num_items(Items.Wood)
    	c = num_items(Items.Carrot)
    	e = get_entity_type()
    	if e == None or e == Entities.Grass:
    		if (get_pos_x() + get_pos_y()) % 2 == 0 and w < 3 * h + 600:
    			plant(Entities.Tree)
    		elif c <= h:
    			if get_ground_type() != Grounds.Soil:
    				till()
    			plant(Entities.Carrot)
    		else:
    			if get_ground_type() == Grounds.Soil:
    				till()
    	if get_water() < 0.5 and num_items(Items.Water) > 0:
    		use_item(Items.Water)
    	move(North)
    	if get_pos_y() == 0:
    		move(East)
    Changes from the previous revision
      	e = get_entity_type()
      	if e == None or e == Entities.Grass:
    - 		if (get_pos_x() + get_pos_y()) % 2 == 0:
    + 		if (get_pos_x() + get_pos_y()) % 2 == 0 and w < 3 * h + 600:
      			plant(Entities.Tree)
      		elif c <= h:
      			if get_ground_type() == Grounds.Soil:
      				till()
    + 	if get_water() < 0.5 and num_items(Items.Water) > 0:
    + 		use_item(Items.Water)
      	move(North)
      	if get_pos_y() == 0:
    
    Write result the agent saw
    Saved h (22 lines).
    Game time: 18m 30s elapsed, 5h 41m 30s of budget remaining.
    run_program at 18m 30s for 120s (agent saw)
    Ran h for 2m of game time; it is still running.
    Inventory change: carrot +198, hay +90, water -2, wood +1290.
    Game time: 20m 40s elapsed, 5h 39m 20s of budget remaining.
    Output:
    (none)
  11. r1021m 10sRan64 lines · +61 −19 · ran 15m 17s
    def step():
    	move(North)
    	if get_pos_y() == 0:
    		move(East)
    
    def water():
    	if get_water() < 0.5 and num_items(Items.Water) > 0:
    		use_item(Items.Water)
    
    def mixed():
    	n = get_world_size() * get_world_size()
    	i = 0
    	while i < n:
    		i = i + 1
    		if can_harvest():
    			harvest()
    		h = num_items(Items.Hay)
    		w = num_items(Items.Wood)
    		c = num_items(Items.Carrot)
    		e = get_entity_type()
    		if e == Entities.Dead_Pumpkin:
    			harvest()
    			e = None
    		if e == None or e == Entities.Grass:
    			if (get_pos_x() + get_pos_y()) % 2 == 0 and w < 4 * h + 600:
    				plant(Entities.Tree)
    				water()
    			elif c <= h:
    				if get_ground_type() != Grounds.Soil:
    					till()
    				plant(Entities.Carrot)
    			else:
    				if get_ground_type() == Grounds.Soil:
    					till()
    		step()
    
    def pumpkins():
    	n = get_world_size() * get_world_size()
    	bad = 1
    	while bad > 0:
    		bad = 0
    		i = 0
    		while i < n:
    			i = i + 1
    			e = get_entity_type()
    			if e != Entities.Pumpkin:
    				if e != None and e != Entities.Dead_Pumpkin:
    					harvest()
    				if get_ground_type() != Grounds.Soil:
    					till()
    				plant(Entities.Pumpkin)
    				water()
    				bad = bad + 1
    			elif not can_harvest():
    				bad = bad + 1
    			step()
    	harvest()
    
    while True:
    	c = num_items(Items.Carrot)
    	if c > 300 and num_items(Items.Pumpkin) < c:
    		pumpkins()
    	else:
    		mixed()
    Changes from the previous revision
    - while True:
    - 	if can_harvest():
    - 		harvest()
    - 	h = num_items(Items.Hay)
    - 	w = num_items(Items.Wood)
    - 	c = num_items(Items.Carrot)
    - 	e = get_entity_type()
    - 	if e == None or e == Entities.Grass:
    - 		if (get_pos_x() + get_pos_y()) % 2 == 0 and w < 3 * h + 600:
    - 			plant(Entities.Tree)
    - 		elif c <= h:
    - 			if get_ground_type() != Grounds.Soil:
    - 				till()
    - 			plant(Entities.Carrot)
    - 		else:
    - 			if get_ground_type() == Grounds.Soil:
    - 				till()
    - 	if get_water() < 0.5 and num_items(Items.Water) > 0:
    - 		use_item(Items.Water)
    + def step():
      	move(North)
      	if get_pos_y() == 0:
      		move(East)
    + 
    + def water():
    + 	if get_water() < 0.5 and num_items(Items.Water) > 0:
    + 		use_item(Items.Water)
    + 
    + def mixed():
    + 	n = get_world_size() * get_world_size()
    + 	i = 0
    + 	while i < n:
    + 		i = i + 1
    + 		if can_harvest():
    + 			harvest()
    + 		h = num_items(Items.Hay)
    + 		w = num_items(Items.Wood)
    + 		c = num_items(Items.Carrot)
    + 		e = get_entity_type()
    + 		if e == Entities.Dead_Pumpkin:
    + 			harvest()
    + 			e = None
    + 		if e == None or e == Entities.Grass:
    + 			if (get_pos_x() + get_pos_y()) % 2 == 0 and w < 4 * h + 600:
    + 				plant(Entities.Tree)
    + 				water()
    + 			elif c <= h:
    + 				if get_ground_type() != Grounds.Soil:
    + 					till()
    + 				plant(Entities.Carrot)
    + 			else:
    + 				if get_ground_type() == Grounds.Soil:
    + 					till()
    + 		step()
    + 
    + def pumpkins():
    + 	n = get_world_size() * get_world_size()
    + 	bad = 1
    + 	while bad > 0:
    + 		bad = 0
    + 		i = 0
    + 		while i < n:
    + 			i = i + 1
    + 			e = get_entity_type()
    + 			if e != Entities.Pumpkin:
    + 				if e != None and e != Entities.Dead_Pumpkin:
    + 					harvest()
    + 				if get_ground_type() != Grounds.Soil:
    + 					till()
    + 				plant(Entities.Pumpkin)
    + 				water()
    + 				bad = bad + 1
    + 			elif not can_harvest():
    + 				bad = bad + 1
    + 			step()
    + 	harvest()
    + 
    + while True:
    + 	c = num_items(Items.Carrot)
    + 	if c > 300 and num_items(Items.Pumpkin) < c:
    + 		pumpkins()
    + 	else:
    + 		mixed()
    
    Write result the agent saw
    Saved h (64 lines).
    Game time: 21m 20s elapsed, 5h 38m 40s of budget remaining.
    run_program at 21m 20s for 180s (agent saw)
    Ran h for 3m of game time; it is still running.
    Inventory change: carrot +219, fertilizer +18, hay +166, pumpkin +216, water -4, wood +953.
    Game time: 24m 30s elapsed, 5h 35m 30s of budget remaining.
    Output:
    (none)
  12. r1136m 47sRan66 lines · +3 −1 · ran 5m 40s
    def step():
    	move(North)
    	if get_pos_y() == 0:
    		move(East)
    
    def water():
    	if get_water() < 0.5 and num_items(Items.Water) > 0:
    		use_item(Items.Water)
    
    def mixed():
    	n = get_world_size() * get_world_size()
    	i = 0
    	while i < n:
    		i = i + 1
    		if can_harvest():
    			harvest()
    		h = num_items(Items.Hay)
    		w = num_items(Items.Wood)
    		c = num_items(Items.Carrot)
    		e = get_entity_type()
    		if e == Entities.Dead_Pumpkin:
    			harvest()
    			e = None
    		if e == None or e == Entities.Grass:
    			if (get_pos_x() + get_pos_y()) % 2 == 0 and w < 4 * h + 600:
    				plant(Entities.Tree)
    				water()
    				if num_items(Items.Fertilizer) > 0 and num_items(Items.Weird_Substance) < 3000:
    					use_item(Items.Fertilizer)
    			elif c <= h:
    				if get_ground_type() != Grounds.Soil:
    					till()
    				plant(Entities.Carrot)
    			else:
    				if get_ground_type() == Grounds.Soil:
    					till()
    		step()
    
    def pumpkins():
    	n = get_world_size() * get_world_size()
    	bad = 1
    	while bad > 0:
    		bad = 0
    		i = 0
    		while i < n:
    			i = i + 1
    			e = get_entity_type()
    			if e != Entities.Pumpkin:
    				if e != None and e != Entities.Dead_Pumpkin:
    					harvest()
    				if get_ground_type() != Grounds.Soil:
    					till()
    				plant(Entities.Pumpkin)
    				water()
    				bad = bad + 1
    			elif not can_harvest():
    				bad = bad + 1
    			step()
    	harvest()
    
    while True:
    	c = num_items(Items.Carrot)
    	if c > 1500 and num_items(Items.Pumpkin) < c:
    		pumpkins()
    	else:
    		mixed()
    Changes from the previous revision
      				plant(Entities.Tree)
      				water()
    + 				if num_items(Items.Fertilizer) > 0 and num_items(Items.Weird_Substance) < 3000:
    + 					use_item(Items.Fertilizer)
      			elif c <= h:
      				if get_ground_type() != Grounds.Soil:
      while True:
      	c = num_items(Items.Carrot)
    - 	if c > 300 and num_items(Items.Pumpkin) < c:
    + 	if c > 1500 and num_items(Items.Pumpkin) < c:
      		pumpkins()
      	else:
    
    Write result the agent saw
    Saved h (66 lines).
    Game time: 36m 57s elapsed, 5h 23m 3s of budget remaining.
    run_program at 36m 57s for 300s (agent saw)
    Ran h for 5m of game time; it is still running.
    Inventory change: carrot +1610, fertilizer -121, hay +1352, pumpkin +768, water -8, weird_substance +1725, wood +5143.
    Game time: 42m 7s elapsed, 5h 17m 53s of budget remaining.
    Output:
    (none)
  13. r1242m 47sRan124 lines · +60 −2 · ran 3m 00s
    def step():
    	move(North)
    	if get_pos_y() == 0:
    		move(East)
    
    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.5 and num_items(Items.Water) > 0:
    		use_item(Items.Water)
    
    def mixed():
    	n = get_world_size() * get_world_size()
    	i = 0
    	while i < n:
    		i = i + 1
    		if can_harvest():
    			harvest()
    		h = num_items(Items.Hay)
    		w = num_items(Items.Wood)
    		c = num_items(Items.Carrot)
    		e = get_entity_type()
    		if e == Entities.Dead_Pumpkin or e == Entities.Sunflower:
    			harvest()
    			e = None
    		if e == None or e == Entities.Grass:
    			if (get_pos_x() + get_pos_y()) % 2 == 0 and w < 4 * h + 600:
    				plant(Entities.Tree)
    				water()
    				if num_items(Items.Fertilizer) > 0 and num_items(Items.Weird_Substance) < 3000:
    					use_item(Items.Fertilizer)
    			elif c <= h:
    				if get_ground_type() != Grounds.Soil:
    					till()
    				plant(Entities.Carrot)
    			else:
    				if get_ground_type() == Grounds.Soil:
    					till()
    		step()
    
    def pumpkins():
    	n = get_world_size() * get_world_size()
    	bad = 1
    	while bad > 0:
    		bad = 0
    		i = 0
    		while i < n:
    			i = i + 1
    			e = get_entity_type()
    			if e != Entities.Pumpkin:
    				if e != None and e != Entities.Dead_Pumpkin:
    					harvest()
    				if get_ground_type() != Grounds.Soil:
    					till()
    				plant(Entities.Pumpkin)
    				water()
    				bad = bad + 1
    			elif not can_harvest():
    				bad = bad + 1
    			step()
    	harvest()
    
    def sunflowers():
    	n = get_world_size()
    	buckets = []
    	for i in range(16):
    		buckets.append([])
    	for i in range(n * n):
    		if get_entity_type() != None:
    			harvest()
    		if get_ground_type() != Grounds.Soil:
    			till()
    		plant(Entities.Sunflower)
    		water()
    		buckets[measure()].append((get_pos_x(), get_pos_y()))
    		step()
    	p = 15
    	while p >= 7:
    		for pos in buckets[p]:
    			goto(pos[0], pos[1])
    			while not can_harvest():
    				pass
    			harvest()
    		p = p - 1
    
    def maze():
    	harvest()
    	plant(Entities.Bush)
    	use_item(Items.Weird_Substance, get_world_size() * 2 ** (num_unlocked(Unlocks.Mazes) - 1))
    	dirs = [North, East, South, West]
    	d = 0
    	while get_entity_type() != Entities.Treasure:
    		r = (d + 1) % 4
    		if move(dirs[r]):
    			d = r
    		elif move(dirs[d]):
    			pass
    		else:
    			l = (d + 3) % 4
    			if move(dirs[l]):
    				d = l
    			else:
    				d = (d + 2) % 4
    				move(dirs[d])
    	harvest()
    
    while True:
    	c = num_items(Items.Carrot)
    	if num_items(Items.Power) < 100 and c > 100:
    		sunflowers()
    	elif num_items(Items.Weird_Substance) >= 100 and num_items(Items.Gold) < 2100:
    		maze()
    	elif c > 1500 and num_items(Items.Pumpkin) < c:
    		pumpkins()
    	else:
    		mixed()
    Changes from the previous revision
      		move(East)
      
    + 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.5 and num_items(Items.Water) > 0:
      		c = num_items(Items.Carrot)
      		e = get_entity_type()
    - 		if e == Entities.Dead_Pumpkin:
    + 		if e == Entities.Dead_Pumpkin or e == Entities.Sunflower:
      			harvest()
      			e = None
      	harvest()
      
    + def sunflowers():
    + 	n = get_world_size()
    + 	buckets = []
    + 	for i in range(16):
    + 		buckets.append([])
    + 	for i in range(n * n):
    + 		if get_entity_type() != None:
    + 			harvest()
    + 		if get_ground_type() != Grounds.Soil:
    + 			till()
    + 		plant(Entities.Sunflower)
    + 		water()
    + 		buckets[measure()].append((get_pos_x(), get_pos_y()))
    + 		step()
    + 	p = 15
    + 	while p >= 7:
    + 		for pos in buckets[p]:
    + 			goto(pos[0], pos[1])
    + 			while not can_harvest():
    + 				pass
    + 			harvest()
    + 		p = p - 1
    + 
    + def maze():
    + 	harvest()
    + 	plant(Entities.Bush)
    + 	use_item(Items.Weird_Substance, get_world_size() * 2 ** (num_unlocked(Unlocks.Mazes) - 1))
    + 	dirs = [North, East, South, West]
    + 	d = 0
    + 	while get_entity_type() != Entities.Treasure:
    + 		r = (d + 1) % 4
    + 		if move(dirs[r]):
    + 			d = r
    + 		elif move(dirs[d]):
    + 			pass
    + 		else:
    + 			l = (d + 3) % 4
    + 			if move(dirs[l]):
    + 				d = l
    + 			else:
    + 				d = (d + 2) % 4
    + 				move(dirs[d])
    + 	harvest()
    + 
      while True:
      	c = num_items(Items.Carrot)
    - 	if c > 1500 and num_items(Items.Pumpkin) < c:
    + 	if num_items(Items.Power) < 100 and c > 100:
    + 		sunflowers()
    + 	elif num_items(Items.Weird_Substance) >= 100 and num_items(Items.Gold) < 2100:
    + 		maze()
    + 	elif c > 1500 and num_items(Items.Pumpkin) < c:
      		pumpkins()
      	else:
    
    Write result the agent saw
    Saved h (124 lines).
    Game time: 42m 57s elapsed, 5h 17m 3s of budget remaining.
    run_program at 42m 57s for 120s (agent saw)
    Ran h for 2m of game time; it is still running.
    Inventory change: carrot +388, fertilizer +24, gold +2112, hay +128, power +344.60, water +20, weird_substance -264, wood -396.
    Game time: 45m 7s elapsed, 5h 14m 53s of budget remaining.
    Output:
    (none)
  14. r1346m 07sRan173 lines · +125 −76 · ran 3m 34s
    GOLD_TARGET = 8100
    
    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.5 and num_items(Items.Water) > 0:
    		use_item(Items.Water)
    
    def par(task):
    	n = get_world_size()
    	k = max_drones()
    	if k > n:
    		k = n
    	wd = (n + k - 1) // k
    	hs = []
    	i = 1
    	while i * wd < n:
    		x1 = (i + 1) * wd
    		if x1 > n:
    			x1 = n
    		hs.append(spawn_drone(task, i * wd, x1))
    		i = i + 1
    	res = [task(0, wd)]
    	for h in hs:
    		if h != None:
    			res.append(wait_for(h))
    	return res
    
    def mixed_tile():
    	if can_harvest():
    		harvest()
    	h = num_items(Items.Hay)
    	w = num_items(Items.Wood)
    	c = num_items(Items.Carrot)
    	e = get_entity_type()
    	if e == Entities.Dead_Pumpkin or e == Entities.Sunflower:
    		harvest()
    		e = None
    	if e == None or e == Entities.Grass:
    		if (get_pos_x() + get_pos_y()) % 2 == 0 and w < 4 * h + 600:
    			plant(Entities.Tree)
    			water()
    			if num_items(Items.Fertilizer) > 0 and num_items(Items.Weird_Substance) < 3000:
    				use_item(Items.Fertilizer)
    		elif c <= h:
    			if get_ground_type() != Grounds.Soil:
    				till()
    			plant(Entities.Carrot)
    		else:
    			if get_ground_type() == Grounds.Soil:
    				till()
    
    def strip(x0, x1, fn):
    	n = get_world_size()
    	goto(x0, 0)
    	tot = 0
    	for x in range(x0, x1):
    		for y in range(n):
    			tot = tot + fn()
    			move(North)
    		if x < x1 - 1:
    			move(East)
    	return tot
    
    def mixed_fn():
    	mixed_tile()
    	return 0
    
    def mixed_task(x0, x1):
    	strip(x0, x1, mixed_fn)
    
    def pump_fn():
    	e = get_entity_type()
    	if e != Entities.Pumpkin:
    		if e != None and e != Entities.Dead_Pumpkin:
    			harvest()
    		if get_ground_type() != Grounds.Soil:
    			till()
    		plant(Entities.Pumpkin)
    		water()
    		return 1
    	if not can_harvest():
    		return 1
    	return 0
    
    def pump_task(x0, x1):
    	while strip(x0, x1, pump_fn) > 0:
    		pass
    
    def pumpkins():
    	par(pump_task)
    	harvest()
    
    def sun_task(x0, x1):
    	n = get_world_size()
    	buckets = []
    	for i in range(16):
    		buckets.append([])
    	goto(x0, 0)
    	for x in range(x0, x1):
    		for y in range(n):
    			if get_entity_type() != None:
    				harvest()
    			if get_ground_type() != Grounds.Soil:
    				till()
    			plant(Entities.Sunflower)
    			water()
    			buckets[measure()].append((x, y))
    			move(North)
    		if x < x1 - 1:
    			move(East)
    	return buckets
    
    def sunflowers():
    	res = par(sun_task)
    	p = 15
    	while p >= 7:
    		for b in res:
    			for pos in b[p]:
    				goto(pos[0], pos[1])
    				while not can_harvest():
    					pass
    				harvest()
    		p = p - 1
    
    def solve(turn):
    	dirs = [North, East, South, West]
    	d = 0
    	while True:
    		e = get_entity_type()
    		if e == Entities.Treasure:
    			harvest()
    			return
    		if e != Entities.Hedge:
    			return
    		r = (d + turn) % 4
    		if move(dirs[r]):
    			d = r
    		elif not move(dirs[d]):
    			l = (d + 4 - turn) % 4
    			if move(dirs[l]):
    				d = l
    			else:
    				d = (d + 2) % 4
    				move(dirs[d])
    
    def maze():
    	harvest()
    	plant(Entities.Bush)
    	use_item(Items.Weird_Substance, get_world_size() * 2 ** (num_unlocked(Unlocks.Mazes) - 1))
    	h = spawn_drone(solve, 3)
    	solve(1)
    	if h != None:
    		wait_for(h)
    
    while True:
    	c = num_items(Items.Carrot)
    	if num_items(Items.Power) < 100 and c > 100:
    		sunflowers()
    	elif num_items(Items.Weird_Substance) >= 100 and num_items(Items.Gold) < GOLD_TARGET:
    		maze()
    	elif c > 1500 and num_items(Items.Pumpkin) < c:
    		pumpkins()
    	else:
    		par(mixed_task)
    Changes from the previous revision
    - def step():
    - 	move(North)
    - 	if get_pos_y() == 0:
    - 		move(East)
    + GOLD_TARGET = 8100
      
      def goto(x, y):
      		use_item(Items.Water)
      
    - def mixed():
    - 	n = get_world_size() * get_world_size()
    - 	i = 0
    - 	while i < n:
    + def par(task):
    + 	n = get_world_size()
    + 	k = max_drones()
    + 	if k > n:
    + 		k = n
    + 	wd = (n + k - 1) // k
    + 	hs = []
    + 	i = 1
    + 	while i * wd < n:
    + 		x1 = (i + 1) * wd
    + 		if x1 > n:
    + 			x1 = n
    + 		hs.append(spawn_drone(task, i * wd, x1))
      		i = i + 1
    - 		if can_harvest():
    - 			harvest()
    - 		h = num_items(Items.Hay)
    - 		w = num_items(Items.Wood)
    - 		c = num_items(Items.Carrot)
    - 		e = get_entity_type()
    - 		if e == Entities.Dead_Pumpkin or e == Entities.Sunflower:
    + 	res = [task(0, wd)]
    + 	for h in hs:
    + 		if h != None:
    + 			res.append(wait_for(h))
    + 	return res
    + 
    + def mixed_tile():
    + 	if can_harvest():
    + 		harvest()
    + 	h = num_items(Items.Hay)
    + 	w = num_items(Items.Wood)
    + 	c = num_items(Items.Carrot)
    + 	e = get_entity_type()
    + 	if e == Entities.Dead_Pumpkin or e == Entities.Sunflower:
    + 		harvest()
    + 		e = None
    + 	if e == None or e == Entities.Grass:
    + 		if (get_pos_x() + get_pos_y()) % 2 == 0 and w < 4 * h + 600:
    + 			plant(Entities.Tree)
    + 			water()
    + 			if num_items(Items.Fertilizer) > 0 and num_items(Items.Weird_Substance) < 3000:
    + 				use_item(Items.Fertilizer)
    + 		elif c <= h:
    + 			if get_ground_type() != Grounds.Soil:
    + 				till()
    + 			plant(Entities.Carrot)
    + 		else:
    + 			if get_ground_type() == Grounds.Soil:
    + 				till()
    + 
    + def strip(x0, x1, fn):
    + 	n = get_world_size()
    + 	goto(x0, 0)
    + 	tot = 0
    + 	for x in range(x0, x1):
    + 		for y in range(n):
    + 			tot = tot + fn()
    + 			move(North)
    + 		if x < x1 - 1:
    + 			move(East)
    + 	return tot
    + 
    + def mixed_fn():
    + 	mixed_tile()
    + 	return 0
    + 
    + def mixed_task(x0, x1):
    + 	strip(x0, x1, mixed_fn)
    + 
    + def pump_fn():
    + 	e = get_entity_type()
    + 	if e != Entities.Pumpkin:
    + 		if e != None and e != Entities.Dead_Pumpkin:
      			harvest()
    - 			e = None
    - 		if e == None or e == Entities.Grass:
    - 			if (get_pos_x() + get_pos_y()) % 2 == 0 and w < 4 * h + 600:
    - 				plant(Entities.Tree)
    - 				water()
    - 				if num_items(Items.Fertilizer) > 0 and num_items(Items.Weird_Substance) < 3000:
    - 					use_item(Items.Fertilizer)
    - 			elif c <= h:
    - 				if get_ground_type() != Grounds.Soil:
    - 					till()
    - 				plant(Entities.Carrot)
    - 			else:
    - 				if get_ground_type() == Grounds.Soil:
    - 					till()
    - 		step()
    + 		if get_ground_type() != Grounds.Soil:
    + 			till()
    + 		plant(Entities.Pumpkin)
    + 		water()
    + 		return 1
    + 	if not can_harvest():
    + 		return 1
    + 	return 0
      
    + def pump_task(x0, x1):
    + 	while strip(x0, x1, pump_fn) > 0:
    + 		pass
    + 
      def pumpkins():
    - 	n = get_world_size() * get_world_size()
    - 	bad = 1
    - 	while bad > 0:
    - 		bad = 0
    - 		i = 0
    - 		while i < n:
    - 			i = i + 1
    - 			e = get_entity_type()
    - 			if e != Entities.Pumpkin:
    - 				if e != None and e != Entities.Dead_Pumpkin:
    - 					harvest()
    - 				if get_ground_type() != Grounds.Soil:
    - 					till()
    - 				plant(Entities.Pumpkin)
    - 				water()
    - 				bad = bad + 1
    - 			elif not can_harvest():
    - 				bad = bad + 1
    - 			step()
    + 	par(pump_task)
      	harvest()
      
    - def sunflowers():
    + def sun_task(x0, x1):
      	n = get_world_size()
      	buckets = []
      	for i in range(16):
      		buckets.append([])
    - 	for i in range(n * n):
    - 		if get_entity_type() != None:
    - 			harvest()
    - 		if get_ground_type() != Grounds.Soil:
    - 			till()
    - 		plant(Entities.Sunflower)
    - 		water()
    - 		buckets[measure()].append((get_pos_x(), get_pos_y()))
    - 		step()
    + 	goto(x0, 0)
    + 	for x in range(x0, x1):
    + 		for y in range(n):
    + 			if get_entity_type() != None:
    + 				harvest()
    + 			if get_ground_type() != Grounds.Soil:
    + 				till()
    + 			plant(Entities.Sunflower)
    + 			water()
    + 			buckets[measure()].append((x, y))
    + 			move(North)
    + 		if x < x1 - 1:
    + 			move(East)
    + 	return buckets
    + 
    + def sunflowers():
    + 	res = par(sun_task)
      	p = 15
      	while p >= 7:
    - 		for pos in buckets[p]:
    - 			goto(pos[0], pos[1])
    - 			while not can_harvest():
    - 				pass
    - 			harvest()
    + 		for b in res:
    + 			for pos in b[p]:
    + 				goto(pos[0], pos[1])
    + 				while not can_harvest():
    + 					pass
    + 				harvest()
      		p = p - 1
      
    - def maze():
    - 	harvest()
    - 	plant(Entities.Bush)
    - 	use_item(Items.Weird_Substance, get_world_size() * 2 ** (num_unlocked(Unlocks.Mazes) - 1))
    + def solve(turn):
      	dirs = [North, East, South, West]
      	d = 0
    - 	while get_entity_type() != Entities.Treasure:
    - 		r = (d + 1) % 4
    + 	while True:
    + 		e = get_entity_type()
    + 		if e == Entities.Treasure:
    + 			harvest()
    + 			return
    + 		if e != Entities.Hedge:
    + 			return
    + 		r = (d + turn) % 4
      		if move(dirs[r]):
      			d = r
    - 		elif move(dirs[d]):
    - 			pass
    - 		else:
    - 			l = (d + 3) % 4
    + 		elif not move(dirs[d]):
    + 			l = (d + 4 - turn) % 4
      			if move(dirs[l]):
      				d = l
      				d = (d + 2) % 4
      				move(dirs[d])
    + 
    + def maze():
      	harvest()
    + 	plant(Entities.Bush)
    + 	use_item(Items.Weird_Substance, get_world_size() * 2 ** (num_unlocked(Unlocks.Mazes) - 1))
    + 	h = spawn_drone(solve, 3)
    + 	solve(1)
    + 	if h != None:
    + 		wait_for(h)
      
      while True:
      	if num_items(Items.Power) < 100 and c > 100:
      		sunflowers()
    - 	elif num_items(Items.Weird_Substance) >= 100 and num_items(Items.Gold) < 2100:
    + 	elif num_items(Items.Weird_Substance) >= 100 and num_items(Items.Gold) < GOLD_TARGET:
      		maze()
      	elif c > 1500 and num_items(Items.Pumpkin) < c:
      		pumpkins()
      	else:
    - 		mixed()
    + 		par(mixed_task)
    
    Write result the agent saw
    Saved h (173 lines).
    Game time: 46m 17s elapsed, 5h 13m 43s of budget remaining.
    run_program at 46m 17s for 120s (agent saw)
    Ran h for 2m of game time; it is still running.
    Inventory change: carrot -44, fertilizer -39, gold +4224, hay +1044, power +231.49, water -66, weird_substance +32, wood +428.
    Game time: 48m 27s elapsed, 5h 11m 33s of budget remaining.
    Output:
    (none)
  15. r1450m 01sRan176 lines · +7 −4 · ran 3m 20s
    GOLD_TARGET = 32100
    PUMP_TARGET = 8100
    
    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.5 and num_items(Items.Water) > 0:
    		use_item(Items.Water)
    
    def par(task):
    	n = get_world_size()
    	k = max_drones()
    	if k > n:
    		k = n
    	wd = (n + k - 1) // k
    	hs = []
    	i = 1
    	while i * wd < n:
    		x1 = (i + 1) * wd
    		if x1 > n:
    			x1 = n
    		hs.append(spawn_drone(task, i * wd, x1))
    		i = i + 1
    	res = [task(0, wd)]
    	for h in hs:
    		if h != None:
    			res.append(wait_for(h))
    	return res
    
    def mixed_tile():
    	if can_harvest():
    		harvest()
    	h = num_items(Items.Hay)
    	w = num_items(Items.Wood)
    	c = num_items(Items.Carrot)
    	e = get_entity_type()
    	if e == Entities.Dead_Pumpkin or e == Entities.Sunflower:
    		harvest()
    		e = None
    	if e == None or e == Entities.Grass:
    		if (get_pos_x() + get_pos_y()) % 2 == 0 and w < 4 * h + 600:
    			plant(Entities.Tree)
    			water()
    			if num_items(Items.Fertilizer) > 0 and num_items(Items.Weird_Substance) < 3000:
    				use_item(Items.Fertilizer)
    		elif c <= h:
    			if get_ground_type() != Grounds.Soil:
    				till()
    			plant(Entities.Carrot)
    			water()
    		else:
    			if get_ground_type() == Grounds.Soil:
    				till()
    
    def strip(x0, x1, fn):
    	n = get_world_size()
    	goto(x0, 0)
    	tot = 0
    	for x in range(x0, x1):
    		for y in range(n):
    			tot = tot + fn()
    			move(North)
    		if x < x1 - 1:
    			move(East)
    	return tot
    
    def mixed_fn():
    	mixed_tile()
    	return 0
    
    def mixed_task(x0, x1):
    	strip(x0, x1, mixed_fn)
    
    def pump_fn():
    	e = get_entity_type()
    	if e != Entities.Pumpkin:
    		if e != None and e != Entities.Dead_Pumpkin:
    			harvest()
    		if get_ground_type() != Grounds.Soil:
    			till()
    		plant(Entities.Pumpkin)
    		water()
    		return 1
    	if not can_harvest():
    		return 1
    	return 0
    
    def pump_task(x0, x1):
    	while strip(x0, x1, pump_fn) > 0:
    		pass
    
    def pumpkins():
    	par(pump_task)
    	harvest()
    
    def sun_task(x0, x1):
    	n = get_world_size()
    	buckets = []
    	for i in range(16):
    		buckets.append([])
    	goto(x0, 0)
    	for x in range(x0, x1):
    		for y in range(n):
    			if get_entity_type() != None:
    				harvest()
    			if get_ground_type() != Grounds.Soil:
    				till()
    			plant(Entities.Sunflower)
    			water()
    			buckets[measure()].append((x, y))
    			move(North)
    		if x < x1 - 1:
    			move(East)
    	return buckets
    
    def sunflowers():
    	res = par(sun_task)
    	p = 15
    	while p >= 7:
    		for b in res:
    			for pos in b[p]:
    				goto(pos[0], pos[1])
    				while not can_harvest():
    					pass
    				harvest()
    		p = p - 1
    
    def solve(turn):
    	dirs = [North, East, South, West]
    	d = 0
    	while True:
    		e = get_entity_type()
    		if e == Entities.Treasure:
    			harvest()
    			return
    		if e != Entities.Hedge:
    			return
    		r = (d + turn) % 4
    		if move(dirs[r]):
    			d = r
    		elif not move(dirs[d]):
    			l = (d + 4 - turn) % 4
    			if move(dirs[l]):
    				d = l
    			else:
    				d = (d + 2) % 4
    				move(dirs[d])
    
    def maze():
    	harvest()
    	plant(Entities.Bush)
    	use_item(Items.Weird_Substance, get_world_size() * 2 ** (num_unlocked(Unlocks.Mazes) - 1))
    	h = spawn_drone(solve, 3)
    	solve(1)
    	if h != None:
    		wait_for(h)
    
    while True:
    	c = num_items(Items.Carrot)
    	pneed = num_items(Items.Pumpkin) < PUMP_TARGET
    	if num_items(Items.Power) < 100 and c > 100:
    		sunflowers()
    	elif pneed and c > 400:
    		pumpkins()
    	elif not pneed and num_items(Items.Weird_Substance) >= 100 and num_items(Items.Gold) < GOLD_TARGET:
    		maze()
    	else:
    		par(mixed_task)
    Changes from the previous revision
    - GOLD_TARGET = 8100
    + GOLD_TARGET = 32100
    + PUMP_TARGET = 8100
      
      def goto(x, y):
      				till()
      			plant(Entities.Carrot)
    + 			water()
      		else:
      			if get_ground_type() == Grounds.Soil:
      while True:
      	c = num_items(Items.Carrot)
    + 	pneed = num_items(Items.Pumpkin) < PUMP_TARGET
      	if num_items(Items.Power) < 100 and c > 100:
      		sunflowers()
    - 	elif num_items(Items.Weird_Substance) >= 100 and num_items(Items.Gold) < GOLD_TARGET:
    - 		maze()
    - 	elif c > 1500 and num_items(Items.Pumpkin) < c:
    + 	elif pneed and c > 400:
      		pumpkins()
    + 	elif not pneed and num_items(Items.Weird_Substance) >= 100 and num_items(Items.Gold) < GOLD_TARGET:
    + 		maze()
      	else:
      		par(mixed_task)
    
    Write result the agent saw
    Saved h (176 lines).
    Game time: 50m 11s elapsed, 5h 9m 49s of budget remaining.
    run_program at 50m 11s for 180s (agent saw)
    Ran h for 3m of game time; it is still running.
    Inventory change: fertilizer +36, power -333.88, water +72.
    Game time: 53m 21s elapsed, 5h 6m 39s of budget remaining.
    Output:
    (none)
  16. r1553m 41sRanFinal180 lines · +4 −0 · ran 3m 20s
    GOLD_TARGET = 32100
    PUMP_TARGET = 8100
    
    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.5 and num_items(Items.Water) > 0:
    		use_item(Items.Water)
    
    def par(task):
    	n = get_world_size()
    	k = max_drones()
    	if k > n:
    		k = n
    	wd = (n + k - 1) // k
    	hs = []
    	i = 1
    	while i * wd < n:
    		x1 = (i + 1) * wd
    		if x1 > n:
    			x1 = n
    		hs.append(spawn_drone(task, i * wd, x1))
    		i = i + 1
    	res = [task(0, wd)]
    	for h in hs:
    		if h != None:
    			res.append(wait_for(h))
    	return res
    
    def mixed_tile():
    	if can_harvest():
    		harvest()
    	h = num_items(Items.Hay)
    	w = num_items(Items.Wood)
    	c = num_items(Items.Carrot)
    	e = get_entity_type()
    	if e == Entities.Dead_Pumpkin or e == Entities.Sunflower:
    		harvest()
    		e = None
    	if e == None or e == Entities.Grass:
    		if (get_pos_x() + get_pos_y()) % 2 == 0 and w < 4 * h + 600:
    			plant(Entities.Tree)
    			water()
    			if num_items(Items.Fertilizer) > 0 and num_items(Items.Weird_Substance) < 3000:
    				use_item(Items.Fertilizer)
    		elif c <= h:
    			if get_ground_type() != Grounds.Soil:
    				till()
    			plant(Entities.Carrot)
    			water()
    		else:
    			if get_ground_type() == Grounds.Soil:
    				till()
    
    def strip(x0, x1, fn):
    	n = get_world_size()
    	goto(x0, 0)
    	tot = 0
    	for x in range(x0, x1):
    		for y in range(n):
    			tot = tot + fn()
    			move(North)
    		if x < x1 - 1:
    			move(East)
    	return tot
    
    def mixed_fn():
    	mixed_tile()
    	return 0
    
    def mixed_task(x0, x1):
    	strip(x0, x1, mixed_fn)
    
    def pump_fn():
    	e = get_entity_type()
    	if e != Entities.Pumpkin:
    		if e != None and e != Entities.Dead_Pumpkin:
    			harvest()
    		if get_ground_type() != Grounds.Soil:
    			till()
    		plant(Entities.Pumpkin)
    		water()
    		return 1
    	if not can_harvest():
    		return 1
    	return 0
    
    def pump_task(x0, x1):
    	while strip(x0, x1, pump_fn) > 0:
    		pass
    
    def pumpkins():
    	par(pump_task)
    	harvest()
    
    def sun_task(x0, x1):
    	n = get_world_size()
    	buckets = []
    	for i in range(16):
    		buckets.append([])
    	goto(x0, 0)
    	for x in range(x0, x1):
    		for y in range(n):
    			if get_entity_type() != None:
    				harvest()
    			if get_ground_type() != Grounds.Soil:
    				till()
    			plant(Entities.Sunflower)
    			water()
    			buckets[measure()].append((x, y))
    			move(North)
    		if x < x1 - 1:
    			move(East)
    	return buckets
    
    def sunflowers():
    	res = par(sun_task)
    	p = 15
    	while p >= 7:
    		for b in res:
    			for pos in b[p]:
    				goto(pos[0], pos[1])
    				while not can_harvest():
    					pass
    				harvest()
    		p = p - 1
    
    def solve(turn):
    	dirs = [North, East, South, West]
    	d = 0
    	while True:
    		e = get_entity_type()
    		if e == Entities.Treasure:
    			harvest()
    			return
    		if e != Entities.Hedge:
    			return
    		r = (d + turn) % 4
    		if move(dirs[r]):
    			d = r
    		elif not move(dirs[d]):
    			l = (d + 4 - turn) % 4
    			if move(dirs[l]):
    				d = l
    			else:
    				d = (d + 2) % 4
    				move(dirs[d])
    
    def maze():
    	harvest()
    	plant(Entities.Bush)
    	use_item(Items.Weird_Substance, get_world_size() * 2 ** (num_unlocked(Unlocks.Mazes) - 1))
    	h = spawn_drone(solve, 3)
    	solve(1)
    	if h != None:
    		wait_for(h)
    
    e0 = get_entity_type()
    if e0 == Entities.Hedge or e0 == Entities.Treasure:
    	solve(1)
    
    while True:
    	c = num_items(Items.Carrot)
    	pneed = num_items(Items.Pumpkin) < PUMP_TARGET
    	if num_items(Items.Power) < 100 and c > 100:
    		sunflowers()
    	elif pneed and c > 400:
    		pumpkins()
    	elif not pneed and num_items(Items.Weird_Substance) >= 100 and num_items(Items.Gold) < GOLD_TARGET:
    		maze()
    	else:
    		par(mixed_task)
    Changes from the previous revision
      		wait_for(h)
      
    + e0 = get_entity_type()
    + if e0 == Entities.Hedge or e0 == Entities.Treasure:
    + 	solve(1)
    + 
      while True:
      	c = num_items(Items.Carrot)
    
    Write result the agent saw
    Saved h (180 lines).
    Game time: 53m 51s elapsed, 5h 6m 9s of budget remaining.
    run_program at 53m 51s for 180s (agent saw)
    Ran h for 3m of game time; it is still running.
    Inventory change: carrot -880, fertilizer -30, gold +4032, hay +532, power +501.61, pumpkin +6144, water -93, weird_substance +836, wood +2084.
    Game time: 57m 1s elapsed, 5h 2m 59s of budget remaining.
    Output:
    (none)
f.py2 writes · 0 ran · first at 57m 21s
  1. r157m 21sSaved, never run169 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.5 and num_items(Items.Water) > 0:
    		use_item(Items.Water)
    
    def par(task):
    	n = get_world_size()
    	k = max_drones()
    	if k > n:
    		k = n
    	wd = (n + k - 1) // k
    	hs = []
    	i = 1
    	while i * wd < n:
    		x1 = (i + 1) * wd
    		if x1 > n:
    			x1 = n
    		hs.append(spawn_drone(task, i * wd, x1))
    		i = i + 1
    	res = [task(0, wd)]
    	for h in hs:
    		if h != None:
    			res.append(wait_for(h))
    	return res
    
    def mixed_tile():
    	if can_harvest():
    		harvest()
    	h = num_items(Items.Hay)
    	w = num_items(Items.Wood)
    	c = num_items(Items.Carrot)
    	e = get_entity_type()
    	if e == Entities.Dead_Pumpkin or e == Entities.Sunflower:
    		harvest()
    		e = None
    	if e == None or e == Entities.Grass:
    		if (get_pos_x() + get_pos_y()) % 2 == 0 and w < 4 * h + 600:
    			plant(Entities.Tree)
    			water()
    			if num_items(Items.Fertilizer) > 0 and num_items(Items.Weird_Substance) < 5000:
    				use_item(Items.Fertilizer)
    		elif c <= h:
    			if get_ground_type() != Grounds.Soil:
    				till()
    			plant(Entities.Carrot)
    			water()
    		else:
    			if get_ground_type() == Grounds.Soil:
    				till()
    
    def strip(x0, x1, fn):
    	n = get_world_size()
    	goto(x0, 0)
    	tot = 0
    	for x in range(x0, x1):
    		for y in range(n):
    			tot = tot + fn()
    			move(North)
    		if x < x1 - 1:
    			move(East)
    	return tot
    
    def mixed_fn():
    	mixed_tile()
    	return 0
    
    def mixed_task(x0, x1):
    	strip(x0, x1, mixed_fn)
    
    def mixed():
    	par(mixed_task)
    
    def pump_fn():
    	e = get_entity_type()
    	if e != Entities.Pumpkin:
    		if e != None and e != Entities.Dead_Pumpkin:
    			harvest()
    		if get_ground_type() != Grounds.Soil:
    			till()
    		plant(Entities.Pumpkin)
    		water()
    		return 1
    	if not can_harvest():
    		return 1
    	return 0
    
    def pump_task(x0, x1):
    	while strip(x0, x1, pump_fn) > 0:
    		pass
    
    def pumpkins():
    	par(pump_task)
    	harvest()
    
    def sun_task(x0, x1):
    	n = get_world_size()
    	buckets = []
    	for i in range(16):
    		buckets.append([])
    	goto(x0, 0)
    	for x in range(x0, x1):
    		for y in range(n):
    			if get_entity_type() != None:
    				harvest()
    			if get_ground_type() != Grounds.Soil:
    				till()
    			plant(Entities.Sunflower)
    			water()
    			buckets[measure()].append((x, y))
    			move(North)
    		if x < x1 - 1:
    			move(East)
    	return buckets
    
    def sunflowers():
    	res = par(sun_task)
    	p = 15
    	while p >= 7:
    		for b in res:
    			for pos in b[p]:
    				goto(pos[0], pos[1])
    				while not can_harvest():
    					pass
    				harvest()
    		p = p - 1
    
    def solve(turn):
    	dirs = [North, East, South, West]
    	d = 0
    	while True:
    		e = get_entity_type()
    		if e == Entities.Treasure:
    			harvest()
    			return
    		if e != Entities.Hedge:
    			return
    		r = (d + turn) % 4
    		if move(dirs[r]):
    			d = r
    		elif not move(dirs[d]):
    			l = (d + 4 - turn) % 4
    			if move(dirs[l]):
    				d = l
    			else:
    				d = (d + 2) % 4
    				move(dirs[d])
    
    def maze():
    	harvest()
    	plant(Entities.Bush)
    	use_item(Items.Weird_Substance, get_world_size() * 2 ** (num_unlocked(Unlocks.Mazes) - 1))
    	h = spawn_drone(solve, 3)
    	solve(1)
    	if h != None:
    		wait_for(h)
    
    def init():
    	e0 = get_entity_type()
    	if e0 == Entities.Hedge or e0 == Entities.Treasure:
    		solve(1)
    Write result the agent saw
    Saved f (169 lines).
    Game time: 57m 31s elapsed, 5h 2m 29s of budget remaining.
  2. r21h 09mSaved, never runFinal174 lines · +8 −3
    WCAP = 4000
    
    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.5 and num_items(Items.Water) > 0:
    		use_item(Items.Water)
    
    def par(task):
    	n = get_world_size()
    	k = max_drones()
    	if k > n:
    		k = n
    	wd = (n + k - 1) // k
    	hs = []
    	i = 1
    	while i * wd < n:
    		x1 = (i + 1) * wd
    		if x1 > n:
    			x1 = n
    		hs.append(spawn_drone(task, i * wd, x1))
    		i = i + 1
    	res = [task(0, wd)]
    	for h in hs:
    		if h != None:
    			res.append(wait_for(h))
    	return res
    
    def mixed_tile():
    	e = get_entity_type()
    	if can_harvest():
    		if e == Entities.Tree:
    			ws = num_items(Items.Weird_Substance)
    			if ws > 0 and ws < WCAP:
    				use_item(Items.Weird_Substance)
    		harvest()
    		e = get_entity_type()
    	h = num_items(Items.Hay)
    	w = num_items(Items.Wood)
    	c = num_items(Items.Carrot)
    	if e == Entities.Dead_Pumpkin or e == Entities.Sunflower:
    		harvest()
    		e = None
    	if e == None or e == Entities.Grass:
    		if (get_pos_x() + get_pos_y()) % 2 == 0 and w < 4 * h + 600:
    			plant(Entities.Tree)
    			water()
    		elif c <= h:
    			if get_ground_type() != Grounds.Soil:
    				till()
    			plant(Entities.Carrot)
    			water()
    		else:
    			if get_ground_type() == Grounds.Soil:
    				till()
    
    def strip(x0, x1, fn):
    	n = get_world_size()
    	goto(x0, 0)
    	tot = 0
    	for x in range(x0, x1):
    		for y in range(n):
    			tot = tot + fn()
    			move(North)
    		if x < x1 - 1:
    			move(East)
    	return tot
    
    def mixed_fn():
    	mixed_tile()
    	return 0
    
    def mixed_task(x0, x1):
    	strip(x0, x1, mixed_fn)
    
    def mixed():
    	par(mixed_task)
    
    def pump_fn():
    	e = get_entity_type()
    	if e != Entities.Pumpkin:
    		if e != None and e != Entities.Dead_Pumpkin:
    			harvest()
    		if get_ground_type() != Grounds.Soil:
    			till()
    		plant(Entities.Pumpkin)
    		water()
    		return 1
    	if not can_harvest():
    		return 1
    	return 0
    
    def pump_task(x0, x1):
    	while strip(x0, x1, pump_fn) > 0:
    		pass
    
    def pumpkins():
    	par(pump_task)
    	harvest()
    
    def sun_task(x0, x1):
    	n = get_world_size()
    	buckets = []
    	for i in range(16):
    		buckets.append([])
    	goto(x0, 0)
    	for x in range(x0, x1):
    		for y in range(n):
    			if get_entity_type() != None:
    				harvest()
    			if get_ground_type() != Grounds.Soil:
    				till()
    			plant(Entities.Sunflower)
    			water()
    			buckets[measure()].append((x, y))
    			move(North)
    		if x < x1 - 1:
    			move(East)
    	return buckets
    
    def sunflowers():
    	res = par(sun_task)
    	p = 15
    	while p >= 7:
    		for b in res:
    			for pos in b[p]:
    				goto(pos[0], pos[1])
    				while not can_harvest():
    					pass
    				harvest()
    		p = p - 1
    
    def solve(turn):
    	dirs = [North, East, South, West]
    	d = 0
    	while True:
    		e = get_entity_type()
    		if e == Entities.Treasure:
    			harvest()
    			return
    		if e != Entities.Hedge:
    			return
    		r = (d + turn) % 4
    		if move(dirs[r]):
    			d = r
    		elif not move(dirs[d]):
    			l = (d + 4 - turn) % 4
    			if move(dirs[l]):
    				d = l
    			else:
    				d = (d + 2) % 4
    				move(dirs[d])
    
    def maze():
    	harvest()
    	plant(Entities.Bush)
    	use_item(Items.Weird_Substance, get_world_size() * 2 ** (num_unlocked(Unlocks.Mazes) - 1))
    	h = spawn_drone(solve, 3)
    	solve(1)
    	if h != None:
    		wait_for(h)
    
    def init():
    	e0 = get_entity_type()
    	if e0 == Entities.Hedge or e0 == Entities.Treasure:
    		solve(1)
    Changes from the previous revision
    + WCAP = 4000
    + 
      def goto(x, y):
      	while get_pos_x() < x:
      
      def mixed_tile():
    + 	e = get_entity_type()
      	if can_harvest():
    + 		if e == Entities.Tree:
    + 			ws = num_items(Items.Weird_Substance)
    + 			if ws > 0 and ws < WCAP:
    + 				use_item(Items.Weird_Substance)
      		harvest()
    + 		e = get_entity_type()
      	h = num_items(Items.Hay)
      	w = num_items(Items.Wood)
      	c = num_items(Items.Carrot)
    - 	e = get_entity_type()
      	if e == Entities.Dead_Pumpkin or e == Entities.Sunflower:
      		harvest()
      			plant(Entities.Tree)
      			water()
    - 			if num_items(Items.Fertilizer) > 0 and num_items(Items.Weird_Substance) < 5000:
    - 				use_item(Items.Fertilizer)
      		elif c <= h:
      			if get_ground_type() != Grounds.Soil:
    
    Write result the agent saw
    Saved f (174 lines).
    Game time: 1h 9m 16s elapsed, 4h 50m 44s of budget remaining.
m.py20 writes · 20 ran · first at 57m 31s
  1. r157m 31sRan15 lines · ran 11m 15s
    from f import *
    GOLD_TARGET = 32100
    PUMP_TARGET = 0
    init()
    while True:
    	c = num_items(Items.Carrot)
    	pneed = num_items(Items.Pumpkin) < PUMP_TARGET
    	if num_items(Items.Power) < 100 and c > 100:
    		sunflowers()
    	elif pneed and c > 400:
    		pumpkins()
    	elif not pneed and num_items(Items.Weird_Substance) >= 100 and num_items(Items.Gold) < GOLD_TARGET:
    		maze()
    	else:
    		mixed()
    Write result the agent saw
    Saved m (15 lines).
    Game time: 57m 41s elapsed, 5h 2m 19s of budget remaining.
    run_program at 57m 41s for 120s (agent saw)
    Ran m for 2m of game time; it is still running.
    Inventory change: fertilizer +24, gold +5760, power -236.85, pumpkin +2, water +96, weird_substance -492.
    Game time: 59m 51s elapsed, 5h 9s of budget remaining.
    Output:
    (none)
  2. r21h 09mRan15 lines · +3 −3 · ran 3m 50s
    from f import *
    GOLD_TARGET = 0
    PUMP_TARGET = 11000
    init()
    while True:
    	c = num_items(Items.Carrot)
    	pneed = num_items(Items.Pumpkin) < PUMP_TARGET
    	if num_items(Items.Power) < 100 and c > 100:
    		sunflowers()
    	elif pneed and c > 1000:
    		pumpkins()
    	elif not pneed and num_items(Items.Weird_Substance) >= 100 and num_items(Items.Gold) < GOLD_TARGET:
    		maze()
    	else:
    		mixed()
    Changes from the previous revision
      from f import *
    - GOLD_TARGET = 32100
    - PUMP_TARGET = 0
    + GOLD_TARGET = 0
    + PUMP_TARGET = 11000
      init()
      while True:
      	if num_items(Items.Power) < 100 and c > 100:
      		sunflowers()
    - 	elif pneed and c > 400:
    + 	elif pneed and c > 1000:
      		pumpkins()
      	elif not pneed and num_items(Items.Weird_Substance) >= 100 and num_items(Items.Gold) < GOLD_TARGET:
    
    Write result the agent saw
    Saved m (15 lines).
    Game time: 1h 9m 26s elapsed, 4h 50m 34s of budget remaining.
    run_program at 1h 09m for 180s (agent saw)
    Ran m for 3m of game time; it is still running.
    Inventory change: carrot +6484, fertilizer +36, gold +144, hay +1240, power +357.33, pumpkin +12096, water -47, weird_substance +2728, wood +23220.
    Game time: 1h 12m 36s elapsed, 4h 47m 24s of budget remaining.
    Output:
    Warning: Tried to use Items.Water but didn't have enough of it.
    In: pump_task <- strip <- pump_fn <- water
    use_item(Items.Water)
            ^^           
    --------------------------------------------------------------------
    Warning: Tried to use Items.Water but didn't have enough of it.
    In: mixed_task <- strip <- mixed_fn <- mixed_tile <- water <- ...
    use_item(Items.Water)
            ^^           
    --------------------------------------------------------------------
  3. r31h 13mRan20 lines · +7 −2 · ran 2m 50s
    from f import *
    from c import *
    GOLD_TARGET = 0
    PUMP_TARGET = 5000
    CACT_TARGET = 15000
    init()
    while True:
    	c = num_items(Items.Carrot)
    	p = num_items(Items.Pumpkin)
    	pneed = p < PUMP_TARGET
    	if num_items(Items.Power) < 100 and c > 100:
    		sunflowers()
    	elif pneed and c > 1000:
    		pumpkins()
    	elif p > 1000 and num_items(Items.Cactus) < CACT_TARGET:
    		cactus()
    	elif not pneed and num_items(Items.Weird_Substance) >= 100 and num_items(Items.Gold) < GOLD_TARGET:
    		maze()
    	else:
    		mixed()
    Changes from the previous revision
      from f import *
    + from c import *
      GOLD_TARGET = 0
    - PUMP_TARGET = 11000
    + PUMP_TARGET = 5000
    + CACT_TARGET = 15000
      init()
      while True:
      	c = num_items(Items.Carrot)
    - 	pneed = num_items(Items.Pumpkin) < PUMP_TARGET
    + 	p = num_items(Items.Pumpkin)
    + 	pneed = p < PUMP_TARGET
      	if num_items(Items.Power) < 100 and c > 100:
      		sunflowers()
      	elif pneed and c > 1000:
      		pumpkins()
    + 	elif p > 1000 and num_items(Items.Cactus) < CACT_TARGET:
    + 		cactus()
      	elif not pneed and num_items(Items.Weird_Substance) >= 100 and num_items(Items.Gold) < GOLD_TARGET:
      		maze()
    
    Write result the agent saw
    Saved m (20 lines).
    Game time: 1h 13m 36s elapsed, 4h 46m 24s of budget remaining.
    run_program at 1h 13m for 120s (agent saw)
    Ran m for 2m of game time; it is still running.
    Inventory change: cactus +20736, carrot +16728, fertilizer +48, hay +16640, power +591.97, pumpkin -288, water -15, wood +73440.
    Game time: 1h 15m 46s elapsed, 4h 44m 14s of budget remaining.
    Output:
    Warning: Tried to use Items.Water but didn't have enough of it.
    In: sun_task <- water
    use_item(Items.Water)
            ^^           
    --------------------------------------------------------------------
    Warning: Tried to use Items.Water but didn't have enough of it.
    In: sun_task <- water
    use_item(Items.Water)
            ^^           
    --------------------------------------------------------------------
    Warning: Tried to use Items.Water but didn't have enough of it.
    In: mixed_task <- strip <- mixed_fn <- mixed_tile <- water <- ...
    use_item(Items.Water)
            ^^           
    --------------------------------------------------------------------
  4. r41h 16mRan21 lines · +7 −6 · ran 16m 36s
    from f import *
    from c import *
    from g import *
    GOLD_TARGET = 128100
    PUMP_TARGET = 65000
    CACT_TARGET = 0
    init()
    while True:
    	c = num_items(Items.Carrot)
    	p = num_items(Items.Pumpkin)
    	pneed = p < PUMP_TARGET
    	if num_items(Items.Power) < 100 and c > 100:
    		sunflowers()
    	elif num_items(Items.Weird_Substance) >= 500 and num_items(Items.Gold) < GOLD_TARGET:
    		maze()
    	elif pneed and c > 5000:
    		pumpkins()
    	elif p > 1000 and num_items(Items.Cactus) < CACT_TARGET:
    		cactus()
    	else:
    		mixed()
    Changes from the previous revision
      from f import *
      from c import *
    - GOLD_TARGET = 0
    - PUMP_TARGET = 5000
    - CACT_TARGET = 15000
    + from g import *
    + GOLD_TARGET = 128100
    + PUMP_TARGET = 65000
    + CACT_TARGET = 0
      init()
      while True:
      	if num_items(Items.Power) < 100 and c > 100:
      		sunflowers()
    - 	elif pneed and c > 1000:
    + 	elif num_items(Items.Weird_Substance) >= 500 and num_items(Items.Gold) < GOLD_TARGET:
    + 		maze()
    + 	elif pneed and c > 5000:
      		pumpkins()
      	elif p > 1000 and num_items(Items.Cactus) < CACT_TARGET:
      		cactus()
    - 	elif not pneed and num_items(Items.Weird_Substance) >= 100 and num_items(Items.Gold) < GOLD_TARGET:
    - 		maze()
      	else:
      		mixed()
    
    Write result the agent saw
    Saved m (21 lines).
    Game time: 1h 16m 46s elapsed, 4h 43m 14s of budget remaining.
    run_program at 1h 16m for 120s (agent saw)
    Ran m for 2m of game time; it is still running.
    Inventory change: carrot +160, fertilizer +48, gold +16416, power -414.83, water +192, weird_substance -1368.
    Game time: 1h 19m 6s elapsed, 4h 40m 54s of budget remaining.
    Output:
    (none)
  5. r51h 39mRan45 lines · +34 −10 · ran 5m 50s
    from f import *
    from c import *
    from g import *
    from d import *
    RES = {Items.Gold: 0, Items.Pumpkin: 0, Items.Cactus: 0, Items.Bone: 0}
    init()
    while True:
    	h = num_items(Items.Hay)
    	w = num_items(Items.Wood)
    	c = num_items(Items.Carrot)
    	p = num_items(Items.Pumpkin)
    	ca = num_items(Items.Cactus)
    	ws = num_items(Items.Weird_Substance)
    	if num_items(Items.Power) < 200 and c > 1000:
    		sunflowers()
    		continue
    	best = min(h, w, c)
    	act = 0
    	v = p - RES[Items.Pumpkin]
    	if v < best and c > 30000:
    		act = 1
    		best = v
    	v = ca - RES[Items.Cactus]
    	if v < best and p > 5000:
    		act = 2
    		best = v
    	v = num_items(Items.Gold) - RES[Items.Gold]
    	if v < best and ws > 2000:
    		act = 3
    		best = v
    	v = num_items(Items.Bone) - RES[Items.Bone]
    	if v < best and ca > 3000:
    		act = 4
    		best = v
    	if act == 0:
    		poly(40)
    	elif act == 1:
    		pumpkins()
    	elif act == 2:
    		cactus()
    	elif act == 3:
    		for i in range(10):
    			maze()
    	else:
    		dino()
    Changes from the previous revision
      from c import *
      from g import *
    - GOLD_TARGET = 128100
    - PUMP_TARGET = 65000
    - CACT_TARGET = 0
    + from d import *
    + RES = {Items.Gold: 0, Items.Pumpkin: 0, Items.Cactus: 0, Items.Bone: 0}
      init()
      while True:
    + 	h = num_items(Items.Hay)
    + 	w = num_items(Items.Wood)
      	c = num_items(Items.Carrot)
      	p = num_items(Items.Pumpkin)
    - 	pneed = p < PUMP_TARGET
    - 	if num_items(Items.Power) < 100 and c > 100:
    + 	ca = num_items(Items.Cactus)
    + 	ws = num_items(Items.Weird_Substance)
    + 	if num_items(Items.Power) < 200 and c > 1000:
      		sunflowers()
    - 	elif num_items(Items.Weird_Substance) >= 500 and num_items(Items.Gold) < GOLD_TARGET:
    - 		maze()
    - 	elif pneed and c > 5000:
    + 		continue
    + 	best = min(h, w, c)
    + 	act = 0
    + 	v = p - RES[Items.Pumpkin]
    + 	if v < best and c > 30000:
    + 		act = 1
    + 		best = v
    + 	v = ca - RES[Items.Cactus]
    + 	if v < best and p > 5000:
    + 		act = 2
    + 		best = v
    + 	v = num_items(Items.Gold) - RES[Items.Gold]
    + 	if v < best and ws > 2000:
    + 		act = 3
    + 		best = v
    + 	v = num_items(Items.Bone) - RES[Items.Bone]
    + 	if v < best and ca > 3000:
    + 		act = 4
    + 		best = v
    + 	if act == 0:
    + 		poly(40)
    + 	elif act == 1:
      		pumpkins()
    - 	elif p > 1000 and num_items(Items.Cactus) < CACT_TARGET:
    + 	elif act == 2:
      		cactus()
    + 	elif act == 3:
    + 		for i in range(10):
    + 			maze()
      	else:
    - 		mixed()
    + 		dino()
    
    Write result the agent saw
    Saved m (45 lines).
    Game time: 1h 39m 19s elapsed, 4h 20m 41s of budget remaining.
    run_program at 1h 39m for 120s (agent saw)
    Ran m for 2m of game time; it is still running.
    Inventory change: carrot +225104, fertilizer +96, hay +163616, power +1103.43, water -138, weird_substance +33148, wood +216016.
    Game time: 1h 41m 29s elapsed, 4h 18m 31s of budget remaining.
    Output:
    (none)
  6. r61h 45mRan45 lines · +2 −2 · ran 6m 20s
    from f import *
    from c import *
    from g import *
    from d import *
    RES = {Items.Gold: 520000, Items.Pumpkin: 520000, Items.Cactus: 80000, Items.Bone: 260000}
    init()
    while True:
    	h = num_items(Items.Hay)
    	w = num_items(Items.Wood)
    	c = num_items(Items.Carrot)
    	p = num_items(Items.Pumpkin)
    	ca = num_items(Items.Cactus)
    	ws = num_items(Items.Weird_Substance)
    	if num_items(Items.Power) < 200 and c > 1000:
    		sunflowers()
    		continue
    	best = min(h, w, c)
    	act = 0
    	v = p - RES[Items.Pumpkin]
    	if v < best and c > 50000:
    		act = 1
    		best = v
    	v = ca - RES[Items.Cactus]
    	if v < best and p > 5000:
    		act = 2
    		best = v
    	v = num_items(Items.Gold) - RES[Items.Gold]
    	if v < best and ws > 2000:
    		act = 3
    		best = v
    	v = num_items(Items.Bone) - RES[Items.Bone]
    	if v < best and ca > 3000:
    		act = 4
    		best = v
    	if act == 0:
    		poly(40)
    	elif act == 1:
    		pumpkins()
    	elif act == 2:
    		cactus()
    	elif act == 3:
    		for i in range(10):
    			maze()
    	else:
    		dino()
    Changes from the previous revision
      from g import *
      from d import *
    - RES = {Items.Gold: 0, Items.Pumpkin: 0, Items.Cactus: 0, Items.Bone: 0}
    + RES = {Items.Gold: 520000, Items.Pumpkin: 520000, Items.Cactus: 80000, Items.Bone: 260000}
      init()
      while True:
      	act = 0
      	v = p - RES[Items.Pumpkin]
    - 	if v < best and c > 30000:
    + 	if v < best and c > 50000:
      		act = 1
      		best = v
    
    Write result the agent saw
    Saved m (45 lines).
    Game time: 1h 45m 29s elapsed, 4h 14m 31s of budget remaining.
    run_program at 1h 45m for 300s (agent saw)
    Ran m for 5m of game time; it is still running.
    Inventory change: carrot -10208, fertilizer +240, gold +40960, hay +16192, power +1273.94, pumpkin +49152, water +137, weird_substance -2560.
    Game time: 1h 50m 39s elapsed, 4h 9m 21s of budget remaining.
    Output:
    (none)
  7. r71h 51mRan45 lines · +1 −1 · ran 10m 20s
    from f import *
    from c import *
    from g import *
    from d import *
    RES = {Items.Gold: 520000, Items.Pumpkin: 0, Items.Cactus: 80000, Items.Bone: 260000}
    init()
    while True:
    	h = num_items(Items.Hay)
    	w = num_items(Items.Wood)
    	c = num_items(Items.Carrot)
    	p = num_items(Items.Pumpkin)
    	ca = num_items(Items.Cactus)
    	ws = num_items(Items.Weird_Substance)
    	if num_items(Items.Power) < 200 and c > 1000:
    		sunflowers()
    		continue
    	best = min(h, w, c)
    	act = 0
    	v = p - RES[Items.Pumpkin]
    	if v < best and c > 50000:
    		act = 1
    		best = v
    	v = ca - RES[Items.Cactus]
    	if v < best and p > 5000:
    		act = 2
    		best = v
    	v = num_items(Items.Gold) - RES[Items.Gold]
    	if v < best and ws > 2000:
    		act = 3
    		best = v
    	v = num_items(Items.Bone) - RES[Items.Bone]
    	if v < best and ca > 3000:
    		act = 4
    		best = v
    	if act == 0:
    		poly(40)
    	elif act == 1:
    		pumpkins()
    	elif act == 2:
    		cactus()
    	elif act == 3:
    		for i in range(10):
    			maze()
    	else:
    		dino()
    Changes from the previous revision
      from g import *
      from d import *
    - RES = {Items.Gold: 520000, Items.Pumpkin: 520000, Items.Cactus: 80000, Items.Bone: 260000}
    + RES = {Items.Gold: 520000, Items.Pumpkin: 0, Items.Cactus: 80000, Items.Bone: 260000}
      init()
      while True:
    
    Write result the agent saw
    Saved m (45 lines).
    Game time: 1h 52m 9s elapsed, 4h 7m 51s of budget remaining.
    run_program at 1h 52m for 600s (agent saw)
    Ran m for 10m of game time; it is still running.
    Inventory change: carrot -256, fertilizer +480, gold +113664, hay +8192, power -1231.10, water +1664, weird_substance -7040.
    Game time: 2h 2m 19s elapsed, 3h 57m 41s of budget remaining.
    Output:
    (none)
  8. r82h 03mRan45 lines · +3 −3 · ran 10m 57s
    from f import *
    from c import *
    from g import *
    from d import *
    from z import *
    RES = {Items.Gold: 520000, Items.Pumpkin: 0, Items.Cactus: 80000, Items.Bone: 260000}
    init()
    while True:
    	h = num_items(Items.Hay)
    	w = num_items(Items.Wood)
    	c = num_items(Items.Carrot)
    	p = num_items(Items.Pumpkin)
    	ca = num_items(Items.Cactus)
    	ws = num_items(Items.Weird_Substance)
    	if num_items(Items.Power) < 200 and c > 1000:
    		sunflowers()
    		continue
    	best = min(h, w, c)
    	act = 0
    	v = p - RES[Items.Pumpkin]
    	if v < best and c > 50000:
    		act = 1
    		best = v
    	v = ca - RES[Items.Cactus]
    	if v < best and p > 5000:
    		act = 2
    		best = v
    	v = num_items(Items.Gold) - RES[Items.Gold]
    	if v < best and ws > 20000:
    		act = 3
    		best = v
    	v = num_items(Items.Bone) - RES[Items.Bone]
    	if v < best and ca > 3000:
    		act = 4
    		best = v
    	if act == 0:
    		poly(40)
    	elif act == 1:
    		pumpkins()
    	elif act == 2:
    		cactus()
    	elif act == 3:
    		mini(60)
    	else:
    		dino()
    Changes from the previous revision
      from g import *
      from d import *
    + from z import *
      RES = {Items.Gold: 520000, Items.Pumpkin: 0, Items.Cactus: 80000, Items.Bone: 260000}
      init()
      		best = v
      	v = num_items(Items.Gold) - RES[Items.Gold]
    - 	if v < best and ws > 2000:
    + 	if v < best and ws > 20000:
      		act = 3
      		best = v
      		cactus()
      	elif act == 3:
    - 		for i in range(10):
    - 			maze()
    + 		mini(60)
      	else:
      		dino()
    
    Write result the agent saw
    Saved m (45 lines).
    Game time: 2h 3m 24s elapsed, 3h 56m 36s of budget remaining.
    run_program at 2h 03m for 120s (agent saw)
    Ran m for 2m of game time; it is still running.
    Inventory change: carrot -256, fertilizer +96, gold +61504, hay +8224, power +794.37, water +128, weird_substance -15360.
    Game time: 2h 5m 34s elapsed, 3h 54m 26s of budget remaining.
    Output:
    (none)
  9. r92h 14mRan53 lines · +13 −5 · ran 7m 36s
    from f import *
    from c import *
    from g import *
    from d import *
    from z import *
    RES = {Items.Gold: 520000, Items.Pumpkin: 0, Items.Cactus: 0, Items.Bone: 0}
    init()
    while True:
    	h = num_items(Items.Hay)
    	w = num_items(Items.Wood)
    	c = num_items(Items.Carrot)
    	p = num_items(Items.Pumpkin)
    	ca = num_items(Items.Cactus)
    	ws = num_items(Items.Weird_Substance)
    	if num_items(Items.Power) < 200 and c > 1000:
    		sunflowers()
    		continue
    	best = min(h, w, c)
    	act = 0
    	v = p - RES[Items.Pumpkin]
    	if v < best:
    		act = 1
    		best = v
    	v = ca - RES[Items.Cactus]
    	if v < best:
    		act = 2
    		best = v
    	v = num_items(Items.Gold) - RES[Items.Gold]
    	if v < best:
    		act = 3
    		best = v
    	v = num_items(Items.Bone) - RES[Items.Bone]
    	if v < best:
    		act = 4
    		best = v
    	if act == 4 and ca < 5000:
    		act = 2
    	if act == 2 and p < 5000:
    		act = 1
    	if act == 1 and c < 50000:
    		act = 0
    	if act == 3 and ws < 20000:
    		act = 0
    	if act == 0:
    		poly(40)
    	elif act == 1:
    		pumpkins()
    	elif act == 2:
    		cactus()
    	elif act == 3:
    		mini(60)
    	else:
    		dino()
    Changes from the previous revision
      from d import *
      from z import *
    - RES = {Items.Gold: 520000, Items.Pumpkin: 0, Items.Cactus: 80000, Items.Bone: 260000}
    + RES = {Items.Gold: 520000, Items.Pumpkin: 0, Items.Cactus: 0, Items.Bone: 0}
      init()
      while True:
      	act = 0
      	v = p - RES[Items.Pumpkin]
    - 	if v < best and c > 50000:
    + 	if v < best:
      		act = 1
      		best = v
      	v = ca - RES[Items.Cactus]
    - 	if v < best and p > 5000:
    + 	if v < best:
      		act = 2
      		best = v
      	v = num_items(Items.Gold) - RES[Items.Gold]
    - 	if v < best and ws > 20000:
    + 	if v < best:
      		act = 3
      		best = v
      	v = num_items(Items.Bone) - RES[Items.Bone]
    - 	if v < best and ca > 3000:
    + 	if v < best:
      		act = 4
      		best = v
    + 	if act == 4 and ca < 5000:
    + 		act = 2
    + 	if act == 2 and p < 5000:
    + 		act = 1
    + 	if act == 1 and c < 50000:
    + 		act = 0
    + 	if act == 3 and ws < 20000:
    + 		act = 0
      	if act == 0:
      		poly(40)
    
    Write result the agent saw
    Saved m (53 lines).
    Game time: 2h 14m 41s elapsed, 3h 45m 19s of budget remaining.
    run_program at 2h 14m for 180s (agent saw)
    Ran m for 3m of game time; it is still running.
    Inventory change: cactus +65536, carrot +782560, fertilizer +144, gold +61440, hay +712320, power +377.91, water +254, weird_substance +222493, wood +777472.
    Game time: 2h 17m 51s elapsed, 3h 42m 9s of budget remaining.
    Output:
    (none)
  10. r102h 22mRan53 lines · +2 −2 · ran 10m 20s
    from f import *
    from c import *
    from g import *
    from d import *
    from z import *
    RES = {Items.Gold: 0, Items.Pumpkin: 0, Items.Cactus: 0, Items.Bone: 1300000}
    init()
    while True:
    	h = num_items(Items.Hay)
    	w = num_items(Items.Wood)
    	c = num_items(Items.Carrot)
    	p = num_items(Items.Pumpkin)
    	ca = num_items(Items.Cactus)
    	ws = num_items(Items.Weird_Substance)
    	if num_items(Items.Power) < 200 and c > 1000:
    		sunflowers()
    		continue
    	best = min(h, w, c)
    	act = 0
    	v = p - RES[Items.Pumpkin]
    	if v < best:
    		act = 1
    		best = v
    	v = ca - RES[Items.Cactus]
    	if v < best:
    		act = 2
    		best = v
    	v = num_items(Items.Gold) - RES[Items.Gold]
    	if v < best:
    		act = 3
    		best = v
    	v = num_items(Items.Bone) - RES[Items.Bone]
    	if v < best:
    		act = 4
    		best = v
    	if act == 4 and ca < 5000:
    		act = 2
    	if act == 2 and p < 5000:
    		act = 1
    	if act == 1 and c < 100000:
    		act = 0
    	if act == 3 and ws < 20000:
    		act = 0
    	if act == 0:
    		poly(40)
    	elif act == 1:
    		pumpkins()
    	elif act == 2:
    		cactus()
    	elif act == 3:
    		mini(60)
    	else:
    		dino()
    Changes from the previous revision
      from d import *
      from z import *
    - RES = {Items.Gold: 520000, Items.Pumpkin: 0, Items.Cactus: 0, Items.Bone: 0}
    + RES = {Items.Gold: 0, Items.Pumpkin: 0, Items.Cactus: 0, Items.Bone: 1300000}
      init()
      while True:
      	if act == 2 and p < 5000:
      		act = 1
    - 	if act == 1 and c < 50000:
    + 	if act == 1 and c < 100000:
      		act = 0
      	if act == 3 and ws < 20000:
    
    Write result the agent saw
    Saved m (53 lines).
    Game time: 2h 22m 48s elapsed, 3h 37m 12s of budget remaining.
    run_program at 2h 22m for 600s (agent saw)
    Ran m for 10m of game time; it is still running.
    Inventory change: fertilizer +480, hay +2048, power -553.82, water +3840.
    Game time: 2h 32m 58s elapsed, 3h 27m 2s of budget remaining.
    Output:
    (none)
  11. r112h 33mRan54 lines · +1 −0 · ran 21m 59s
    from f import *
    from c import *
    from g import *
    from d import *
    from z import *
    from i import *
    RES = {Items.Gold: 0, Items.Pumpkin: 0, Items.Cactus: 0, Items.Bone: 1300000}
    init()
    while True:
    	h = num_items(Items.Hay)
    	w = num_items(Items.Wood)
    	c = num_items(Items.Carrot)
    	p = num_items(Items.Pumpkin)
    	ca = num_items(Items.Cactus)
    	ws = num_items(Items.Weird_Substance)
    	if num_items(Items.Power) < 200 and c > 1000:
    		sunflowers()
    		continue
    	best = min(h, w, c)
    	act = 0
    	v = p - RES[Items.Pumpkin]
    	if v < best:
    		act = 1
    		best = v
    	v = ca - RES[Items.Cactus]
    	if v < best:
    		act = 2
    		best = v
    	v = num_items(Items.Gold) - RES[Items.Gold]
    	if v < best:
    		act = 3
    		best = v
    	v = num_items(Items.Bone) - RES[Items.Bone]
    	if v < best:
    		act = 4
    		best = v
    	if act == 4 and ca < 5000:
    		act = 2
    	if act == 2 and p < 5000:
    		act = 1
    	if act == 1 and c < 100000:
    		act = 0
    	if act == 3 and ws < 20000:
    		act = 0
    	if act == 0:
    		poly(40)
    	elif act == 1:
    		pumpkins()
    	elif act == 2:
    		cactus()
    	elif act == 3:
    		mini(60)
    	else:
    		dino()
    Changes from the previous revision
      from d import *
      from z import *
    + from i import *
      RES = {Items.Gold: 0, Items.Pumpkin: 0, Items.Cactus: 0, Items.Bone: 1300000}
      init()
    
    Write result the agent saw
    Saved m (54 lines).
    Game time: 2h 33m 38s elapsed, 3h 26m 22s of budget remaining.
    run_program at 2h 33m for 60s (agent saw)
    Ran m for 1m of game time; it is still running.
    Inventory change: carrot -256, fertilizer +48, hay +16384, power +1731.28, water +128, weird_substance -64.
    Game time: 2h 34m 48s elapsed, 3h 25m 12s of budget remaining.
    Output:
    (none)
  12. r122h 55mRan29 lines · +18 −43 · ran 36m 53s
    from f import *
    from c import *
    from g import *
    from d import *
    from z import *
    from i import *
    init()
    it = 0
    while True:
    	it = it + 1
    	t0 = get_time()
    	if num_items(Items.Power) < 1500:
    		sunflowers()
    	t1 = get_time()
    	poly(60)
    	t2 = get_time()
    	for q in range(3):
    		if num_items(Items.Carrot) > 200000:
    			pumpkins()
    	t3 = get_time()
    	cactus()
    	t4 = get_time()
    	if num_items(Items.Weird_Substance) > 50000:
    		mini(60)
    	t5 = get_time()
    	if it % 3 == 0:
    		dino()
    	t6 = get_time()
    	print(it, t1 - t0, t2 - t1, t3 - t2, t4 - t3, t5 - t4, t6 - t5)
    Changes from the previous revision
      from z import *
      from i import *
    - RES = {Items.Gold: 0, Items.Pumpkin: 0, Items.Cactus: 0, Items.Bone: 1300000}
      init()
    + it = 0
      while True:
    - 	h = num_items(Items.Hay)
    - 	w = num_items(Items.Wood)
    - 	c = num_items(Items.Carrot)
    - 	p = num_items(Items.Pumpkin)
    - 	ca = num_items(Items.Cactus)
    - 	ws = num_items(Items.Weird_Substance)
    - 	if num_items(Items.Power) < 200 and c > 1000:
    + 	it = it + 1
    + 	t0 = get_time()
    + 	if num_items(Items.Power) < 1500:
      		sunflowers()
    - 		continue
    - 	best = min(h, w, c)
    - 	act = 0
    - 	v = p - RES[Items.Pumpkin]
    - 	if v < best:
    - 		act = 1
    - 		best = v
    - 	v = ca - RES[Items.Cactus]
    - 	if v < best:
    - 		act = 2
    - 		best = v
    - 	v = num_items(Items.Gold) - RES[Items.Gold]
    - 	if v < best:
    - 		act = 3
    - 		best = v
    - 	v = num_items(Items.Bone) - RES[Items.Bone]
    - 	if v < best:
    - 		act = 4
    - 		best = v
    - 	if act == 4 and ca < 5000:
    - 		act = 2
    - 	if act == 2 and p < 5000:
    - 		act = 1
    - 	if act == 1 and c < 100000:
    - 		act = 0
    - 	if act == 3 and ws < 20000:
    - 		act = 0
    - 	if act == 0:
    - 		poly(40)
    - 	elif act == 1:
    - 		pumpkins()
    - 	elif act == 2:
    - 		cactus()
    - 	elif act == 3:
    + 	t1 = get_time()
    + 	poly(60)
    + 	t2 = get_time()
    + 	for q in range(3):
    + 		if num_items(Items.Carrot) > 200000:
    + 			pumpkins()
    + 	t3 = get_time()
    + 	cactus()
    + 	t4 = get_time()
    + 	if num_items(Items.Weird_Substance) > 50000:
      		mini(60)
    - 	else:
    + 	t5 = get_time()
    + 	if it % 3 == 0:
      		dino()
    + 	t6 = get_time()
    + 	print(it, t1 - t0, t2 - t1, t3 - t2, t4 - t3, t5 - t4, t6 - t5)
    
    Write result the agent saw
    Saved m (29 lines).
    Game time: 2h 55m 56s elapsed, 3h 4m 4s of budget remaining.
    run_program at 2h 55m for 300s (agent saw)
    Ran m for 5m of game time; it is still running.
    Inventory change: cactus +131072, carrot +6124464, fertilizer +240, gold +54000, hay +6219520, power -166.13, pumpkin +146432, water +817, weird_substance +868986, wood +7287776.
    Game time: 3h 1m 6s elapsed, 2h 58m 54s of budget remaining.
    Output:
    1 65.99 94.84 32.63 37.97 66.4 0
  13. r133h 32mRan38 lines · +15 −6 · ran 22m 25s
    from f import *
    from c import *
    from g import *
    from d import *
    from z import *
    from s import *
    from i import *
    
    def pw(x):
    	if num_items(Items.Power) < x:
    		sunflowers()
    
    init()
    it = 0
    while True:
    	it = it + 1
    	t0 = get_time()
    	pw(1000)
    	t1 = get_time()
    	poly(60)
    	t2 = get_time()
    	pw(1000)
    	for q in range(3):
    		if num_items(Items.Carrot) > 2000000:
    			pumpkins()
    	t3 = get_time()
    	pw(1000)
    	cactus()
    	t4 = get_time()
    	pw(1000)
    	if num_items(Items.Weird_Substance) > 300000:
    		mini(150)
    	t5 = get_time()
    	if it % 2 == 0:
    		pw(2500)
    		dino()
    	t6 = get_time()
    	print(it, t1 - t0, t2 - t1, t3 - t2, t4 - t3, t5 - t4, t6 - t5)
    Changes from the previous revision
      from d import *
      from z import *
    + from s import *
      from i import *
    + 
    + def pw(x):
    + 	if num_items(Items.Power) < x:
    + 		sunflowers()
    + 
      init()
      it = 0
      	it = it + 1
      	t0 = get_time()
    - 	if num_items(Items.Power) < 1500:
    - 		sunflowers()
    + 	pw(1000)
      	t1 = get_time()
      	poly(60)
      	t2 = get_time()
    + 	pw(1000)
      	for q in range(3):
    - 		if num_items(Items.Carrot) > 200000:
    + 		if num_items(Items.Carrot) > 2000000:
      			pumpkins()
      	t3 = get_time()
    + 	pw(1000)
      	cactus()
      	t4 = get_time()
    - 	if num_items(Items.Weird_Substance) > 50000:
    - 		mini(60)
    + 	pw(1000)
    + 	if num_items(Items.Weird_Substance) > 300000:
    + 		mini(150)
      	t5 = get_time()
    - 	if it % 3 == 0:
    + 	if it % 2 == 0:
    + 		pw(2500)
      		dino()
      	t6 = get_time()
    
    Write result the agent saw
    Saved m (38 lines).
    Game time: 3h 33m 9s elapsed, 2h 26m 51s of budget remaining.
    run_program at 3h 33m for 420s (agent saw)
    Ran m for 7m of game time; it is still running.
    Inventory change: cactus +1874048, carrot +18942264, fertilizer +336, gold +345600, hay +18833408, power +841.91, pumpkin +2222528, water +8353, weird_substance -115376, wood +29254400.
    Game time: 3h 40m 19s elapsed, 2h 19m 41s of budget remaining.
    Output:
    1 152.81 67.78 24.59 33.7 98.32 0
  14. r143h 55mRan39 lines · +4 −3 · ran 14m 51s
    from f import *
    from c import *
    from g import *
    from d import *
    from z import *
    from s import *
    from u import *
    from i import *
    
    def pw(x):
    	if num_items(Items.Power) < x:
    		sunflowers()
    
    init()
    it = 0
    while True:
    	it = it + 1
    	t0 = get_time()
    	pw(1500)
    	t1 = get_time()
    	poly(60)
    	t2 = get_time()
    	pw(1000)
    	for q in range(3):
    		if num_items(Items.Carrot) > 5000000:
    			pumpkins()
    	t3 = get_time()
    	pw(1000)
    	cactus()
    	t4 = get_time()
    	pw(1000)
    	if num_items(Items.Weird_Substance) > 500000:
    		mini(150)
    	t5 = get_time()
    	if it % 2 == 0:
    		pw(2500)
    		dino()
    	t6 = get_time()
    	print(it, t1 - t0, t2 - t1, t3 - t2, t4 - t3, t5 - t4, t6 - t5)
    Changes from the previous revision
      from z import *
      from s import *
    + from u import *
      from i import *
      
      	it = it + 1
      	t0 = get_time()
    - 	pw(1000)
    + 	pw(1500)
      	t1 = get_time()
      	poly(60)
      	pw(1000)
      	for q in range(3):
    - 		if num_items(Items.Carrot) > 2000000:
    + 		if num_items(Items.Carrot) > 5000000:
      			pumpkins()
      	t3 = get_time()
      	t4 = get_time()
      	pw(1000)
    - 	if num_items(Items.Weird_Substance) > 300000:
    + 	if num_items(Items.Weird_Substance) > 500000:
      		mini(150)
      	t5 = get_time()
    
    Write result the agent saw
    Saved m (39 lines).
    Game time: 3h 55m 54s elapsed, 2h 4m 6s of budget remaining.
    run_program at 3h 55m for 300s (agent saw)
    Ran m for 5m of game time; it is still running.
    Inventory change: cactus +3748096, carrot +63348764, fertilizer +240, gold +691200, hay +6386176, power -2231.33, pumpkin +4445056, water +5697, weird_substance -230752, wood +22970368.
    Game time: 4h 1m 4s elapsed, 1h 58m 56s of budget remaining.
    Output:
    1 0 86.07 27.5 32.53 95.91 0
  15. r154h 10mRan44 lines · +11 −6 · ran 11m 35s
    from f import *
    from c import *
    from g import *
    from d import *
    from z import *
    from s import *
    from u import *
    from i import *
    NP = 9
    NC = 3
    NM = 150
    DE = 3
    
    def pw(x):
    	if num_items(Items.Power) < x:
    		sunflowers()
    
    init()
    it = 0
    while True:
    	it = it + 1
    	t0 = get_time()
    	pw(1500)
    	t1 = get_time()
    	poly(60)
    	t2 = get_time()
    	for q in range(NP):
    		pw(600)
    		if num_items(Items.Carrot) > 5000000:
    			pumpkins()
    	t3 = get_time()
    	for q in range(NC):
    		pw(600)
    		cactus()
    	t4 = get_time()
    	pw(1000)
    	if num_items(Items.Weird_Substance) > 500000:
    		mini(NM)
    	t5 = get_time()
    	if it % DE == 0:
    		pw(2500)
    		dino()
    	t6 = get_time()
    	print(it, t1 - t0, t2 - t1, t3 - t2, t4 - t3, t5 - t4, t6 - t5)
    Changes from the previous revision
      from u import *
      from i import *
    + NP = 9
    + NC = 3
    + NM = 150
    + DE = 3
      
      def pw(x):
      	poly(60)
      	t2 = get_time()
    - 	pw(1000)
    - 	for q in range(3):
    + 	for q in range(NP):
    + 		pw(600)
      		if num_items(Items.Carrot) > 5000000:
      			pumpkins()
      	t3 = get_time()
    - 	pw(1000)
    - 	cactus()
    + 	for q in range(NC):
    + 		pw(600)
    + 		cactus()
      	t4 = get_time()
      	pw(1000)
      	if num_items(Items.Weird_Substance) > 500000:
    - 		mini(150)
    + 		mini(NM)
      	t5 = get_time()
    - 	if it % 2 == 0:
    + 	if it % DE == 0:
      		pw(2500)
      		dino()
    
    Write result the agent saw
    Saved m (44 lines).
    Game time: 4h 11m 5s elapsed, 1h 48m 55s of budget remaining.
    run_program at 4h 11m for 360s (agent saw)
    Ran m for 6m of game time; it is still running.
    Inventory change: cactus +11244288, carrot +70604316, fertilizer +288, hay +68303360, power -1848.44, pumpkin +13335168, water +6414, weird_substance -352, wood +127937536.
    Game time: 4h 17m 15s elapsed, 1h 42m 45s of budget remaining.
    Output:
    1 0 85.42 70.25 119.02 0 0
    run_program at 4h 17m for 240s (agent saw)
    Ran m for 4m of game time; it is still running.
    Inventory change: cactus +7496192, carrot +35540508, fertilizer +192, hay +37946880, power +12.70, pumpkin +13335168, water +4207, weird_substance -704, wood +37779968.
    Game time: 4h 21m 55s elapsed, 1h 38m 5s of budget remaining.
    Output:
    (none)
  16. r164h 23mRan44 lines · +3 −3 · ran 27m 01s
    from f import *
    from c import *
    from g import *
    from d import *
    from s import *
    from u import *
    from z import *
    from i import *
    NP = 6
    NC = 3
    NM = 150
    DE = 2
    
    def pw(x):
    	if num_items(Items.Power) < x:
    		sunflowers()
    
    init()
    it = 0
    while True:
    	it = it + 1
    	t0 = get_time()
    	pw(1500)
    	t1 = get_time()
    	poly(60)
    	t2 = get_time()
    	for q in range(NP):
    		pw(600)
    		if num_items(Items.Carrot) > 5000000:
    			pumpkins()
    	t3 = get_time()
    	for q in range(NC):
    		pw(600)
    		cactus()
    	t4 = get_time()
    	pw(1000)
    	if num_items(Items.Weird_Substance) > 500000:
    		mini(NM)
    	t5 = get_time()
    	if it % DE == 0:
    		pw(2500)
    		dino()
    	t6 = get_time()
    	print(it, t1 - t0, t2 - t1, t3 - t2, t4 - t3, t5 - t4, t6 - t5)
    Changes from the previous revision
      from g import *
      from d import *
    - from z import *
      from s import *
      from u import *
    + from z import *
      from i import *
    - NP = 9
    + NP = 6
      NC = 3
      NM = 150
    - DE = 3
    + DE = 2
      
      def pw(x):
    
    Write result the agent saw
    Saved m (44 lines).
    Game time: 4h 23m 30s elapsed, 1h 36m 30s of budget remaining.
    run_program at 4h 23m for 300s (agent saw)
    Ran m for 5m of game time; it is still running.
    Inventory change: carrot +71178524, fertilizer +240, hay +73271552, power +254.24, pumpkin +8890112, water +6150, weird_substance +4290063, wood +79152384.
    Game time: 4h 28m 50s elapsed, 1h 31m 10s of budget remaining.
    Output:
    Warning: You used a number of Weird Substance that isn't exactly the number needed to create the maze. Don't forget that the amount of Weird Substance required increases as you upgrade the maze.
    
    To spawn a full-size maze do:
    plant(Entities.Bush)
    substance = get_world_size() * 2**(num_unlocked(Unlocks.Mazes) - 1)
    use_item(Items.Weird_Substance, substance)
    In: poly_task
    use_item(Items.Weird_Substance)
            ^^                     
    --------------------------------------------------------------------
  17. r174h 50mRan48 lines · +9 −5 · ran 10m 10s
    from f import *
    from c import *
    from g import *
    from d import *
    from s import *
    from u import *
    from z import *
    from i import *
    NP = 6
    NC = 2
    NM = 300
    DE = 2
    st = 0
    
    def pw(x):
    	global st
    	if num_items(Items.Power) < x:
    		a = get_time()
    		sunflowers()
    		st = st + get_time() - a
    
    init()
    it = 0
    while True:
    	it = it + 1
    	st = 0
    	t0 = get_time()
    	pw(1500)
    	poly(60)
    	t2 = get_time()
    	for q in range(NP):
    		pw(600)
    		if num_items(Items.Carrot) > 5000000:
    			pumpkins()
    	t3 = get_time()
    	for q in range(NC):
    		pw(600)
    		cactus()
    	t4 = get_time()
    	pw(1000)
    	if num_items(Items.Weird_Substance) > 1000000:
    		mini(NM)
    	t5 = get_time()
    	if it % DE == 0:
    		pw(2500)
    		dino()
    	t6 = get_time()
    	print(it, st, t2 - t0, t3 - t2, t4 - t3, t5 - t4, t6 - t5)
    Changes from the previous revision
      from i import *
      NP = 6
    - NC = 3
    - NM = 150
    + NC = 2
    + NM = 300
      DE = 2
    + st = 0
      
      def pw(x):
    + 	global st
      	if num_items(Items.Power) < x:
    + 		a = get_time()
      		sunflowers()
    + 		st = st + get_time() - a
      
      init()
      while True:
      	it = it + 1
    + 	st = 0
      	t0 = get_time()
      	pw(1500)
    - 	t1 = get_time()
      	poly(60)
      	t2 = get_time()
      	t4 = get_time()
      	pw(1000)
    - 	if num_items(Items.Weird_Substance) > 500000:
    + 	if num_items(Items.Weird_Substance) > 1000000:
      		mini(NM)
      	t5 = get_time()
      		dino()
      	t6 = get_time()
    - 	print(it, t1 - t0, t2 - t1, t3 - t2, t4 - t3, t5 - t4, t6 - t5)
    + 	print(it, st, t2 - t0, t3 - t2, t4 - t3, t5 - t4, t6 - t5)
    
    Write result the agent saw
    Saved m (48 lines).
    Game time: 4h 51m elapsed, 1h 9m of budget remaining.
    run_program at 4h 51m for 540s (agent saw)
    Ran m for 9m of game time; it is still running.
    Inventory change: cactus +14992384, carrot +73869340, fertilizer +432, gold +2644992, hay +74904576, power -3366.90, pumpkin +8859136, water +11382, weird_substance -884480, wood +77106688.
    Game time: 5h 10s elapsed, 59m 50s of budget remaining.
    Output:
    (none)
  18. r185h 01mRan50 lines · +4 −2 · ran 13m 00s
    from f import *
    from c import *
    from g import *
    from d import *
    from s import *
    from u import *
    from z import *
    from i import *
    NP = 6
    NC = 2
    NM = 300
    DE = 2
    R = 3460
    st = 0
    
    def pw(x):
    	global st
    	if num_items(Items.Power) < x:
    		a = get_time()
    		sunflowers()
    		st = st + get_time() - a
    
    init()
    S = get_time()
    it = 0
    while True:
    	it = it + 1
    	st = 0
    	t0 = get_time()
    	pw(1500)
    	poly(60)
    	t2 = get_time()
    	for q in range(NP):
    		pw(600)
    		if num_items(Items.Carrot) > 5000000:
    			pumpkins()
    	t3 = get_time()
    	for q in range(NC):
    		pw(600)
    		cactus()
    	t4 = get_time()
    	pw(2000)
    	if num_items(Items.Weird_Substance) > 1000000:
    		mini(NM)
    	t5 = get_time()
    	if it % DE == 0 and get_time() - S < R - 480:
    		pw(2500)
    		dino()
    	t6 = get_time()
    	print(it, st, t2 - t0, t3 - t2, t4 - t3, t5 - t4, t6 - t5)
    Changes from the previous revision
      NM = 300
      DE = 2
    + R = 3460
      st = 0
      
      
      init()
    + S = get_time()
      it = 0
      while True:
      		cactus()
      	t4 = get_time()
    - 	pw(1000)
    + 	pw(2000)
      	if num_items(Items.Weird_Substance) > 1000000:
      		mini(NM)
      	t5 = get_time()
    - 	if it % DE == 0:
    + 	if it % DE == 0 and get_time() - S < R - 480:
      		pw(2500)
      		dino()
    
    Write result the agent saw
    Saved m (50 lines).
    Game time: 5h 1m 30s elapsed, 58m 30s of budget remaining.
    run_program at 5h 01m for 600s (agent saw)
    Ran m for 10m of game time; it is still running.
    Inventory change: cactus +14992384, carrot +72455992, fertilizer +480, gold +1667232, hay +72138496, power +312.24, pumpkin +8859136, water +12818, weird_substance +635393, wood +70549504.
    Game time: 5h 11m 40s elapsed, 48m 20s of budget remaining.
    Output:
    Warning: You used a number of Weird Substance that isn't exactly the number needed to create the maze. Don't forget that the amount of Weird Substance required increases as you upgrade the maze.
    
    To spawn a full-size maze do:
    plant(Entities.Bush)
    substance = get_world_size() * 2**(num_unlocked(Unlocks.Mazes) - 1)
    use_item(Items.Weird_Substance, substance)
    In: poly_task
    use_item(Items.Weird_Substance)
            ^^                     
    --------------------------------------------------------------------
  19. r195h 15mRan49 lines · +7 −8 · ran 13m 10s
    from f import *
    from c import *
    from g import *
    from d import *
    from s import *
    from z import *
    from u import *
    from i import *
    NP = 6
    NC = 2
    NM = 300
    R = 2600
    st = 0
    
    def pw(x):
    	global st
    	if num_items(Items.Power) < x:
    		a = get_time()
    		sunflowers()
    		st = st + get_time() - a
    
    init()
    S = get_time()
    it = 0
    while True:
    	it = it + 1
    	st = 0
    	t0 = get_time()
    	if it % 2 == 1 and get_time() - S < R - 450:
    		pw(2500)
    		dino()
    	t1 = get_time()
    	pw(1500)
    	poly(60)
    	t2 = get_time()
    	for q in range(NP):
    		pw(600)
    		if num_items(Items.Carrot) > 5000000:
    			pumpkins()
    	t3 = get_time()
    	for q in range(NC):
    		pw(600)
    		cactus()
    	t4 = get_time()
    	pw(2000)
    	if num_items(Items.Weird_Substance) > 1000000:
    		mini(NM)
    	t5 = get_time()
    	print(it, st, t1 - t0, t2 - t1, t3 - t2, t4 - t3, t5 - t4)
    Changes from the previous revision
      from d import *
      from s import *
    - from u import *
      from z import *
    + from u import *
      from i import *
      NP = 6
      NC = 2
      NM = 300
    - DE = 2
    - R = 3460
    + R = 2600
      st = 0
      
      	st = 0
      	t0 = get_time()
    + 	if it % 2 == 1 and get_time() - S < R - 450:
    + 		pw(2500)
    + 		dino()
    + 	t1 = get_time()
      	pw(1500)
      	poly(60)
      		mini(NM)
      	t5 = get_time()
    - 	if it % DE == 0 and get_time() - S < R - 480:
    - 		pw(2500)
    - 		dino()
    - 	t6 = get_time()
    - 	print(it, st, t2 - t0, t3 - t2, t4 - t3, t5 - t4, t6 - t5)
    + 	print(it, st, t1 - t0, t2 - t1, t3 - t2, t4 - t3, t5 - t4)
    
    Write result the agent saw
    Saved m (49 lines).
    Game time: 5h 15m 34s elapsed, 44m 26s of budget remaining.
    run_program at 5h 15m for 780s (agent saw)
    Ran m for 13m of game time; it is still running.
    Inventory change: bone +7465248, cactus +14961472, carrot +72450076, fertilizer +624, gold +2452608, hay +72251392, power -4892.29, pumpkin +8859136, water +17897, weird_substance -820256, wood +74521088.
    Game time: 5h 28m 44s elapsed, 31m 16s of budget remaining.
    Output:
    (none)
  20. r205h 28mRanFinal49 lines · +7 −7 · ran 30m 46s
    from f import *
    from c import *
    from g import *
    from d import *
    from s import *
    from z import *
    from u import *
    from i import *
    NP = 6
    NC = 2
    R = 1830
    st = 0
    
    def pw(x):
    	global st
    	if num_items(Items.Power) < x:
    		a = get_time()
    		sunflowers()
    		st = st + get_time() - a
    
    init()
    S = get_time()
    it = 0
    while True:
    	it = it + 1
    	st = 0
    	t0 = get_time()
    	if it % 2 == 0 and get_time() - S < R - 450:
    		pw(2500)
    		dino()
    	t1 = get_time()
    	pw(1500)
    	poly(60)
    	t2 = get_time()
    	for q in range(NP):
    		pw(600)
    		if num_items(Items.Carrot) > 5000000:
    			pumpkins()
    	t3 = get_time()
    	for q in range(NC):
    		pw(800)
    		cactus()
    	t4 = get_time()
    	for q in range(3):
    		pw(1900)
    		if num_items(Items.Weird_Substance) > 500000:
    			mini(100)
    	t5 = get_time()
    	print(it, st, t1 - t0, t2 - t1, t3 - t2, t4 - t3, t5 - t4)
    Changes from the previous revision
      NP = 6
      NC = 2
    - NM = 300
    - R = 2600
    + R = 1830
      st = 0
      
      	st = 0
      	t0 = get_time()
    - 	if it % 2 == 1 and get_time() - S < R - 450:
    + 	if it % 2 == 0 and get_time() - S < R - 450:
      		pw(2500)
      		dino()
      	t3 = get_time()
      	for q in range(NC):
    - 		pw(600)
    + 		pw(800)
      		cactus()
      	t4 = get_time()
    - 	pw(2000)
    - 	if num_items(Items.Weird_Substance) > 1000000:
    - 		mini(NM)
    + 	for q in range(3):
    + 		pw(1900)
    + 		if num_items(Items.Weird_Substance) > 500000:
    + 			mini(100)
      	t5 = get_time()
      	print(it, st, t1 - t0, t2 - t1, t3 - t2, t4 - t3, t5 - t4)
    
    Write result the agent saw
    Saved m (49 lines).
    Game time: 5h 29m 4s elapsed, 30m 56s of budget remaining.
    run_program at 5h 29m for 480s (agent saw)
    Ran m for 8m of game time; it is still running.
    Inventory change: cactus +14991104, carrot +72839536, fertilizer +384, gold +2765088, hay +73044736, power +4035.62, pumpkin +8859136, water +9259, weird_substance +357664, wood +73458176.
    Game time: 5h 37m 14s elapsed, 22m 46s of budget remaining.
    Output:
    1 61.37 0 107.65 68.55 62.3 182.35
c.py1 write · 0 ran · first at 1h 13m
  1. r11h 13mSaved, never runFinal64 lines
    from f import *
    
    def par_lines(task, arg):
    	hs = []
    	for i in range(get_world_size()):
    		h = spawn_drone(task, i, arg)
    		if h == None:
    			task(i, arg)
    		else:
    			hs.append(h)
    	for h in hs:
    		wait_for(h)
    
    def sort_line(i, horiz):
    	n = get_world_size()
    	if horiz:
    		goto(0, i)
    		fwd = East
    		back = West
    	else:
    		goto(i, 0)
    		fwd = North
    		back = South
    	a = []
    	for j in range(n):
    		a.append(measure())
    		if j < n - 1:
    			move(fwd)
    	i = n - 1
    	while True:
    		if i == n - 1 or a[i] <= a[i + 1]:
    			if i == 0:
    				break
    			move(back)
    			i = i - 1
    		else:
    			swap(fwd)
    			t = a[i]
    			a[i] = a[i + 1]
    			a[i + 1] = t
    			move(fwd)
    			i = i + 1
    
    def cact_fn():
    	e = get_entity_type()
    	if e != Entities.Cactus:
    		if e != None:
    			harvest()
    		if get_ground_type() != Grounds.Soil:
    			till()
    		plant(Entities.Cactus)
    	return 0
    
    def cact_task(x0, x1):
    	strip(x0, x1, cact_fn)
    
    def cactus():
    	par(cact_task)
    	par_lines(sort_line, True)
    	par_lines(sort_line, False)
    	goto(0, 0)
    	while not can_harvest():
    		pass
    	harvest()
    Write result the agent saw
    Saved c (64 lines).
    Game time: 1h 13m 16s elapsed, 4h 46m 44s of budget remaining.
g.py1 write · 0 ran · first at 1h 16m
  1. r11h 16mSaved, never runFinal71 lines
    from f import *
    
    def sun_harv(lst):
    	for pos in lst:
    		goto(pos[0], pos[1])
    		while not can_harvest():
    			pass
    		harvest()
    
    def sunflowers():
    	res = par(sun_task)
    	p = 15
    	while p >= 7:
    		hs = []
    		for b in res:
    			if len(b[p]) > 0:
    				h = spawn_drone(sun_harv, b[p])
    				if h == None:
    					sun_harv(b[p])
    				else:
    					hs.append(h)
    		for h in hs:
    			wait_for(h)
    		p = p - 1
    
    def walker(dir0):
    	dirs = [North, East, South, West]
    	opp = {North: South, South: North, East: West, West: East}
    	stack = []
    	cur = dir0
    	while True:
    		if cur != None:
    			move(cur)
    		e = get_entity_type()
    		if e == Entities.Treasure:
    			harvest()
    			return
    		if e != Entities.Hedge:
    			return
    		back = None
    		if cur != None:
    			back = opp[cur]
    		opts = []
    		for d in dirs:
    			if d != back and can_move(d):
    				opts.append(d)
    		while len(opts) > 1:
    			d = opts.pop()
    			if spawn_drone(walker, d) == None:
    				opts.append(d)
    				break
    		stack.append([back, opts])
    		while True:
    			top = stack[len(stack) - 1]
    			if len(top[1]) > 0:
    				cur = top[1].pop()
    				break
    			stack.pop()
    			if top[0] == None or len(stack) == 0:
    				return
    			move(top[0])
    			if get_entity_type() != Entities.Hedge:
    				return
    
    def maze():
    	harvest()
    	plant(Entities.Bush)
    	use_item(Items.Weird_Substance, get_world_size() * 2 ** (num_unlocked(Unlocks.Mazes) - 1))
    	walker(None)
    	while num_drones() > 1:
    		pass
    Write result the agent saw
    Saved g (71 lines).
    Game time: 1h 16m 26s elapsed, 4h 43m 34s of budget remaining.
d.py2 writes · 0 ran · first at 1h 19m
  1. r11h 19mSaved, never run46 lines
    from f import *
    
    def clear_fn():
    	if get_entity_type() != None:
    		harvest()
    	if get_ground_type() != Grounds.Soil:
    		till()
    	return 0
    
    def clear_task(x0, x1):
    	strip(x0, x1, clear_fn)
    
    def dino():
    	par(clear_task)
    	goto(0, 0)
    	n = get_world_size()
    	change_hat(Hats.Dinosaur_Hat)
    	lim = n * n * n * n
    	k = 0
    	while k < lim:
    		k = k + 1
    		x = get_pos_x()
    		y = get_pos_y()
    		if y == 0:
    			if x > 0:
    				d = West
    			else:
    				d = North
    		elif x == 0:
    			if y < n - 1:
    				d = North
    			else:
    				d = East
    		elif x % 2 == 1:
    			if y > 1 or x == n - 1:
    				d = South
    			else:
    				d = East
    		else:
    			if y < n - 1:
    				d = North
    			else:
    				d = East
    		if not move(d):
    			break
    	change_hat(Hats.Brown_Hat)
    Write result the agent saw
    Saved d (46 lines).
    Game time: 1h 19m 36s elapsed, 4h 40m 24s of budget remaining.
  2. r21h 38mSaved, never runFinal99 lines · +54 −1
    from f import *
    
    def clear_fn():
    	if get_entity_type() != None:
    		harvest()
    	if get_ground_type() != Grounds.Soil:
    		till()
    	return 0
    
    def clear_task(x0, x1):
    	strip(x0, x1, clear_fn)
    
    def dino():
    	par(clear_task)
    	goto(0, 0)
    	n = get_world_size()
    	change_hat(Hats.Dinosaur_Hat)
    	lim = n * n * n * n
    	k = 0
    	while k < lim:
    		k = k + 1
    		x = get_pos_x()
    		y = get_pos_y()
    		if y == 0:
    			if x > 0:
    				d = West
    			else:
    				d = North
    		elif x == 0:
    			if y < n - 1:
    				d = North
    			else:
    				d = East
    		elif x % 2 == 1:
    			if y > 1 or x == n - 1:
    				d = South
    			else:
    				d = East
    		else:
    			if y < n - 1:
    				d = North
    			else:
    				d = East
    		if not move(d):
    			break
    	change_hat(Hats.Straw_Hat)
    
    def poly_task(ax, ay, k):
    	goto(ax, ay)
    	if get_entity_type() != None:
    		harvest()
    	if get_ground_type() != Grounds.Soil:
    		till()
    	for i in range(k):
    		h = num_items(Items.Hay)
    		w = num_items(Items.Wood)
    		c = num_items(Items.Carrot)
    		if w <= h and w <= c:
    			crop = Entities.Tree
    		elif c <= h and h > 2000 and w > 2000:
    			crop = Entities.Carrot
    		else:
    			crop = Entities.Grass
    		if get_entity_type() != None:
    			harvest()
    		plant(crop)
    		comp = get_companion()
    		if comp != None:
    			t = comp[0]
    			goto(comp[1][0], comp[1][1])
    			if get_entity_type() != t:
    				harvest()
    				if t == Entities.Carrot and get_ground_type() != Grounds.Soil:
    					till()
    				plant(t)
    			goto(ax, ay)
    		if get_water() < 0.75 and num_items(Items.Water) > 20:
    			use_item(Items.Water)
    		if get_entity_type() == None:
    			continue
    		while not can_harvest():
    			pass
    		if crop == Entities.Tree:
    			ws = num_items(Items.Weird_Substance)
    			if ws > 0 and ws < 30000:
    				use_item(Items.Weird_Substance)
    		harvest()
    
    def poly(k):
    	hs = []
    	for i in range(4):
    		for j in range(4):
    			h = spawn_drone(poly_task, 2 + 4 * i, 2 + 4 * j, k)
    			if h == None:
    				poly_task(2 + 4 * i, 2 + 4 * j, k)
    			else:
    				hs.append(h)
    	for h in hs:
    		wait_for(h)
    Changes from the previous revision
      		if not move(d):
      			break
    - 	change_hat(Hats.Brown_Hat)
    + 	change_hat(Hats.Straw_Hat)
    + 
    + def poly_task(ax, ay, k):
    + 	goto(ax, ay)
    + 	if get_entity_type() != None:
    + 		harvest()
    + 	if get_ground_type() != Grounds.Soil:
    + 		till()
    + 	for i in range(k):
    + 		h = num_items(Items.Hay)
    + 		w = num_items(Items.Wood)
    + 		c = num_items(Items.Carrot)
    + 		if w <= h and w <= c:
    + 			crop = Entities.Tree
    + 		elif c <= h and h > 2000 and w > 2000:
    + 			crop = Entities.Carrot
    + 		else:
    + 			crop = Entities.Grass
    + 		if get_entity_type() != None:
    + 			harvest()
    + 		plant(crop)
    + 		comp = get_companion()
    + 		if comp != None:
    + 			t = comp[0]
    + 			goto(comp[1][0], comp[1][1])
    + 			if get_entity_type() != t:
    + 				harvest()
    + 				if t == Entities.Carrot and get_ground_type() != Grounds.Soil:
    + 					till()
    + 				plant(t)
    + 			goto(ax, ay)
    + 		if get_water() < 0.75 and num_items(Items.Water) > 20:
    + 			use_item(Items.Water)
    + 		if get_entity_type() == None:
    + 			continue
    + 		while not can_harvest():
    + 			pass
    + 		if crop == Entities.Tree:
    + 			ws = num_items(Items.Weird_Substance)
    + 			if ws > 0 and ws < 30000:
    + 				use_item(Items.Weird_Substance)
    + 		harvest()
    + 
    + def poly(k):
    + 	hs = []
    + 	for i in range(4):
    + 		for j in range(4):
    + 			h = spawn_drone(poly_task, 2 + 4 * i, 2 + 4 * j, k)
    + 			if h == None:
    + 				poly_task(2 + 4 * i, 2 + 4 * j, k)
    + 			else:
    + 				hs.append(h)
    + 	for h in hs:
    + 		wait_for(h)
    
    Write result the agent saw
    Saved d (99 lines).
    Game time: 1h 39m 9s elapsed, 4h 20m 51s of budget remaining.
td.py1 write · 1 ran · first at 1h 33m
  1. r11h 33mRanFinal4 lines · ran 4m 37s · 1 runtime error
    from f import *
    from d import *
    init()
    dino()
    Write result the agent saw
    Saved td (4 lines).
    Game time: 1h 33m 32s elapsed, 4h 26m 28s of budget remaining.
    run_program at 1h 33m for 600s (agent saw)
    Ran td for 4m 37s of game time; it stopped with an error: Hats.Brown_Hat must be unlocked before this can be used.
    Inventory change: cactus -1020, fertilizer +221, gold +512, hay +8192, power -265.05, water +443.
    Game time: 1h 38m 19s elapsed, 4h 21m 41s of budget remaining.
    Output:
    Error: Hats.Brown_Hat must be unlocked before this can be used.
    In: dino
    change_hat(Hats.Brown_Hat)
              ^^              
    --------------------------------------------------------------------
    Runtime error at 1h 38m (telemetry; not shown to the agent)
    Hats.Brown_Hat must be unlocked before this can be used.
th.py4 writes · 4 ran · first at 1h 38m
  1. r11h 38mRan5 lines · ran 0s · 1 runtime error
    change_hat(Hats.Dinosaur_Hat)
    move(North)
    move(North)
    change_hat(Hats.Straw_Hat)
    print(num_items(Items.Bone))
    Write result the agent saw
    Saved th (5 lines).
    Game time: 1h 38m 39s elapsed, 4h 21m 21s of budget remaining.
    run_program at 1h 38m for 20s (agent saw)
    Ran th for 0s of game time; it stopped with an error: Unlocks.Debug must be unlocked before this can be used.
    Inventory change: bone +130052, cactus -8, fertilizer +1, water +1.
    Game time: 1h 38m 49s elapsed, 4h 21m 11s of budget remaining.
    Output:
    Error: Unlocks.Debug must be unlocked before this can be used.
    In: 
    print(num_items(Items.Bone))
         ^^                     
    --------------------------------------------------------------------
    Runtime error at 1h 38m (telemetry; not shown to the agent)
    Unlocks.Debug must be unlocked before this can be used.
  2. r22h 02mRan12 lines · +12 −5 · ran 25s
    from f import *
    init()
    goto(5, 5)
    harvest()
    plant(Entities.Bush)
    use_item(Items.Weird_Substance, 16)
    goto(12, 12)
    harvest()
    plant(Entities.Bush)
    use_item(Items.Weird_Substance, 12)
    while True:
    	pass
    Changes from the previous revision
    - change_hat(Hats.Dinosaur_Hat)
    - move(North)
    - move(North)
    - change_hat(Hats.Straw_Hat)
    - print(num_items(Items.Bone))
    + from f import *
    + init()
    + goto(5, 5)
    + harvest()
    + plant(Entities.Bush)
    + use_item(Items.Weird_Substance, 16)
    + goto(12, 12)
    + harvest()
    + plant(Entities.Bush)
    + use_item(Items.Weird_Substance, 12)
    + while True:
    + 	pass
    
    Write result the agent saw
    Saved th (12 lines).
    Game time: 2h 2m 29s elapsed, 3h 57m 31s of budget remaining.
    run_program at 2h 02m for 5s (agent saw)
    Ran th for 5s of game time; it is still running.
    Inventory change: fertilizer +4, power -5.08, water +16, weird_substance -16.
    Game time: 2h 2m 44s elapsed, 3h 57m 16s of budget remaining.
    Output:
    (none)
  3. r34h 22mRan17 lines · +13 −8 · ran 10s
    from f import *
    from z import *
    from i import *
    init()
    a = num_items(Items.Weird_Substance)
    poly_task(4, 4, 8)
    b = num_items(Items.Weird_Substance)
    print(a, b, WC)
    goto(8, 8)
    harvest()
    plant(Entities.Tree)
    while not can_harvest():
    	pass
    use_item(Items.Weird_Substance)
    w0 = num_items(Items.Wood)
    harvest()
    print(num_items(Items.Weird_Substance) - b, num_items(Items.Wood) - w0)
    Changes from the previous revision
      from f import *
    + from z import *
    + from i import *
      init()
    - goto(5, 5)
    - harvest()
    - plant(Entities.Bush)
    - use_item(Items.Weird_Substance, 16)
    - goto(12, 12)
    + a = num_items(Items.Weird_Substance)
    + poly_task(4, 4, 8)
    + b = num_items(Items.Weird_Substance)
    + print(a, b, WC)
    + goto(8, 8)
      harvest()
    - plant(Entities.Bush)
    - use_item(Items.Weird_Substance, 12)
    - while True:
    + plant(Entities.Tree)
    + while not can_harvest():
      	pass
    + use_item(Items.Weird_Substance)
    + w0 = num_items(Items.Wood)
    + harvest()
    + print(num_items(Items.Weird_Substance) - b, num_items(Items.Wood) - w0)
    
    Write result the agent saw
    Saved th (17 lines).
    Game time: 4h 23m elapsed, 1h 37m of budget remaining.
    run_program at 4h 23m for 60s (agent saw)
    Ran th for 10s of game time; it finished.
    Inventory change: carrot +81920, fertilizer +8, hay +575232, power -8.52, water +248, weird_substance +82749, wood -768.
    Game time: 4h 23m 20s elapsed, 1h 36m 40s of budget remaining.
    Output:
    270627 352801 3000000
    1279 1280
  4. r45h 14mRanFinal67 lines · +64 −14 · ran 24s
    from f import *
    from i import *
    
    def sun_col(x, t0, dl):
    	n = get_world_size()
    	a0 = get_time()
    	goto(x, 0)
    	a1 = get_time()
    	b = []
    	for i in range(16):
    		b.append([])
    	for y in range(n):
    		if get_entity_type() != None:
    			harvest()
    		if get_ground_type() != Grounds.Soil:
    			till()
    		plant(Entities.Sunflower)
    		if get_water() < 0.5:
    			use_item(Items.Water)
    		b[measure()].append(y)
    		if y < n - 1:
    			move(North)
    	a2 = get_time()
    	if x == 5:
    		print("plant", a1 - a0, a2 - a1, a2 - t0)
    	p = 15
    	while p >= 7:
    		while get_time() < t0 + (15 - p) * dl:
    			pass
    		a3 = get_time()
    		lst = b[p]
    		m = len(lst)
    		rev = get_pos_y() > n // 2
    		wt = 0
    		for j in range(m):
    			if rev:
    				y = lst[m - 1 - j]
    			else:
    				y = lst[j]
    			goto(x, y)
    			a4 = get_time()
    			while not can_harvest():
    				pass
    			wt = wt + get_time() - a4
    			harvest()
    		if x == 5:
    			print(p, m, get_time() - a3, wt, get_time() - t0)
    		p = p - 1
    
    def sunflowers():
    	n = get_world_size()
    	t0 = get_time() + 9
    	hs = []
    	for x in range(n):
    		h = spawn_drone(sun_col, x, t0, 1.3)
    		if h == None:
    			sun_col(x, t0, 1.3)
    		else:
    			hs.append(h)
    	print("spawned", get_time() - t0)
    	for h in hs:
    		wait_for(h)
    
    init()
    a = get_time()
    sunflowers()
    print("total", get_time() - a)
    Changes from the previous revision
      from f import *
    - from z import *
      from i import *
    + 
    + def sun_col(x, t0, dl):
    + 	n = get_world_size()
    + 	a0 = get_time()
    + 	goto(x, 0)
    + 	a1 = get_time()
    + 	b = []
    + 	for i in range(16):
    + 		b.append([])
    + 	for y in range(n):
    + 		if get_entity_type() != None:
    + 			harvest()
    + 		if get_ground_type() != Grounds.Soil:
    + 			till()
    + 		plant(Entities.Sunflower)
    + 		if get_water() < 0.5:
    + 			use_item(Items.Water)
    + 		b[measure()].append(y)
    + 		if y < n - 1:
    + 			move(North)
    + 	a2 = get_time()
    + 	if x == 5:
    + 		print("plant", a1 - a0, a2 - a1, a2 - t0)
    + 	p = 15
    + 	while p >= 7:
    + 		while get_time() < t0 + (15 - p) * dl:
    + 			pass
    + 		a3 = get_time()
    + 		lst = b[p]
    + 		m = len(lst)
    + 		rev = get_pos_y() > n // 2
    + 		wt = 0
    + 		for j in range(m):
    + 			if rev:
    + 				y = lst[m - 1 - j]
    + 			else:
    + 				y = lst[j]
    + 			goto(x, y)
    + 			a4 = get_time()
    + 			while not can_harvest():
    + 				pass
    + 			wt = wt + get_time() - a4
    + 			harvest()
    + 		if x == 5:
    + 			print(p, m, get_time() - a3, wt, get_time() - t0)
    + 		p = p - 1
    + 
    + def sunflowers():
    + 	n = get_world_size()
    + 	t0 = get_time() + 9
    + 	hs = []
    + 	for x in range(n):
    + 		h = spawn_drone(sun_col, x, t0, 1.3)
    + 		if h == None:
    + 			sun_col(x, t0, 1.3)
    + 		else:
    + 			hs.append(h)
    + 	print("spawned", get_time() - t0)
    + 	for h in hs:
    + 		wait_for(h)
    + 
      init()
    - a = num_items(Items.Weird_Substance)
    - poly_task(4, 4, 8)
    - b = num_items(Items.Weird_Substance)
    - print(a, b, WC)
    - goto(8, 8)
    - harvest()
    - plant(Entities.Tree)
    - while not can_harvest():
    - 	pass
    - use_item(Items.Weird_Substance)
    - w0 = num_items(Items.Wood)
    - harvest()
    - print(num_items(Items.Weird_Substance) - b, num_items(Items.Wood) - w0)
    + a = get_time()
    + sunflowers()
    + print("total", get_time() - a)
    
    Write result the agent saw
    Saved th (67 lines).
    Game time: 5h 14m 50s elapsed, 45m 10s of budget remaining.
    run_program at 5h 14m for 200s (agent saw)
    Ran th for 24s of game time; it finished.
    Inventory change: carrot -484, fertilizer +19, hay +247808, power +2583.20, water +133, weird_substance -704.
    Game time: 5h 15m 24s elapsed, 44m 36s of budget remaining.
    Output:
    spawned -8.26
    plant 0.43 3.65 -4.72
    15 4 0.65 0 0.65
    14 1 0.4 0 2.05
    13 1 0.14 0 3.19
    12 3 0.74 0 4.93
    11 2 0.67 0 6.61
    10 3 0.48 0 8.08
    9 3 0.91 0 9.99
    8 2 0.41 0 11.4
    7 3 0.54 0 12.94
    total 22.95
z.py3 writes · 0 ran · first at 2h 03m
  1. r12h 03mSaved, never run85 lines
    from f import *
    WC = 200000
    
    def mini_task(cx, cy, k, amt):
    	goto(cx, cy)
    	while num_drones() < max_drones():
    		pass
    	do_a_flip()
    	for i in range(k):
    		harvest()
    		plant(Entities.Bush)
    		use_item(Items.Weird_Substance, amt)
    		solve(1)
    		goto(cx, cy)
    
    def mini(k):
    	amt = 4 * 2 ** (num_unlocked(Unlocks.Mazes) - 1)
    	cs = []
    	for i in range(4):
    		for j in range(4):
    			jj = j
    			if i % 2 == 1:
    				jj = 3 - j
    			cs.append((4 * i + 2, 4 * jj + 2))
    	hs = []
    	for q in range(15):
    		goto(cs[q][0], cs[q][1])
    		hs.append(spawn_drone(mini_task, cs[q][0], cs[q][1], k, amt))
    	mini_task(cs[15][0], cs[15][1], k, amt)
    	for h in hs:
    		if h != None:
    			wait_for(h)
    
    def poly_task(ax, ay, k):
    	goto(ax, ay)
    	if get_entity_type() != None:
    		harvest()
    	if get_ground_type() != Grounds.Soil:
    		till()
    	for i in range(k):
    		h = num_items(Items.Hay)
    		w = num_items(Items.Wood)
    		c = num_items(Items.Carrot)
    		ws = num_items(Items.Weird_Substance)
    		if (w <= h and w <= c) or ws < 20000:
    			crop = Entities.Tree
    		elif c <= h and h > 2000 and w > 2000:
    			crop = Entities.Carrot
    		else:
    			crop = Entities.Grass
    		if get_entity_type() != None:
    			harvest()
    		plant(crop)
    		comp = get_companion()
    		if comp != None:
    			t = comp[0]
    			goto(comp[1][0], comp[1][1])
    			if get_entity_type() != t:
    				harvest()
    				if t == Entities.Carrot and get_ground_type() != Grounds.Soil:
    					till()
    				plant(t)
    			goto(ax, ay)
    		if get_water() < 0.75 and num_items(Items.Water) > 20:
    			use_item(Items.Water)
    		if get_entity_type() == None:
    			continue
    		while not can_harvest():
    			pass
    		if crop == Entities.Tree:
    			if ws > 0 and ws < WC:
    				use_item(Items.Weird_Substance)
    		harvest()
    
    def poly(k):
    	hs = []
    	for i in range(4):
    		for j in range(4):
    			h = spawn_drone(poly_task, 2 + 4 * i, 2 + 4 * j, k)
    			if h == None:
    				poly_task(2 + 4 * i, 2 + 4 * j, k)
    			else:
    				hs.append(h)
    	for h in hs:
    		wait_for(h)
    Write result the agent saw
    Saved z (85 lines).
    Game time: 2h 3m 14s elapsed, 3h 56m 46s of budget remaining.
  2. r22h 22mSaved, never run96 lines · +30 −19
    from f import *
    WC = 400000
    
    def mini_task(cx, cy, k, amt, tot):
    	goto(cx, cy)
    	while num_drones() < tot:
    		pass
    	do_a_flip()
    	for i in range(k):
    		harvest()
    		plant(Entities.Bush)
    		use_item(Items.Weird_Substance, amt)
    		solve(1)
    		goto(cx, cy)
    
    def mini(k):
    	s = 3
    	n = get_world_size()
    	m = n // s
    	amt = s * 2 ** (num_unlocked(Unlocks.Mazes) - 1)
    	cs = []
    	for i in range(m):
    		for j in range(m):
    			jj = j
    			if i % 2 == 1:
    				jj = m - 1 - j
    			if len(cs) < max_drones():
    				cs.append((s * i + 1, s * jj + 1))
    	tot = len(cs)
    	hs = []
    	for q in range(tot - 1):
    		goto(cs[q][0], cs[q][1])
    		hs.append(spawn_drone(mini_task, cs[q][0], cs[q][1], k, amt, tot))
    	mini_task(cs[tot - 1][0], cs[tot - 1][1], k, amt, tot)
    	for h in hs:
    		if h != None:
    			wait_for(h)
    
    def poly_task(ax, ay, k):
    	goto(ax, ay)
    	if get_entity_type() != None:
    		harvest()
    	if get_ground_type() != Grounds.Soil:
    		till()
    	for i in range(k):
    		h = num_items(Items.Hay)
    		w = num_items(Items.Wood)
    		c = num_items(Items.Carrot)
    		ws = num_items(Items.Weird_Substance)
    		if (w <= h and w <= c) or ws < 20000:
    			crop = Entities.Tree
    		elif c <= h and h > 20000 and w > 20000:
    			crop = Entities.Carrot
    		else:
    			crop = Entities.Grass
    		if get_entity_type() != None:
    			harvest()
    		plant(crop)
    		comp = get_companion()
    		if comp != None:
    			t = comp[0]
    			goto(comp[1][0], comp[1][1])
    			if get_entity_type() != t:
    				harvest()
    				if t == Entities.Carrot and get_ground_type() != Grounds.Soil:
    					till()
    				plant(t)
    			goto(ax, ay)
    		if get_water() < 0.75 and num_items(Items.Water) > 20:
    			use_item(Items.Water)
    		if get_entity_type() == None:
    			continue
    		while not can_harvest():
    			pass
    		if crop == Entities.Tree:
    			if ws > 0 and ws < WC:
    				use_item(Items.Weird_Substance)
    		harvest()
    
    def poly(k):
    	n = get_world_size()
    	cs = []
    	for x in range(n):
    		for y in range(n):
    			if (x % 4 == 0 and y % 4 == 0) or (x % 4 == 2 and y % 4 == 2):
    				if len(cs) < max_drones():
    					cs.append((x, y))
    	hs = []
    	for a in cs:
    		h = spawn_drone(poly_task, a[0], a[1], k)
    		if h == None:
    			poly_task(a[0], a[1], k)
    		else:
    			hs.append(h)
    	for h in hs:
    		wait_for(h)
    Changes from the previous revision
      from f import *
    - WC = 200000
    + WC = 400000
      
    - def mini_task(cx, cy, k, amt):
    + def mini_task(cx, cy, k, amt, tot):
      	goto(cx, cy)
    - 	while num_drones() < max_drones():
    + 	while num_drones() < tot:
      		pass
      	do_a_flip()
      
      def mini(k):
    - 	amt = 4 * 2 ** (num_unlocked(Unlocks.Mazes) - 1)
    + 	s = 3
    + 	n = get_world_size()
    + 	m = n // s
    + 	amt = s * 2 ** (num_unlocked(Unlocks.Mazes) - 1)
      	cs = []
    - 	for i in range(4):
    - 		for j in range(4):
    + 	for i in range(m):
    + 		for j in range(m):
      			jj = j
      			if i % 2 == 1:
    - 				jj = 3 - j
    - 			cs.append((4 * i + 2, 4 * jj + 2))
    + 				jj = m - 1 - j
    + 			if len(cs) < max_drones():
    + 				cs.append((s * i + 1, s * jj + 1))
    + 	tot = len(cs)
      	hs = []
    - 	for q in range(15):
    + 	for q in range(tot - 1):
      		goto(cs[q][0], cs[q][1])
    - 		hs.append(spawn_drone(mini_task, cs[q][0], cs[q][1], k, amt))
    - 	mini_task(cs[15][0], cs[15][1], k, amt)
    + 		hs.append(spawn_drone(mini_task, cs[q][0], cs[q][1], k, amt, tot))
    + 	mini_task(cs[tot - 1][0], cs[tot - 1][1], k, amt, tot)
      	for h in hs:
      		if h != None:
      		if (w <= h and w <= c) or ws < 20000:
      			crop = Entities.Tree
    - 		elif c <= h and h > 2000 and w > 2000:
    + 		elif c <= h and h > 20000 and w > 20000:
      			crop = Entities.Carrot
      		else:
      
      def poly(k):
    + 	n = get_world_size()
    + 	cs = []
    + 	for x in range(n):
    + 		for y in range(n):
    + 			if (x % 4 == 0 and y % 4 == 0) or (x % 4 == 2 and y % 4 == 2):
    + 				if len(cs) < max_drones():
    + 					cs.append((x, y))
      	hs = []
    - 	for i in range(4):
    - 		for j in range(4):
    - 			h = spawn_drone(poly_task, 2 + 4 * i, 2 + 4 * j, k)
    - 			if h == None:
    - 				poly_task(2 + 4 * i, 2 + 4 * j, k)
    - 			else:
    - 				hs.append(h)
    + 	for a in cs:
    + 		h = spawn_drone(poly_task, a[0], a[1], k)
    + 		if h == None:
    + 			poly_task(a[0], a[1], k)
    + 		else:
    + 			hs.append(h)
      	for h in hs:
      		wait_for(h)
    
    Write result the agent saw
    Saved z (96 lines).
    Game time: 2h 22m 38s elapsed, 3h 37m 22s of budget remaining.
  3. r34h 17mSaved, never runFinal95 lines · +4 −5
    from f import *
    WC = 3000000
    
    def mini_task(cx, cy, k, amt, tot):
    	goto(cx, cy)
    	while num_drones() < tot:
    		pass
    	do_a_flip()
    	for i in range(k):
    		harvest()
    		plant(Entities.Bush)
    		use_item(Items.Weird_Substance, amt)
    		solve(1)
    		goto(cx, cy)
    
    def mini(k):
    	s = 3
    	n = get_world_size()
    	m = n // s
    	amt = s * 2 ** (num_unlocked(Unlocks.Mazes) - 1)
    	cs = []
    	for i in range(m):
    		for j in range(m):
    			jj = j
    			if i % 2 == 1:
    				jj = m - 1 - j
    			if len(cs) < max_drones():
    				cs.append((s * i + 1, s * jj + 1))
    	tot = len(cs)
    	hs = []
    	for q in range(tot - 1):
    		goto(cs[q][0], cs[q][1])
    		hs.append(spawn_drone(mini_task, cs[q][0], cs[q][1], k, amt, tot))
    	mini_task(cs[tot - 1][0], cs[tot - 1][1], k, amt, tot)
    	for h in hs:
    		if h != None:
    			wait_for(h)
    
    def poly_task(ax, ay, k):
    	goto(ax, ay)
    	if get_entity_type() != None:
    		harvest()
    	if get_ground_type() != Grounds.Soil:
    		till()
    	for i in range(k):
    		h = num_items(Items.Hay)
    		w = num_items(Items.Wood)
    		c = num_items(Items.Carrot)
    		ws = num_items(Items.Weird_Substance)
    		if w <= h and w <= c:
    			crop = Entities.Tree
    		elif c <= h and h > 20000 and w > 20000:
    			crop = Entities.Carrot
    		else:
    			crop = Entities.Grass
    		if get_entity_type() != None:
    			harvest()
    		plant(crop)
    		comp = get_companion()
    		if comp != None:
    			t = comp[0]
    			goto(comp[1][0], comp[1][1])
    			if get_entity_type() != t:
    				harvest()
    				if t == Entities.Carrot and get_ground_type() != Grounds.Soil:
    					till()
    				plant(t)
    			goto(ax, ay)
    		if get_water() < 0.75 and num_items(Items.Water) > 20:
    			use_item(Items.Water)
    		if get_entity_type() == None:
    			continue
    		while not can_harvest():
    			pass
    		if ws > 0 and ws < WC and i % 4 == 0:
    			use_item(Items.Weird_Substance)
    		harvest()
    
    def poly(k):
    	n = get_world_size()
    	cs = []
    	for x in range(n):
    		for y in range(n):
    			if (x % 4 == 0 and y % 4 == 0) or (x % 4 == 2 and y % 4 == 2):
    				if len(cs) < max_drones():
    					cs.append((x, y))
    	hs = []
    	for a in cs:
    		h = spawn_drone(poly_task, a[0], a[1], k)
    		if h == None:
    			poly_task(a[0], a[1], k)
    		else:
    			hs.append(h)
    	for h in hs:
    		wait_for(h)
    Changes from the previous revision
      from f import *
    - WC = 400000
    + WC = 3000000
      
      def mini_task(cx, cy, k, amt, tot):
      		c = num_items(Items.Carrot)
      		ws = num_items(Items.Weird_Substance)
    - 		if (w <= h and w <= c) or ws < 20000:
    + 		if w <= h and w <= c:
      			crop = Entities.Tree
      		elif c <= h and h > 20000 and w > 20000:
      		while not can_harvest():
      			pass
    - 		if crop == Entities.Tree:
    - 			if ws > 0 and ws < WC:
    - 				use_item(Items.Weird_Substance)
    + 		if ws > 0 and ws < WC and i % 4 == 0:
    + 			use_item(Items.Weird_Substance)
      		harvest()
      
    
    Write result the agent saw
    Saved z (95 lines).
    Game time: 4h 17m 45s elapsed, 1h 42m 15s of budget remaining.
i.py1 write · 0 ran · first at 2h 33m
  1. r12h 33mSaved, never runFinal8 lines
    def init():
    	change_hat(Hats.Straw_Hat)
    	harvest()
    	if get_entity_type() != None:
    		harvest()
    	plant(Entities.Bush)
    	use_item(Items.Weird_Substance, get_world_size() * 2 ** (num_unlocked(Unlocks.Mazes) - 1))
    	harvest()
    Write result the agent saw
    Saved i (8 lines).
    Game time: 2h 33m 28s elapsed, 3h 26m 32s of budget remaining.
s.py2 writes · 0 ran · first at 3h 13m
  1. r13h 13mSaved, never run88 lines
    from f import *
    from d import *
    
    def dino():
    	par(clear_task)
    	goto(0, 0)
    	n = get_world_size()
    	N = n * n
    	rowbase = n + (n - 1) * (n - 1)
    	change_hat(Hats.Dinosaur_Hat)
    	path = [0]
    	L = 0
    	hx = 0
    	hy = 0
    	hi = 0
    	nxt = measure()
    	ai = -1
    	onapple = True
    	lim = N * N
    	k = 0
    	dxs = [0, 1, 0, -1]
    	dys = [1, 0, -1, 0]
    	dirs = [North, East, South, West]
    	while k < lim:
    		k = k + 1
    		if onapple:
    			tx = nxt[0]
    			ty = nxt[1]
    			if ty == 0:
    				if tx == 0:
    					ai = 0
    				else:
    					ai = rowbase + n - 1 - tx
    			elif tx == 0:
    				ai = ty
    			elif tx % 2 == 1:
    				ai = n + (tx - 1) * (n - 1) + n - 1 - ty
    			else:
    				ai = n + (tx - 1) * (n - 1) + ty - 1
    		da = (ai - hi) % N
    		if L > 0:
    			dt = (path[len(path) - 1 - L] - hi) % N
    		else:
    			dt = N
    		bd = -1
    		bdc = 0
    		bi = 0
    		bx = 0
    		by = 0
    		for q in range(4):
    			cx = hx + dxs[q]
    			cy = hy + dys[q]
    			if cx < 0 or cy < 0 or cx >= n or cy >= n:
    				continue
    			if cy == 0:
    				if cx == 0:
    					ci = 0
    				else:
    					ci = rowbase + n - 1 - cx
    			elif cx == 0:
    				ci = cy
    			elif cx % 2 == 1:
    				ci = n + (cx - 1) * (n - 1) + n - 1 - cy
    			else:
    				ci = n + (cx - 1) * (n - 1) + cy - 1
    			dc = (ci - hi) % N
    			if dc == 1 or (dc <= da and dc < dt - 2 and L < N // 2):
    				if dc > bdc:
    					bdc = dc
    					bd = q
    					bi = ci
    					bx = cx
    					by = cy
    		if bd < 0:
    			break
    		if not move(dirs[bd]):
    			break
    		if onapple:
    			L = L + 1
    			onapple = False
    		hx = bx
    		hy = by
    		hi = bi
    		path.append(hi)
    		if hi == ai:
    			onapple = True
    			nxt = measure()
    	change_hat(Hats.Straw_Hat)
    Write result the agent saw
    Saved s (88 lines).
    Game time: 3h 13m 16s elapsed, 2h 46m 44s of budget remaining.
  2. r23h 13mSaved, never runFinal123 lines · +43 −8
    from f import *
    from d import *
    
    def dino():
    	par(clear_task)
    	goto(0, 0)
    	n = get_world_size()
    	N = n * n
    	rowbase = n + (n - 1) * (n - 1)
    	dxs = [0, 1, 0, -1]
    	dys = [1, 0, -1, 0]
    	dirs = [North, East, South, West]
    	tab = []
    	for x in range(n):
    		col = []
    		for y in range(n):
    			if y == 0:
    				if x > 0:
    					col.append(3)
    				else:
    					col.append(0)
    			elif x == 0:
    				if y < n - 1:
    					col.append(0)
    				else:
    					col.append(1)
    			elif x % 2 == 1:
    				if y > 1 or x == n - 1:
    					col.append(2)
    				else:
    					col.append(1)
    			else:
    				if y < n - 1:
    					col.append(0)
    				else:
    					col.append(1)
    		tab.append(col)
    	change_hat(Hats.Dinosaur_Hat)
    	path = [0]
    	L = 0
    	hx = 0
    	hy = 0
    	hi = 0
    	nxt = measure()
    	ai = -1
    	onapple = True
    	done = False
    	while L < N // 3:
    		if onapple:
    			tx = nxt[0]
    			ty = nxt[1]
    			if ty == 0:
    				if tx == 0:
    					ai = 0
    				else:
    					ai = rowbase + n - 1 - tx
    			elif tx == 0:
    				ai = ty
    			elif tx % 2 == 1:
    				ai = n + (tx - 1) * (n - 1) + n - 1 - ty
    			else:
    				ai = n + (tx - 1) * (n - 1) + ty - 1
    		da = (ai - hi) % N
    		if L > 0:
    			dt = (path[len(path) - 1 - L] - hi) % N
    		else:
    			dt = N
    		bd = -1
    		bdc = 0
    		bi = 0
    		bx = 0
    		by = 0
    		for q in range(4):
    			cx = hx + dxs[q]
    			cy = hy + dys[q]
    			if cx < 0 or cy < 0 or cx >= n or cy >= n:
    				continue
    			if cy == 0:
    				if cx == 0:
    					ci = 0
    				else:
    					ci = rowbase + n - 1 - cx
    			elif cx == 0:
    				ci = cy
    			elif cx % 2 == 1:
    				ci = n + (cx - 1) * (n - 1) + n - 1 - cy
    			else:
    				ci = n + (cx - 1) * (n - 1) + cy - 1
    			dc = (ci - hi) % N
    			if dc == 1 or (dc <= da and dc < dt - 2):
    				if dc > bdc:
    					bdc = dc
    					bd = q
    					bi = ci
    					bx = cx
    					by = cy
    		if bd < 0:
    			done = True
    			break
    		if not move(dirs[bd]):
    			done = True
    			break
    		if onapple:
    			L = L + 1
    			onapple = False
    		hx = bx
    		hy = by
    		hi = bi
    		path.append(hi)
    		if hi == ai:
    			onapple = True
    			nxt = measure()
    	if not done:
    		k = 0
    		lim = N * N
    		while k < lim:
    			k = k + 1
    			q = tab[hx][hy]
    			if not move(dirs[q]):
    				break
    			hx = hx + dxs[q]
    			hy = hy + dys[q]
    	change_hat(Hats.Straw_Hat)
    Changes from the previous revision
      	N = n * n
      	rowbase = n + (n - 1) * (n - 1)
    + 	dxs = [0, 1, 0, -1]
    + 	dys = [1, 0, -1, 0]
    + 	dirs = [North, East, South, West]
    + 	tab = []
    + 	for x in range(n):
    + 		col = []
    + 		for y in range(n):
    + 			if y == 0:
    + 				if x > 0:
    + 					col.append(3)
    + 				else:
    + 					col.append(0)
    + 			elif x == 0:
    + 				if y < n - 1:
    + 					col.append(0)
    + 				else:
    + 					col.append(1)
    + 			elif x % 2 == 1:
    + 				if y > 1 or x == n - 1:
    + 					col.append(2)
    + 				else:
    + 					col.append(1)
    + 			else:
    + 				if y < n - 1:
    + 					col.append(0)
    + 				else:
    + 					col.append(1)
    + 		tab.append(col)
      	change_hat(Hats.Dinosaur_Hat)
      	path = [0]
      	ai = -1
      	onapple = True
    - 	lim = N * N
    - 	k = 0
    - 	dxs = [0, 1, 0, -1]
    - 	dys = [1, 0, -1, 0]
    - 	dirs = [North, East, South, West]
    - 	while k < lim:
    - 		k = k + 1
    + 	done = False
    + 	while L < N // 3:
      		if onapple:
      			tx = nxt[0]
      				ci = n + (cx - 1) * (n - 1) + cy - 1
      			dc = (ci - hi) % N
    - 			if dc == 1 or (dc <= da and dc < dt - 2 and L < N // 2):
    + 			if dc == 1 or (dc <= da and dc < dt - 2):
      				if dc > bdc:
      					bdc = dc
      					by = cy
      		if bd < 0:
    + 			done = True
      			break
      		if not move(dirs[bd]):
    + 			done = True
      			break
      		if onapple:
      			onapple = True
      			nxt = measure()
    + 	if not done:
    + 		k = 0
    + 		lim = N * N
    + 		while k < lim:
    + 			k = k + 1
    + 			q = tab[hx][hy]
    + 			if not move(dirs[q]):
    + 				break
    + 			hx = hx + dxs[q]
    + 			hy = hy + dys[q]
      	change_hat(Hats.Straw_Hat)
    
    Write result the agent saw
    Saved s (123 lines).
    Game time: 3h 13m 26s elapsed, 2h 46m 34s of budget remaining.
u.py2 writes · 0 ran · first at 3h 40m
  1. r13h 40mSaved, never run48 lines
    from f import *
    
    def sun_col(x, t0, dl):
    	n = get_world_size()
    	goto(x, 0)
    	b = []
    	for i in range(16):
    		b.append([])
    	for y in range(n):
    		if get_entity_type() != None:
    			harvest()
    		if get_ground_type() != Grounds.Soil:
    			till()
    		plant(Entities.Sunflower)
    		if get_water() < 0.5:
    			use_item(Items.Water)
    		b[measure()].append(y)
    		if y < n - 1:
    			move(North)
    	p = 15
    	while p >= 7:
    		while get_time() < t0 + (15 - p) * dl:
    			pass
    		lst = b[p]
    		m = len(lst)
    		for j in range(m):
    			if get_pos_y() > n // 2:
    				y = lst[m - 1 - j]
    			else:
    				y = lst[j]
    			goto(x, y)
    			while not can_harvest():
    				pass
    			harvest()
    		p = p - 1
    
    def sunflowers():
    	n = get_world_size()
    	t0 = get_time() + 9
    	hs = []
    	for x in range(n):
    		h = spawn_drone(sun_col, x, t0, 1.3)
    		if h == None:
    			sun_col(x, t0, 1.3)
    		else:
    			hs.append(h)
    	for h in hs:
    		wait_for(h)
    Write result the agent saw
    Saved u (48 lines).
    Game time: 3h 40m 29s elapsed, 2h 19m 31s of budget remaining.
  2. r23h 40mSaved, never runFinal49 lines · +2 −1
    from f import *
    
    def sun_col(x, t0, dl):
    	n = get_world_size()
    	goto(x, 0)
    	b = []
    	for i in range(16):
    		b.append([])
    	for y in range(n):
    		if get_entity_type() != None:
    			harvest()
    		if get_ground_type() != Grounds.Soil:
    			till()
    		plant(Entities.Sunflower)
    		if get_water() < 0.5:
    			use_item(Items.Water)
    		b[measure()].append(y)
    		if y < n - 1:
    			move(North)
    	p = 15
    	while p >= 7:
    		while get_time() < t0 + (15 - p) * dl:
    			pass
    		lst = b[p]
    		m = len(lst)
    		rev = get_pos_y() > n // 2
    		for j in range(m):
    			if rev:
    				y = lst[m - 1 - j]
    			else:
    				y = lst[j]
    			goto(x, y)
    			while not can_harvest():
    				pass
    			harvest()
    		p = p - 1
    
    def sunflowers():
    	n = get_world_size()
    	t0 = get_time() + 9
    	hs = []
    	for x in range(n):
    		h = spawn_drone(sun_col, x, t0, 1.3)
    		if h == None:
    			sun_col(x, t0, 1.3)
    		else:
    			hs.append(h)
    	for h in hs:
    		wait_for(h)
    Changes from the previous revision
      		lst = b[p]
      		m = len(lst)
    + 		rev = get_pos_y() > n // 2
      		for j in range(m):
    - 			if get_pos_y() > n // 2:
    + 			if rev:
      				y = lst[m - 1 - j]
      			else:
    
    Write result the agent saw
    Saved u (49 lines).
    Game time: 3h 40m 49s elapsed, 2h 19m 11s of budget remaining.
log22 said · 3 thought · 250 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="h" · evidence
    result
    Saved h (20 lines).
    Game time: 40s elapsed, 5h 59m 20s of budget remaining.
  5. 40srun_program name="h" seconds=30
    result
    Ran h for 10s of game time; it finished.
    Inventory change: hay +20.
    Game time: 1m elapsed, 5h 59m of budget remaining.
    Output:
    (none)
  6. 1m 00sbuy_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 10s elapsed, 5h 58m 50s of budget remaining.
  7. 1m 10swrite_program name="h" · evidence
    result
    Saved h (2 lines).
    Game time: 1m 20s elapsed, 5h 58m 40s of budget remaining.
  8. 1m 20srun_program name="h" seconds=20
    result
    Ran h for 20s of game time; it is still running.
    Inventory change: hay +40.
    Game time: 1m 50s elapsed, 5h 58m 10s of budget remaining.
    Output:
    (none)
  9. 1m 50sbuy_upgrade upgrades=["speed","expand","plant"] · evidence
    result
    Bought speed, now level 1. Paid hay 20. Its tutorial is docs page docs/unlocks/speed.md.
    Bought expand, now level 1. Paid hay 30. Its tutorial is docs page docs/unlocks/expand_1.md.
    Could not buy plant: Not enough resources.
    Game time: 2m elapsed, 5h 58m of budget remaining.
  10. 2m 00swrite_program name="h" · evidence
    result
    Stop the program before editing it.
  11. 2m 10srun_program name="h" seconds=30
    result
    Ran h for 30s of game time; it is still running.
    Inventory change: no change.
    Game time: 2m 50s elapsed, 5h 57m 10s of budget remaining.
    Output:
    (none)
  12. 2m 50sresearch
    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. 3m 00sstop_program
    result
    Program stopped.
    Game time: 3m 10s elapsed, 5h 56m 50s of budget remaining.
  14. 3m 10swrite_program name="h" · evidence
    result
    Saved h (3 lines).
    Game time: 3m 20s elapsed, 5h 56m 40s of budget remaining.
  15. 3m 20srun_program name="h" seconds=30
    result
    Ran h for 30s of game time; it is still running.
    Inventory change: hay +45.
    Game time: 4m elapsed, 5h 56m of budget remaining.
    Output:
    (none)
  16. 4m 00sbuy_upgrade upgrades=["plant"] · evidence
    result
    Bought plant, now level 1. Paid hay 50. Its tutorial is docs page docs/unlocks/plant.md.
    Game time: 4m 10s elapsed, 5h 55m 50s of budget remaining.
  17. 4m 10sdocs_read path="unlocks/plant"
    result
    ## Plant
    Unlocks planting.
    
    plant(Entities.Bush)
    
    [Tutorial](docs/unlocks/plant.md)
    Game time: 4m 20s elapsed, 5h 55m 40s of budget remaining.
  18. 4m 20ssaidBootstrapping the farm: just unlocked planting, now setting up bushes for wood so I can expand and speed up.
  19. 4m 20sstop_program
    result
    Program stopped.
    Game time: 4m 30s elapsed, 5h 55m 30s of budget remaining.
  20. 4m 30swrite_program name="h" · evidence
    result
    Saved h (5 lines).
    Game time: 4m 40s elapsed, 5h 55m 20s of budget remaining.
  21. 4m 40srun_program name="h" seconds=40
    result
    Ran h for 40s of game time; it is still running.
    Inventory change: hay +7, wood +22.
    Game time: 5m 30s elapsed, 5h 54m 30s of budget remaining.
    Output:
    (none)
  22. 5m 30sbuy_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: 5m 40s elapsed, 5h 54m 20s of budget remaining.
  23. 5m 40sstop_program
    result
    Program stopped.
    Game time: 5m 50s elapsed, 5h 54m 10s of budget remaining.
  24. 5m 50swrite_program name="h" · evidence
    result
    Saved h (13 lines).
    Game time: 6m elapsed, 5h 54m of budget remaining.
  25. 6m 00srun_program name="h" seconds=60
    result
    Ran h for 1m of game time; it is still running.
    Inventory change: hay +44, wood +56.
    Game time: 7m 10s elapsed, 5h 52m 50s of budget remaining.
    Output:
    (none)
  26. 7m 10sbuy_upgrade upgrades=["speed"] · evidence
    result
    Bought speed, now level 2. Paid wood 20. Its tutorial is docs page docs/unlocks/speed.md.
    Game time: 7m 20s elapsed, 5h 52m 40s of budget remaining.
  27. 7m 20swait seconds=60
    result
    Waited 1m (time up). Program: h running.
    Inventory change: hay +54, wood +80.
    Game time: 8m 30s elapsed, 5h 51m 30s of budget remaining.
  28. 8m 30sbuy_upgrade upgrades=["carrots","speed","expand","operators"] · evidence
    result
    Bought carrots, now level 1. Paid wood 50. Its tutorial is docs page docs/unlocks/carrots.md.
    Could not buy speed: Not enough resources.
    Could not buy expand: Not enough resources.
    Bought operators, now level 1. Paid hay 150, wood 10. Its tutorial is docs page docs/scripting/operators.md.
    Game time: 8m 40s elapsed, 5h 51m 20s of budget remaining.
  29. 8m 40sdocs_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…
  30. 8m 50sresearch
    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…
  31. 9m 00sstop_program
    result
    Program stopped.
    Game time: 9m 10s elapsed, 5h 50m 50s of budget remaining.
  32. 9m 10swrite_program name="h" · evidence
    result
    Saved h (24 lines).
    Game time: 9m 20s elapsed, 5h 50m 40s of budget remaining.
  33. 9m 20srun_program name="h" seconds=60
    result
    Ran h for 1m of game time; it is still running.
    Inventory change: carrot +36, hay +41, wood +28.
    Game time: 10m 30s elapsed, 5h 49m 30s of budget remaining.
    Output:
    (none)
  34. 10m 30sbuy_upgrade upgrades=["variables"] · evidence
    result
    Bought variables, now level 1. Paid carrot 35. Its tutorial is docs page docs/scripting/variables.md.
    Game time: 10m 40s elapsed, 5h 49m 20s of budget remaining.
  35. 10m 40swait seconds=70
    result
    Waited 1m 10s (time up). Program: h running.
    Inventory change: carrot +42, hay +60, wood +48.
    Game time: 12m elapsed, 5h 48m of budget remaining.
  36. 12m 00sbuy_upgrade upgrades=["functions","senses","expand"] · evidence
    result
    Bought functions, now level 1. Paid carrot 40. Its tutorial is docs page docs/scripting/functions.md.
    Bought senses, now level 1. Paid hay 100. Its tutorial is docs page docs/unlocks/senses.md.
    Bought expand, now level 3. Paid wood 30, carrot 20. Its tutorial is docs page docs/unlocks/expand_1.md.
    Game time: 12m 10s elapsed, 5h 47m 50s of budget remaining.
  37. 12m 10sstop_program
    result
    Program stopped.
    Game time: 12m 20s elapsed, 5h 47m 40s of budget remaining.
  38. 12m 20swrite_program name="h" · evidence
    result
    Saved h (19 lines).
    Game time: 12m 30s elapsed, 5h 47m 30s of budget remaining.
  39. 12m 30srun_program name="h" seconds=60
    result
    Ran h for 1m of game time; it is still running.
    Inventory change: carrot +60, hay -52, wood -64.
    Game time: 13m 40s elapsed, 5h 46m 20s of budget remaining.
    Output:
    (none)
  40. 13m 40swait seconds=90
    result
    Waited 1m 30s (time up). Program: h running.
    Inventory change: carrot +68, hay +86, wood -18.
    Game time: 15m 20s elapsed, 5h 44m 40s of budget remaining.
  41. 15m 20sobserve
    result
    Game time: 15m 30s elapsed, 5h 44m 30s of budget remaining.
    Program: h (running).
    Inventory: hay 149, wood 154, carrot 142.
    Farm 4x4. 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: Bu=bush, Ca=carrot.
    y= 3  _Bu3  _Bu3  #Ca2  #Ca1
    y= 2  _Bu3  _Bu3  #Ca2  #Ca1
    y= 1  _Bu3  _Bu3…
  42. 15m 30sbuy_upgrade upgrades=["speed","trees","expand"] · 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.
    Could not buy expand: Not enough resources.
    Game time: 15m 40s elapsed, 5h 44m 20s of budget remaining.
  43. 15m 40sresearch
    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…
  44. 15m 50sstop_program
    result
    Program stopped.
    Game time: 16m elapsed, 5h 44m of budget remaining.
  45. 16m 00swrite_program name="h" · evidence
    result
    Saved h (20 lines).
    Game time: 16m 10s elapsed, 5h 43m 50s of budget remaining.
  46. 16m 10srun_program name="h" seconds=90
    result
    Ran h for 1m 30s of game time; it is still running.
    Inventory change: carrot +96, hay +46, wood +559.
    Game time: 17m 50s elapsed, 5h 42m 10s of budget remaining.
    Output:
    (none)
  47. 17m 50ssaidTrees are paying off (wood +559 in 90s). Buying expansion and upgrades next, then heading toward pumpkins.
  48. 17m 50sbuy_upgrade upgrades=["expand","carrots","watering"] · evidence
    result
    Bought expand, now level 4. Paid wood 100, carrot 50. Its tutorial is docs page docs/unlocks/expand_1.md.
    Bought carrots, now level 2. Paid wood 250. Its tutorial is docs page docs/unlocks/carrots.md.
    Bought watering, now level 1. Paid wood 50. Its tutorial is docs page docs/unlocks/watering.md.
    Game time: 18m elapsed, 5h 42m of budget remaining.
  49. 18m 00sdocs_read path="unlocks/watering"
    result
    ## Watering
    Receive more water.
    0.1/s => 0.2/s
    
    ### Unlock Cost [Current cost: wood=200]
    
    [Tutorial](docs/unlocks/watering.md)
    Game time: 18m 10s elapsed, 5h 41m 50s of budget remaining.
  50. 18m 10sstop_program
    result
    Program stopped.
    Game time: 18m 20s elapsed, 5h 41m 40s of budget remaining.
  51. 18m 20swrite_program name="h" · evidence
    result
    Saved h (22 lines).
    Game time: 18m 30s elapsed, 5h 41m 30s of budget remaining.
  52. 18m 30srun_program name="h" seconds=120
    result
    Ran h for 2m of game time; it is still running.
    Inventory change: carrot +198, hay +90, water -2, wood +1290.
    Game time: 20m 40s elapsed, 5h 39m 20s of budget remaining.
    Output:
    (none)
  53. 20m 40sbuy_upgrade upgrades=["pumpkins","fertilizer","watering","grass","trees"] · evidence
    result
    Bought pumpkins, now level 1. Paid wood 500, carrot 200. Its tutorial is docs page docs/unlocks/pumpkins.md.
    Bought fertilizer, now level 1. Paid wood 500. Its tutorial is docs page docs/unlocks/fertilizer.md.
    Bought watering, now level 2. Paid wood 200. Its tutorial is docs page docs/unlocks/watering.md.
    Bought grass, now level 2. Paid hay 300.
    Could not buy trees: Not enough resources.
    Game time…
  54. 20m 50sdocs_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…
  55. 21m 00sstop_program
    result
    Program stopped.
    Game time: 21m 10s elapsed, 5h 38m 50s of budget remaining.
  56. 21m 10swrite_program name="h" · evidence
    result
    Saved h (64 lines).
    Game time: 21m 20s elapsed, 5h 38m 40s of budget remaining.
  57. 21m 20srun_program name="h" seconds=180
    result
    Ran h for 3m of game time; it is still running.
    Inventory change: carrot +219, fertilizer +18, hay +166, pumpkin +216, water -4, wood +953.
    Game time: 24m 30s elapsed, 5h 35m 30s of budget remaining.
    Output:
    (none)
  58. 24m 30sobserve
    result
    Game time: 24m 40s elapsed, 5h 35m 20s of budget remaining.
    Program: h (running).
    Inventory: hay 306, wood 1557, carrot 372, pumpkin 216, water 1, fertilizer 23.
    Farm 6x6. 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, Tr=tree, Pu=pumpkin, De=dead_pumpkin.
    y= 5  _G…
  59. 24m 40swait seconds=240 until_affordable="speed"
    result
    Waited 3m 21s (speed is affordable). Program: h running.
    Inventory change: carrot +146, fertilizer +20, hay +100, pumpkin +432, water +2, wood +861.
    Game time: 28m 11s elapsed, 5h 31m 49s of budget remaining.
  60. 28m 11sbuy_upgrade upgrades=["speed","trees","expand"] · evidence
    result
    Bought speed, now level 4. Paid carrot 500. Its tutorial is docs page docs/unlocks/speed.md.
    Bought trees, now level 2. Paid hay 300. Its tutorial is docs page docs/unlocks/trees.md.
    Could not buy expand: Not enough resources.
    Game time: 28m 21s elapsed, 5h 31m 39s of budget remaining.
  61. 28m 21sresearch
    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…
  62. 28m 31sbuy_upgrade upgrades=["grass","carrots"] · evidence
    result
    Bought grass, now level 3. Paid wood 500.
    Bought carrots, now level 3. Paid wood 1250. Its tutorial is docs page docs/unlocks/carrots.md.
    Game time: 28m 41s elapsed, 5h 31m 19s of budget remaining.
  63. 28m 41swait seconds=300 until_affordable="expand"
    result
    Waited 3m 26s (expand is affordable). Program: h running.
    Inventory change: carrot +821, fertilizer +20, hay +812, pumpkin +432, water +1, wood +3848.
    Game time: 32m 17s elapsed, 5h 27m 43s of budget remaining.
  64. 32m 17sbuy_upgrade upgrades=["expand","watering","fertilizer","trees"] · evidence
    result
    Bought expand, now level 5. Paid pumpkin 1000. Its tutorial is docs page docs/unlocks/expand_1.md.
    Bought watering, now level 3. Paid wood 800. Its tutorial is docs page docs/unlocks/watering.md.
    Bought fertilizer, now level 2. Paid wood 1500. Its tutorial is docs page docs/unlocks/fertilizer.md.
    Could not buy trees: Not enough resources.
    Game time: 32m 27s elapsed, 5h 27m 33s of budget remaining.
  65. 32m 27swait seconds=300 until_affordable="speed"
    result
    Waited 3m 30s (speed is affordable). Program: h running.
    Inventory change: carrot +8, fertilizer +42, hay -24, pumpkin +1152, wood +446.
    Game time: 36m 7s elapsed, 5h 23m 53s of budget remaining.
  66. 36m 07sbuy_upgrade upgrades=["speed"] · evidence
    result
    Bought speed, now level 5. Paid carrot 1000. Its tutorial is docs page docs/unlocks/speed.md.
    Game time: 36m 17s elapsed, 5h 23m 43s of budget remaining.
  67. 36m 17sdocs_read path="unlocks/sunflowers"
    result
    ## Sunflowers
    Sunflowers and Power.
    
    plant(Entities.Sunflowers)
    
    ### Unlock Cost [Current cost: carrot=500]
    Game time: 36m 27s elapsed, 5h 23m 33s of budget remaining.
  68. 36m 27sdocs_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…
  69. 36m 37ssaidSpeed is maxed; now adding fertilizer use (for weird substance → mazes) and saving carrots for lists and sunflowers.
  70. 36m 37sstop_program
    result
    Program stopped.
    Game time: 36m 47s elapsed, 5h 23m 13s of budget remaining.
  71. 36m 47swrite_program name="h" · evidence
    result
    Saved h (66 lines).
    Game time: 36m 57s elapsed, 5h 23m 3s of budget remaining.
  72. 36m 57srun_program name="h" seconds=300
    result
    Ran h for 5m of game time; it is still running.
    Inventory change: carrot +1610, fertilizer -121, hay +1352, pumpkin +768, water -8, weird_substance +1725, wood +5143.
    Game time: 42m 7s elapsed, 5h 17m 53s of budget remaining.
    Output:
    (none)
  73. 42m 07sbuy_upgrade upgrades=["lists","sunflowers","mazes","trees","import"] · evidence
    result
    Bought lists, now level 1. Paid carrot 500. Its tutorial is docs page docs/scripting/lists.md.
    Bought sunflowers, now level 1. Paid carrot 500. Its tutorial is docs page docs/unlocks/sunflowers.md.
    Bought mazes, now level 1. Paid weird_substance 1000. Its tutorial is docs page docs/unlocks/mazes.md.
    Bought trees, now level 3. Paid hay 1200. Its tutorial is docs page docs/unlocks/trees.md.
    Bought i…
  74. 42m 17sdocs_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…
  75. 42m 27sdocs_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…
  76. 42m 37sstop_program
    result
    Program stopped.
    Game time: 42m 47s elapsed, 5h 17m 13s of budget remaining.
  77. 42m 47swrite_program name="h" · evidence
    result
    Saved h (124 lines).
    Game time: 42m 57s elapsed, 5h 17m 3s of budget remaining.
  78. 42m 57srun_program name="h" seconds=120
    result
    Ran h for 2m of game time; it is still running.
    Inventory change: carrot +388, fertilizer +24, gold +2112, hay +128, power +344.60, water +20, weird_substance -264, wood -396.
    Game time: 45m 7s elapsed, 5h 14m 53s of budget remaining.
    Output:
    (none)
  79. 45m 07sbuy_upgrade upgrades=["megafarm"] · evidence
    result
    Bought megafarm, now level 1. Paid gold 2000. Its tutorial is docs page docs/unlocks/megafarm.md.
    Game time: 45m 17s elapsed, 5h 14m 43s of budget remaining.
  80. 45m 17sdocs_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…
  81. 45m 27sresearch
    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; can buy now; tutorial docs/unlocks/carrots.md
      ## Carrots Increases the yield and cost of carrot…
  82. 45m 37sbuy_upgrade upgrades=["grass","pumpkins"] · evidence
    result
    Bought grass, now level 4. Paid wood 2500.
    Bought pumpkins, now level 2. Paid carrot 1000. Its tutorial is docs page docs/unlocks/pumpkins.md.
    Game time: 45m 47s elapsed, 5h 14m 13s of budget remaining.
  83. 45m 47slist_programs
    result
    ## h
    def step():
    	move(North)
    	if get_pos_y() == 0:
    		move(East)
    
    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.5 and num_items(Items.Water) > 0:
    		use_item(Items.Water)
    
    def mixed():
    	n = get_world_size() * get_world_size()
    	i = 0
    	while i < n:
    …
  84. 45m 57ssaidGold from mazes was fast enough to buy Megafarm (2 drones). Now rewriting the program to run drones in parallel.
  85. 45m 57sstop_program
    result
    Program stopped.
    Game time: 46m 7s elapsed, 5h 13m 53s of budget remaining.
  86. 46m 07swrite_program name="h" · evidence
    result
    Saved h (173 lines).
    Game time: 46m 17s elapsed, 5h 13m 43s of budget remaining.
  87. 46m 17srun_program name="h" seconds=120
    result
    Ran h for 2m of game time; it is still running.
    Inventory change: carrot -44, fertilizer -39, gold +4224, hay +1044, power +231.49, water -66, weird_substance +32, wood +428.
    Game time: 48m 27s elapsed, 5h 11m 33s of budget remaining.
    Output:
    (none)
  88. 48m 27swait seconds=300 until_affordable="megafarm"
    result
    Waited 54s (megafarm is affordable). Program: h running.
    Inventory change: carrot +132, fertilizer -16, gold +1984, hay +640, power -105.16, water -5, weird_substance +260, wood +308.
    Game time: 49m 31s elapsed, 5h 10m 29s of budget remaining.
  89. 49m 31sbuy_upgrade upgrades=["megafarm"] · evidence
    result
    Bought megafarm, now level 2. Paid gold 8000. Its tutorial is docs page docs/unlocks/megafarm.md.
    Game time: 49m 41s elapsed, 5h 10m 19s of budget remaining.
  90. 49m 41sresearch
    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; can buy now; tutorial docs/unlocks/carrots.md
      ## Carrots Increases the yield and cost of carrot…
  91. 49m 51sstop_program
    result
    Program stopped.
    Game time: 50m 1s elapsed, 5h 9m 59s of budget remaining.
  92. 50m 01swrite_program name="h" · evidence
    result
    Saved h (176 lines).
    Game time: 50m 11s elapsed, 5h 9m 49s of budget remaining.
  93. 50m 11srun_program name="h" seconds=180
    result
    Ran h for 3m of game time; it is still running.
    Inventory change: fertilizer +36, power -333.88, water +72.
    Game time: 53m 21s elapsed, 5h 6m 39s of budget remaining.
    Output:
    (none)
  94. 53m 21sobserve
    result
    Game time: 53m 31s elapsed, 5h 6m 29s of budget remaining.
    Program: h (running).
    Inventory: hay 4144, wood 8195, carrot 1066, pumpkin 2384, weird_substance 553, gold 688, water 92, fertilizer 46.
    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: He=hedge, Tr=treasure.…
  95. 53m 31sstop_program
    result
    Program stopped.
    Game time: 53m 41s elapsed, 5h 6m 19s of budget remaining.
  96. 53m 41swrite_program name="h" · evidence
    result
    Saved h (180 lines).
    Game time: 53m 51s elapsed, 5h 6m 9s of budget remaining.
  97. 53m 51srun_program name="h" seconds=180
    result
    Ran h for 3m of game time; it is still running.
    Inventory change: carrot -880, fertilizer -30, gold +4032, hay +532, power +501.61, pumpkin +6144, water -93, weird_substance +836, wood +2084.
    Game time: 57m 1s elapsed, 5h 2m 59s of budget remaining.
    Output:
    (none)
  98. 57m 01sbuy_upgrade upgrades=["expand","carrots","watering"] · evidence
    result
    Bought expand, now level 6. Paid pumpkin 8000. Its tutorial is docs page docs/unlocks/expand_1.md.
    Bought carrots, now level 4. Paid wood 6250. Its tutorial is docs page docs/unlocks/carrots.md.
    Bought watering, now level 4. Paid wood 3200. Its tutorial is docs page docs/unlocks/watering.md.
    Game time: 57m 11s elapsed, 5h 2m 49s of budget remaining.
  99. 57m 11ssaidFarm expanded to 12x12 with 4 drones. Now splitting the code into a library plus a small main script so I can retune priorities cheaply, then pushing gold for 8 drones.
  100. 57m 11sstop_program
    result
    Program stopped.
    Game time: 57m 21s elapsed, 5h 2m 39s of budget remaining.
  101. 57m 21swrite_program name="f" · evidence
    result
    Saved f (169 lines).
    Game time: 57m 31s elapsed, 5h 2m 29s of budget remaining.
  102. 57m 31swrite_program name="m" · evidence
    result
    Saved m (15 lines).
    Game time: 57m 41s elapsed, 5h 2m 19s of budget remaining.
  103. 57m 41srun_program name="m" seconds=120
    result
    Ran m for 2m of game time; it is still running.
    Inventory change: fertilizer +24, gold +5760, power -236.85, pumpkin +2, water +96, weird_substance -492.
    Game time: 59m 51s elapsed, 5h 9s of budget remaining.
    Output:
    (none)
  104. 59m 51swait seconds=600 until_affordable="megafarm"
    result
    Waited 8m 25s (megafarm is affordable). Program: m running.
    Inventory change: carrot +1040, fertilizer -2, gold +20448, hay +1784, power +84.00, water -4, weird_substance -92, wood +448.
    Game time: 1h 8m 26s elapsed, 4h 51m 34s of budget remaining.
  105. 1h 08mbuy_upgrade upgrades=["megafarm"] · evidence
    result
    Bought megafarm, now level 3. Paid gold 32000. Its tutorial is docs page docs/unlocks/megafarm.md.
    Game time: 1h 8m 36s elapsed, 4h 51m 24s of budget remaining.
  106. 1h 08mdocs_read path="unlocks/megafarm"
    result
    ## Megafarm
    Increase drone count further.
    8 => 16
    
    ### Unlock Cost [Current cost: gold=128000]
    
    [Tutorial](docs/unlocks/megafarm.md)
    Game time: 1h 8m 46s elapsed, 4h 51m 14s of budget remaining.
  107. 1h 08mdocs_read path="unlocks/expand"
    result
    ## Expand
    Expands the farm. This also clears the farm.
    12x12 => 16x16
    
    ### Unlock Cost [Current cost: pumpkin=64000]
    
    [Tutorial](docs/unlocks/expand_1.md)
    Game time: 1h 8m 56s elapsed, 4h 51m 4s of budget remaining.
  108. 1h 08mstop_program
    result
    Program stopped.
    Game time: 1h 9m 6s elapsed, 4h 50m 54s of budget remaining.
  109. 1h 09mwrite_program name="f" · evidence
    result
    Saved f (174 lines).
    Game time: 1h 9m 16s elapsed, 4h 50m 44s of budget remaining.
  110. 1h 09mwrite_program name="m" · evidence
    result
    Saved m (15 lines).
    Game time: 1h 9m 26s elapsed, 4h 50m 34s of budget remaining.
  111. 1h 09mrun_program name="m" seconds=180
    result
    Ran m for 3m of game time; it is still running.
    Inventory change: carrot +6484, fertilizer +36, gold +144, hay +1240, power +357.33, pumpkin +12096, water -47, weird_substance +2728, wood +23220.
    Game time: 1h 12m 36s elapsed, 4h 47m 24s of budget remaining.
    Output:
    Warning: Tried to use Items.Water but didn't have enough of it.
    In: pump_task <- strip <- pump_fn <- water
    use_item(Items.Water)
        …
  112. 1h 12msaidBig jump with 8 drones and the weird-substance trick (pumpkin +12k, wood +23k, weird +2.7k in 3 min). Buying the pumpkin-gated unlocks now.
  113. 1h 12mbuy_upgrade upgrades=["dictionaries","polyculture","cactus","fertilizer","grass","pumpkins","trees"] · evidence
    result
    Bought dictionaries, now level 1. Paid pumpkin 2500. Its tutorial is docs page docs/scripting/dicts.md.
    Bought polyculture, now level 1. Paid pumpkin 3000. Its tutorial is docs page docs/unlocks/polyculture.md.
    Bought cactus, now level 1. Paid pumpkin 5000. Its tutorial is docs page docs/unlocks/cactus.md.
    Bought fertilizer, now level 3. Paid wood 9000. Its tutorial is docs page docs/unlocks/ferti…
  114. 1h 12mdocs_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 `…
  115. 1h 12mdocs_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…
  116. 1h 13mwrite_program name="c" · evidence
    result
    Saved c (64 lines).
    Game time: 1h 13m 16s elapsed, 4h 46m 44s of budget remaining.
  117. 1h 13mstop_program
    result
    Program stopped.
    Game time: 1h 13m 26s elapsed, 4h 46m 34s of budget remaining.
  118. 1h 13mwrite_program name="m" · evidence
    result
    Saved m (20 lines).
    Game time: 1h 13m 36s elapsed, 4h 46m 24s of budget remaining.
  119. 1h 13mrun_program name="m" seconds=120
    result
    Ran m for 2m of game time; it is still running.
    Inventory change: cactus +20736, carrot +16728, fertilizer +48, hay +16640, power +591.97, pumpkin -288, water -15, wood +73440.
    Game time: 1h 15m 46s elapsed, 4h 44m 14s of budget remaining.
    Output:
    Warning: Tried to use Items.Water but didn't have enough of it.
    In: sun_task <- water
    use_item(Items.Water)
            ^^           
    ----------------------…
  120. 1h 15mbuy_upgrade upgrades=["mazes","dinosaurs","carrots","watering","utilities","trees","grass"] · 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.
    Bought carrots, now level 5. Paid wood 31200. Its tutorial is docs page docs/unlocks/carrots.md.
    Bought watering, now level 5. Paid wood 12800. Its tutorial is docs page docs/unlocks/watering.md.
    Bought …
  121. 1h 15mdocs_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 …
  122. 1h 16mresearch
    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; available, not affordable; tutorial docs/unlocks/cactus.md
      ## Cactus Increases the yield and cost of cactus. 100% => 200%
    carrots (Carrots) level 5/10; cost wood 156000; available, not affordable; tutorial doc…
  123. 1h 16mwrite_program name="g" · evidence
    result
    Saved g (71 lines).
    Game time: 1h 16m 26s elapsed, 4h 43m 34s of budget remaining.
  124. 1h 16mstop_program
    result
    Program stopped.
    Game time: 1h 16m 36s elapsed, 4h 43m 24s of budget remaining.
  125. 1h 16mwrite_program name="m" · evidence
    result
    Saved m (21 lines).
    Game time: 1h 16m 46s elapsed, 4h 43m 14s of budget remaining.
  126. 1h 16mbuy_upgrade upgrades=["pumpkins"] · evidence
    result
    Bought pumpkins, now level 4. Paid carrot 16000. Its tutorial is docs page docs/unlocks/pumpkins.md.
    Game time: 1h 16m 56s elapsed, 4h 43m 4s of budget remaining.
  127. 1h 16mrun_program name="m" seconds=120
    result
    Ran m for 2m of game time; it is still running.
    Inventory change: carrot +160, fertilizer +48, gold +16416, power -414.83, water +192, weird_substance -1368.
    Game time: 1h 19m 6s elapsed, 4h 40m 54s of budget remaining.
    Output:
    (none)
  128. 1h 19msaidGold now at ~8k/min with the parallel maze flood-fill; waiting on 128k for 16 drones. Meanwhile I'm reading up for the dinosaur (bones) routine.
  129. 1h 19mdocs_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 19m 16s elapsed, 4h 40m 44s of budget remaining.
  130. 1h 19mdocs_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 19m 26s elapsed, 4h 40m 34s of budget remaining.
  131. 1h 19mwrite_program name="d" · evidence
    result
    Saved d (46 lines).
    Game time: 1h 19m 36s elapsed, 4h 40m 24s of budget remaining.
  132. 1h 19mwait seconds=900 until_affordable="megafarm"
    result
    Waited 12m 56s (megafarm is affordable). Program: m running.
    Inventory change: carrot -6016, fertilizer +310, gold +105696, hay +13728, power -80.44, pumpkin +48384, water +188, weird_substance -1165, wood +18872.
    Game time: 1h 32m 42s elapsed, 4h 27m 18s of budget remaining.
  133. 1h 32mbuy_upgrade upgrades=["megafarm"] · evidence
    result
    Bought megafarm, now level 4. Paid gold 128000. Its tutorial is docs page docs/unlocks/megafarm.md.
    Game time: 1h 32m 52s elapsed, 4h 27m 8s of budget remaining.
  134. 1h 32mobserve
    result
    Game time: 1h 33m 2s elapsed, 4h 26m 58s of budget remaining.
    Program: m (running).
    Inventory: hay 57564, wood 70945, carrot 5374, pumpkin 66214, cactus 27472, weird_substance 1328, gold 1040, water 92, fertilizer 535, power 408.31.
    Farm 12x12. 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 …
  135. 1h 33mbuy_upgrade upgrades=["expand","dinosaurs","fertilizer"] · evidence
    result
    Bought expand, now level 7. Paid pumpkin 64000. Its tutorial is docs page docs/unlocks/expand_1.md.
    Bought dinosaurs, now level 2. Paid cactus 12000. Its tutorial is docs page docs/unlocks/dinosaurs.md.
    Bought fertilizer, now level 4. Paid wood 54000. Its tutorial is docs page docs/unlocks/fertilizer.md.
    Game time: 1h 33m 12s elapsed, 4h 26m 48s of budget remaining.
  136. 1h 33mresearch
    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; available, not affordable; tutorial docs/unlocks/cactus.md
      ## Cactus Increases the yield and cost of cactus. 100% => 200%
    carrots (Carrots) level 5/10; cost wood 156000; available, not affordable; tutorial doc…
  137. 1h 33msaidBought 16 drones and the 16x16 expansion. Now testing the dinosaur routine for bones (which unlock polyculture upgrades).
  138. 1h 33mwrite_program name="td" · evidence
    result
    Saved td (4 lines).
    Game time: 1h 33m 32s elapsed, 4h 26m 28s of budget remaining.
  139. 1h 33mrun_program name="td" seconds=600
    result
    Ran td for 4m 37s of game time; it stopped with an error: Hats.Brown_Hat must be unlocked before this can be used.
    Inventory change: cactus -1020, fertilizer +221, gold +512, hay +8192, power -265.05, water +443.
    Game time: 1h 38m 19s elapsed, 4h 21m 41s of budget remaining.
    Output:
    Error: Hats.Brown_Hat must be unlocked before this can be used.
    In: dino
    change_hat(Hats.Brown_Hat)
              ^^    …
  140. 1h 38mdocs_search query="Hats."
    result
    docs/home.md: …locks/fertilizer.md) [Functions](docs/scripting/functions.md) [Grass](unlocks/grass) [Hats](docs/unlocks/hats.md) [Import](docs/scripting/import.md) [Lists](docs/scripting/lists.md) [Loops](docs/scripting/while.md) [Mazes](docs/unlocks/mazes.md) [Megafarm](docs/unlocks/megafarm.m…
    docs/unlocks/dinosaurs.md: … dressing up as one. For this purpose you have received the new dinosaur ha…
  141. 1h 38mwrite_program name="th" · evidence
    result
    Saved th (5 lines).
    Game time: 1h 38m 39s elapsed, 4h 21m 21s of budget remaining.
  142. 1h 38mrun_program name="th" seconds=20
    result
    Ran th for 0s of game time; it stopped with an error: Unlocks.Debug must be unlocked before this can be used.
    Inventory change: bone +130052, cactus -8, fertilizer +1, water +1.
    Game time: 1h 38m 49s elapsed, 4h 21m 11s of budget remaining.
    Output:
    Error: Unlocks.Debug must be unlocked before this can be used.
    In: 
    print(num_items(Items.Bone))
         ^^                     
    -------------------------…
  143. 1h 38mbuy_upgrade upgrades=["polyculture","polyculture","polyculture","debug"] · evidence
    result
    Bought polyculture, now level 2. Paid bone 10000. Its tutorial is docs page docs/unlocks/polyculture.md.
    Bought polyculture, now level 3. Paid bone 50000. Its tutorial is docs page docs/unlocks/polyculture.md.
    Could not buy polyculture: Not enough resources.
    Bought debug, now level 1. Paid hay 50, wood 50. Its tutorial is docs page docs/scripting/debug.md.
    Game time: 1h 38m 59s elapsed, 4h 21m 1s …
  144. 1h 38mwrite_program name="d" · evidence
    result
    Saved d (99 lines).
    Game time: 1h 39m 9s elapsed, 4h 20m 51s of budget remaining.
  145. 1h 39mwrite_program name="m" · evidence
    result
    Saved m (45 lines).
    Game time: 1h 39m 19s elapsed, 4h 20m 41s of budget remaining.
  146. 1h 39mrun_program name="m" seconds=120
    result
    Ran m for 2m of game time; it is still running.
    Inventory change: carrot +225104, fertilizer +96, hay +163616, power +1103.43, water -138, weird_substance +33148, wood +216016.
    Game time: 1h 41m 29s elapsed, 4h 18m 31s of budget remaining.
    Output:
    (none)
  147. 1h 41msaidPolyculture (40x) is a massive win: +200k each of hay/wood/carrot in 2 minutes, plus bones from the dinosaur. Spending it on yield upgrades now.
  148. 1h 41mbuy_upgrade upgrades=["carrots","trees","pumpkins","watering","costs"] · evidence
    result
    Bought carrots, now level 6. Paid wood 156000. Its tutorial is docs page docs/unlocks/carrots.md.
    Bought trees, now level 6. Paid hay 76800. Its tutorial is docs page docs/unlocks/trees.md.
    Bought pumpkins, now level 5. Paid carrot 64000. Its tutorial is docs page docs/unlocks/pumpkins.md.
    Bought watering, now level 6. Paid wood 51200. Its tutorial is docs page docs/unlocks/watering.md.
    Could not …
  149. 1h 41mwait seconds=180
    result
    Waited 3m (time up). Program: m running.
    Inventory change: cactus +65536, carrot -1488, fertilizer +144, gold +13824, hay +26256, power -669.30, pumpkin +24064, water +289, weird_substance -880, wood +128320.
    Game time: 1h 44m 49s elapsed, 4h 15m 11s of budget remaining.
  150. 1h 44mobserve
    result
    Game time: 1h 44m 59s elapsed, 4h 15m 1s of budget remaining.
    Program: m (running).
    Inventory: hay 205242, wood 264399, carrot 191982, pumpkin 26278, cactus 79980, bone 70052, weird_substance 33004, gold 24048, water 935, fertilizer 1105, power 265.52.
    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,…
  151. 1h 44mbuy_upgrade upgrades=["mazes","grass"] · evidence
    result
    Bought mazes, now level 3. Paid cactus 72000. Its tutorial is docs page docs/unlocks/mazes.md.
    Could not buy grass: Not enough resources.
    Game time: 1h 45m 9s elapsed, 4h 14m 51s of budget remaining.
  152. 1h 45mstop_program
    result
    Program stopped.
    Game time: 1h 45m 19s elapsed, 4h 14m 41s of budget remaining.
  153. 1h 45mwrite_program name="m" · evidence
    result
    Saved m (45 lines).
    Game time: 1h 45m 29s elapsed, 4h 14m 31s of budget remaining.
  154. 1h 45mrun_program name="m" seconds=300
    result
    Ran m for 5m of game time; it is still running.
    Inventory change: carrot -10208, fertilizer +240, gold +40960, hay +16192, power +1273.94, pumpkin +49152, water +137, weird_substance -2560.
    Game time: 1h 50m 39s elapsed, 4h 9m 21s of budget remaining.
    Output:
    (none)
  155. 1h 50mwait seconds=60
    result
    Waited 1m (time up). Program: m running.
    Inventory change: carrot -5072, fertilizer +48, gold +10240, hay +7968, power -191.66, water -116, weird_substance -576.
    Game time: 1h 51m 49s elapsed, 4h 8m 11s of budget remaining.
  156. 1h 51mstop_program
    result
    Program stopped.
    Game time: 1h 51m 59s elapsed, 4h 8m 1s of budget remaining.
  157. 1h 51mwrite_program name="m" · evidence
    result
    Saved m (45 lines).
    Game time: 1h 52m 9s elapsed, 4h 7m 51s of budget remaining.
  158. 1h 52mrun_program name="m" seconds=600
    result
    Ran m for 10m of game time; it is still running.
    Inventory change: carrot -256, fertilizer +480, gold +113664, hay +8192, power -1231.10, water +1664, weird_substance -7040.
    Game time: 2h 2m 19s elapsed, 3h 57m 41s of budget remaining.
    Output:
    (none)
  159. 2h 02mwrite_program name="th" · evidence
    result
    Saved th (12 lines).
    Game time: 2h 2m 29s elapsed, 3h 57m 31s of budget remaining.
  160. 2h 02mrun_program name="th" seconds=5
    result
    Ran th for 5s of game time; it is still running.
    Inventory change: fertilizer +4, power -5.08, water +16, weird_substance -16.
    Game time: 2h 2m 44s elapsed, 3h 57m 16s of budget remaining.
    Output:
    (none)
  161. 2h 02mobserve
    result
    Game time: 2h 2m 54s elapsed, 3h 57m 6s of budget remaining.
    Program: th (running).
    Inventory: hay 237594, wood 264399, carrot 176446, pumpkin 100006, cactus 7980, bone 70052, weird_substance 22524, gold 192496, water 2988, fertilizer 1965, power 623.89.
    Farm 16x16. x runs west to east, rows are listed north (top) to south.
    Cells: ground (# soil, _ grassland) + entity code + size (1 small, 2 mediu…
  162. 2h 02msaidFound the maze bottleneck: one big maze takes ~5s. Switching to 16 small mazes solved in parallel (one per drone), which should multiply gold output several times.
  163. 2h 02mstop_program
    result
    Program stopped.
    Game time: 2h 3m 4s elapsed, 3h 56m 56s of budget remaining.
  164. 2h 03mwrite_program name="z" · evidence
    result
    Saved z (85 lines).
    Game time: 2h 3m 14s elapsed, 3h 56m 46s of budget remaining.
  165. 2h 03mwrite_program name="m" · evidence
    result
    Saved m (45 lines).
    Game time: 2h 3m 24s elapsed, 3h 56m 36s of budget remaining.
  166. 2h 03mrun_program name="m" seconds=120
    result
    Ran m for 2m of game time; it is still running.
    Inventory change: carrot -256, fertilizer +96, gold +61504, hay +8224, power +794.37, water +128, weird_substance -15360.
    Game time: 2h 5m 34s elapsed, 3h 54m 26s of budget remaining.
    Output:
    (none)
  167. 2h 05mwait seconds=120
    result
    Waited 2m (time up). Program: m running.
    Inventory change: cactus -104, fertilizer +96, power +85.03, water +384.
    Game time: 2h 7m 44s elapsed, 3h 52m 16s of budget remaining.
  168. 2h 07mwait seconds=600 until_resources={"bone":260000}
    result
    Waited 6m 17s (bone reached 330152). Program: m running.
    Inventory change: bone +260100, cactus +63616, fertilizer +302, power -619.85, pumpkin -512, water +1208.
    Game time: 2h 14m 11s elapsed, 3h 45m 49s of budget remaining.
  169. 2h 14mbuy_upgrade upgrades=["polyculture"] · evidence
    result
    Bought polyculture, now level 4. Paid bone 250000. Its tutorial is docs page docs/unlocks/polyculture.md.
    Game time: 2h 14m 21s elapsed, 3h 45m 39s of budget remaining.
  170. 2h 14mstop_program
    result
    Program stopped.
    Game time: 2h 14m 31s elapsed, 3h 45m 29s of budget remaining.
  171. 2h 14mwrite_program name="m" · evidence
    result
    Saved m (53 lines).
    Game time: 2h 14m 41s elapsed, 3h 45m 19s of budget remaining.
  172. 2h 14mrun_program name="m" seconds=180
    result
    Ran m for 3m of game time; it is still running.
    Inventory change: cactus +65536, carrot +782560, fertilizer +144, gold +61440, hay +712320, power +377.91, water +254, weird_substance +222493, wood +777472.
    Game time: 2h 17m 51s elapsed, 3h 42m 9s of budget remaining.
    Output:
    (none)
  173. 2h 17mbuy_upgrade upgrades=["grass","trees","carrots","pumpkins","watering","cactus","dinosaurs"] · evidence
    result
    Bought grass, now level 7. Paid wood 312000.
    Bought trees, now level 7. Paid hay 307000. Its tutorial is docs page docs/unlocks/trees.md.
    Could not buy carrots: Not enough resources.
    Bought pumpkins, now level 6. Paid carrot 256000. Its tutorial is docs page docs/unlocks/pumpkins.md.
    Bought watering, now level 7. Paid wood 205000. Its tutorial is docs page docs/unlocks/watering.md.
    Bought cactus, …
  174. 2h 18mwait seconds=600 until_affordable="megafarm"
    result
    Waited 3m 46s (megafarm is affordable). Program: m running.
    Inventory change: carrot -256, fertilizer +181, gold +171776, hay +18432, power +54.17, water +1193, weird_substance -42960.
    Game time: 2h 21m 58s elapsed, 3h 38m 2s of budget remaining.
  175. 2h 21mbuy_upgrade upgrades=["megafarm","carrots"] · evidence
    result
    Bought megafarm, now level 5. Paid gold 512000. Its tutorial is docs page docs/unlocks/megafarm.md.
    Could not buy carrots: Not enough resources.
    Game time: 2h 22m 8s elapsed, 3h 37m 52s of budget remaining.
  176. 2h 22mresearch
    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 6/10; cost wood 781000; available, not affordable; tutorial do…
  177. 2h 22msaid32 drones unlocked (Megafarm maxed). Updating the polyculture and maze routines to use all 32, then going for bones → Polyculture L5 and the 22x22 expansion.
  178. 2h 22mstop_program
    result
    Program stopped.
    Game time: 2h 22m 28s elapsed, 3h 37m 32s of budget remaining.
  179. 2h 22mwrite_program name="z" · evidence
    result
    Saved z (96 lines).
    Game time: 2h 22m 38s elapsed, 3h 37m 22s of budget remaining.
  180. 2h 22mwrite_program name="m" · evidence
    result
    Saved m (53 lines).
    Game time: 2h 22m 48s elapsed, 3h 37m 12s of budget remaining.
  181. 2h 22mrun_program name="m" seconds=600
    result
    Ran m for 10m of game time; it is still running.
    Inventory change: fertilizer +480, hay +2048, power -553.82, water +3840.
    Game time: 2h 32m 58s elapsed, 3h 27m 2s of budget remaining.
    Output:
    (none)
  182. 2h 32mobserve
    result
    Game time: 2h 33m 8s elapsed, 3h 26m 52s of budget remaining.
    Program: m (running).
    Inventory: hay 672130, wood 524871, carrot 702494, pumpkin 78982, cactus 65012, bone 80152, weird_substance 169737, gold 42544, water 10858, fertilizer 3416.
    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 full); *…
  183. 2h 33msaidFound a stall: stopping the program mid-maze left stale mazes that trapped the drones (10 min lost). Adding a robust startup cleanup that wipes the field with a full-size maze.
  184. 2h 33mstop_program
    result
    Program stopped.
    Game time: 2h 33m 18s elapsed, 3h 26m 42s of budget remaining.
  185. 2h 33mwrite_program name="i" · evidence
    result
    Saved i (8 lines).
    Game time: 2h 33m 28s elapsed, 3h 26m 32s of budget remaining.
  186. 2h 33mwrite_program name="m" · evidence
    result
    Saved m (54 lines).
    Game time: 2h 33m 38s elapsed, 3h 26m 22s of budget remaining.
  187. 2h 33mrun_program name="m" seconds=60
    result
    Ran m for 1m of game time; it is still running.
    Inventory change: carrot -256, fertilizer +48, hay +16384, power +1731.28, water +128, weird_substance -64.
    Game time: 2h 34m 48s elapsed, 3h 25m 12s of budget remaining.
    Output:
    (none)
  188. 2h 34mwait seconds=1200 until_affordable="polyculture"
    result
    Waited 20m (time up). Program: m running.
    Inventory change: bone +1040400, cactus -9088, fertilizer +960, power -1296.08, water +7680.
    Game time: 2h 54m 58s elapsed, 3h 5m 2s of budget remaining.
  189. 2h 54mwait seconds=600 until_affordable="polyculture"
    result
    Waited 19s (polyculture is affordable). Program: m running.
    Inventory change: bone +260100, cactus -880, fertilizer +15, power -18.83, water +119.
    Game time: 2h 55m 26s elapsed, 3h 4m 34s of budget remaining.
  190. 2h 55mbuy_upgrade upgrades=["polyculture","timing"] · evidence
    result
    Bought polyculture, now level 5. Paid bone 1250000. Its tutorial is docs page docs/unlocks/polyculture.md.
    Bought timing, now level 1. Paid pumpkin 1000. Its tutorial is docs page docs/unlocks/timing.md.
    Game time: 2h 55m 36s elapsed, 3h 4m 24s of budget remaining.
  191. 2h 55mstop_program
    result
    Program stopped.
    Game time: 2h 55m 46s elapsed, 3h 4m 14s of budget remaining.
  192. 2h 55mwrite_program name="m" · evidence
    result
    Saved m (29 lines).
    Game time: 2h 55m 56s elapsed, 3h 4m 4s of budget remaining.
  193. 2h 55mrun_program name="m" seconds=300
    result
    Ran m for 5m of game time; it is still running.
    Inventory change: cactus +131072, carrot +6124464, fertilizer +240, gold +54000, hay +6219520, power -166.13, pumpkin +146432, water +817, weird_substance +868986, wood +7287776.
    Game time: 3h 1m 6s elapsed, 2h 58m 54s of budget remaining.
    Output:
    1 65.99 94.84 32.63 37.97 66.4 0
  194. 3h 01msaidPolyculture L5 with 32 drones now yields ~6M each of hay/wood/carrot per cycle. Spending on the yield-upgrade ladders.
  195. 3h 01mbuy_upgrade upgrades=["grass","trees","carrots","pumpkins","cactus","watering","grass","trees","carrots","pumpkins","watering"] · evidence
    result
    Bought grass, now level 8. Paid wood 1560000.
    Bought trees, now level 8. Paid hay 1230000. Its tutorial is docs page docs/unlocks/trees.md.
    Bought carrots, now level 7. Paid wood 781000. Its tutorial is docs page docs/unlocks/carrots.md.
    Bought pumpkins, now level 7. Paid carrot 1020000. Its tutorial is docs page docs/unlocks/pumpkins.md.
    Bought cactus, now level 3. Paid pumpkin 120000. Its tutori…
  196. 3h 01mwait seconds=240
    result
    Waited 4m (time up). Program: m running.
    Inventory change: cactus +262144, carrot +18294272, fertilizer +192, gold +44172, hay +19361280, power -443.08, pumpkin +587776, water +2430, weird_substance -14952, wood +20284800.
    Game time: 3h 5m 26s elapsed, 2h 54m 34s of budget remaining.
  197. 3h 05mbuy_upgrade upgrades=["mazes","expand","grass","trees","carrots","pumpkins","watering","grass","carrots","pumpkins"] · evidence
    result
    Bought mazes, now level 4. Paid cactus 432000. Its tutorial is docs page docs/unlocks/mazes.md.
    Bought expand, now level 8. Paid pumpkin 512000. Its tutorial is docs page docs/unlocks/expand_1.md.
    Bought grass, now level 9. Paid wood 7810000.
    Bought trees, now level 10. Paid hay 19700000. Its tutorial is docs page docs/unlocks/trees.md.
    Could not buy carrots: Not enough resources.
    Bought pumpkins,…
  198. 3h 05mwait seconds=420
    result
    Waited 7m (time up). Program: m running.
    Inventory change: cactus +936992, carrot +24344065, fertilizer +336, gold +138240, hay +28282368, pumpkin +2226400, water +9090, weird_substance -46080, wood +31362048.
    Game time: 3h 12m 46s elapsed, 2h 47m 14s of budget remaining.
  199. 3h 12msaidFarm is 22x22 and producing tens of millions of hay/wood/carrot per cycle. Checking state and buying the next round of upgrades.
  200. 3h 12mbuy_upgrade upgrades=["dinosaurs","carrots","grass","pumpkins","cactus","mazes"] · evidence
    result
    Bought dinosaurs, now level 4. Paid cactus 432000. Its tutorial is docs page docs/unlocks/dinosaurs.md.
    Bought carrots, now level 9. Paid wood 19500000. Its tutorial is docs page docs/unlocks/carrots.md.
    Could not buy grass: Not enough resources.
    Could not buy pumpkins: Not enough resources.
    Bought cactus, now level 4. Paid pumpkin 720000. Its tutorial is docs page docs/unlocks/cactus.md.
    Could no…
  201. 3h 12mresearch
    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 9/10; cost wood 97700000; available, not affordable; tutoria…
  202. 3h 13mwrite_program name="s" · evidence
    result
    Saved s (88 lines).
    Game time: 3h 13m 16s elapsed, 2h 46m 44s of budget remaining.
  203. 3h 13mwrite_program name="s" · evidence
    result
    Saved s (123 lines).
    Game time: 3h 13m 26s elapsed, 2h 46m 34s of budget remaining.
  204. 3h 13mwait seconds=900 until_resources={"bone":1000000}
    result
    Waited 15m (time up). Program: m running.
    Inventory change: cactus -2960, fertilizer +720, water +23040.
    Game time: 3h 28m 36s elapsed, 2h 31m 24s of budget remaining.
  205. 3h 28msaidThe 22x22 dinosaur run is far slower than expected (it ran out of power). Checking its progress to decide whether to cut it short and switch to the faster snake routine I just wrote.
  206. 3h 28mobserve
    result
    Game time: 3h 28m 46s elapsed, 2h 31m 14s of budget remaining.
    Program: m (running).
    Inventory: hay 28811570, wood 21799495, carrot 27944426, pumpkin 1686590, cactus 517932, bone 130652, weird_substance 964115, gold 318796, water 56302, fertilizer 6087.
    Farm 22x22. x runs west to east, rows are listed north (top) to south.
    Cells: ground (# soil, _ grassland) + entity code + size (1 small, 2 medium…
  207. 3h 28mwait seconds=480 until_resources={"bone":1000000}
    result
    Waited 3m 53s (bone reached 1996964). Program: m running.
    Inventory change: bone +1866312, cactus -4496, fertilizer +186, water +5954.
    Game time: 3h 32m 49s elapsed, 2h 27m 11s of budget remaining.
  208. 3h 32mstop_program
    result
    Program stopped.
    Game time: 3h 32m 59s elapsed, 2h 27m 1s of budget remaining.
  209. 3h 32mwrite_program name="m" · evidence
    result
    Saved m (38 lines).
    Game time: 3h 33m 9s elapsed, 2h 26m 51s of budget remaining.
  210. 3h 33mrun_program name="m" seconds=420
    result
    Ran m for 7m of game time; it is still running.
    Inventory change: cactus +1874048, carrot +18942264, fertilizer +336, gold +345600, hay +18833408, power +841.91, pumpkin +2222528, water +8353, weird_substance -115376, wood +29254400.
    Game time: 3h 40m 19s elapsed, 2h 19m 41s of budget remaining.
    Output:
    1 152.81 67.78 24.59 33.7 98.32 0
  211. 3h 40mwrite_program name="u" · evidence
    result
    Saved u (48 lines).
    Game time: 3h 40m 29s elapsed, 2h 19m 31s of budget remaining.
  212. 3h 40mbuy_upgrade upgrades=["grass","mazes","cactus"] · evidence
    result
    Bought grass, now level 10. Paid wood 39100000.
    Could not buy mazes: Not enough resources.
    Could not buy cactus: Not enough resources.
    Game time: 3h 40m 39s elapsed, 2h 19m 21s of budget remaining.
  213. 3h 40mthoughtSunflower harvesting drops to about 20s per cycle with a new time-slotted parallel version. I'm fixing one detail and will restart once the current dinosaur run reports its timing.
  214. 3h 40mwrite_program name="u" · evidence
    result
    Saved u (49 lines).
    Game time: 3h 40m 49s elapsed, 2h 19m 11s of budget remaining.
  215. 3h 40mwait seconds=600 until_resources={"bone":3000000}
    result
    Waited 10m (time up). Program: m running.
    Inventory change: cactus +1872576, carrot +23232540, fertilizer +480, gold +345600, hay +23483392, power +1680.08, pumpkin +2222528, water +13389, weird_substance -115200, wood +65244160.
    Game time: 3h 50m 59s elapsed, 2h 9m 1s of budget remaining.
  216. 3h 50mbuy_upgrade upgrades=["mazes","cactus"] · evidence
    result
    Bought mazes, now level 5. Paid cactus 2590000. Its tutorial is docs page docs/unlocks/mazes.md.
    Bought cactus, now level 5. Paid pumpkin 4320000. Its tutorial is docs page docs/unlocks/cactus.md.
    Game time: 3h 51m 9s elapsed, 2h 8m 51s of budget remaining.
  217. 3h 51mwait seconds=600 until_resources={"bone":3000000}
    result
    Waited 4m 5s (bone reached 3863276). Program: m running.
    Inventory change: bone +1866312, cactus -6048, fertilizer +195, power -247.86, water +6264.
    Game time: 3h 55m 24s elapsed, 2h 4m 36s of budget remaining.
  218. 3h 55mbuy_upgrade upgrades=["pumpkins","carrots","dinosaurs"] · evidence
    result
    Bought pumpkins, now level 10. Paid carrot 65500000. Its tutorial is docs page docs/unlocks/pumpkins.md.
    Could not buy carrots: Not enough resources.
    Could not buy dinosaurs: Not enough resources.
    Game time: 3h 55m 34s elapsed, 2h 4m 26s of budget remaining.
  219. 3h 55mstop_program
    result
    Program stopped.
    Game time: 3h 55m 44s elapsed, 2h 4m 16s of budget remaining.
  220. 3h 55mwrite_program name="m" · evidence
    result
    Saved m (39 lines).
    Game time: 3h 55m 54s elapsed, 2h 4m 6s of budget remaining.
  221. 3h 55mrun_program name="m" seconds=300
    result
    Ran m for 5m of game time; it is still running.
    Inventory change: cactus +3748096, carrot +63348764, fertilizer +240, gold +691200, hay +6386176, power -2231.33, pumpkin +4445056, water +5697, weird_substance -230752, wood +22970368.
    Game time: 4h 1m 4s elapsed, 1h 58m 56s of budget remaining.
    Output:
    1 0 86.07 27.5 32.53 95.91 0
  222. 4h 01msaidCycle is running well (each ~4 min loop: +60M carrots, +4M pumpkins, +3.7M cactus, +690k gold). Checking the new sunflower routine's timing next.
  223. 4h 01mwait seconds=240
    result
    Waited 4m (time up). Program: m running.
    Inventory change: cactus +3747616, carrot +4963640, fertilizer +192, gold +691200, hay +6834432, power +3175.53, pumpkin +4445056, water +4266, weird_substance -230400, wood +8329984.
    Game time: 4h 5m 14s elapsed, 1h 54m 46s of budget remaining.
  224. 4h 05mwait seconds=30
    result
    Waited 30s (time up). Program: m running.
    Inventory change: cactus -416, fertilizer +24, power -30.36, water +768.
    Game time: 4h 5m 54s elapsed, 1h 54m 6s of budget remaining.
  225. 4h 05mobserve
    result
    Game time: 4h 6m 4s elapsed, 1h 53m 56s of budget remaining.
    Program: m (running).
    Inventory: hay 86903602, wood 111681767, carrot 84687694, pumpkin 10701758, cactus 9158812, bone 3863276, weird_substance 272387, gold 2392396, water 104790, fertilizer 7876, power 3672.76.
    Farm 22x22. x runs west to east, rows are listed north (top) to south.
    Cells: ground (# soil, _ grassland) + entity code + size…
  226. 4h 06mbuy_upgrade upgrades=["carrots","dinosaurs","mazes","cactus","dinosaurs"] · evidence
    result
    Bought carrots, now level 10. Paid wood 97700000. Its tutorial is docs page docs/unlocks/carrots.md.
    Bought dinosaurs, now level 5. Paid cactus 2590000. Its tutorial is docs page docs/unlocks/dinosaurs.md.
    Could not buy mazes: Not enough resources.
    Could not buy cactus: Not enough resources.
    Could not buy dinosaurs: Not enough resources.
    Game time: 4h 6m 14s elapsed, 1h 53m 46s of budget remaining…
  227. 4h 06mresearch
    result
    auto_unlock (Auto Unlock) level 0/1; cost pumpkin 5000; requires costs
      ## Auto Unlock Automatically unlock things. unlock(Unlocks.Megafarm)
    cactus (Cactus) level 5/6; cost pumpkin 25900000; available, not affordable; tutorial docs/unlocks/cactus.md
      ## Cactus Increases the yield and cost of cactus. 1600% => 3200%
    carrots (Carrots) level 10/10; maxed; tutorial docs/unlocks/carrots.md
      ## Carrot…
  228. 4h 06mwait seconds=480 until_resources={"bone":5000000}
    result
    Waited 4m 11s (bone reached 7595900). Program: m running.
    Inventory change: bone +3732624, cactus -12320, fertilizer +201, power -254.34, water +6430.
    Game time: 4h 10m 45s elapsed, 1h 49m 15s of budget remaining.
  229. 4h 10mstop_program
    result
    Program stopped.
    Game time: 4h 10m 55s elapsed, 1h 49m 5s of budget remaining.
  230. 4h 10mwrite_program name="m" · evidence
    result
    Saved m (44 lines).
    Game time: 4h 11m 5s elapsed, 1h 48m 55s of budget remaining.
  231. 4h 11mrun_program name="m" seconds=360
    result
    Ran m for 6m of game time; it is still running.
    Inventory change: cactus +11244288, carrot +70604316, fertilizer +288, hay +68303360, power -1848.44, pumpkin +13335168, water +6414, weird_substance -352, wood +127937536.
    Game time: 4h 17m 15s elapsed, 1h 42m 45s of budget remaining.
    Output:
    1 0 85.42 70.25 119.02 0 0
  232. 4h 17msaidStocking pumpkins/cactus for the last yield upgrades (Mazes L6 now affordable). Also fixing weird-substance production, which stalled and skipped the gold phase.
  233. 4h 17mbuy_upgrade upgrades=["mazes","cactus"] · evidence
    result
    Bought mazes, now level 6. Paid cactus 15600000. Its tutorial is docs page docs/unlocks/mazes.md.
    Could not buy cactus: Not enough resources.
    Game time: 4h 17m 25s elapsed, 1h 42m 35s of budget remaining.
  234. 4h 17mstop_program
    result
    Program stopped.
    Game time: 4h 17m 35s elapsed, 1h 42m 25s of budget remaining.
  235. 4h 17mwrite_program name="z" · evidence
    result
    Saved z (95 lines).
    Game time: 4h 17m 45s elapsed, 1h 42m 15s of budget remaining.
  236. 4h 17mrun_program name="m" seconds=240
    result
    Ran m for 4m of game time; it is still running.
    Inventory change: cactus +7496192, carrot +35540508, fertilizer +192, hay +37946880, power +12.70, pumpkin +13335168, water +4207, weird_substance -704, wood +37779968.
    Game time: 4h 21m 55s elapsed, 1h 38m 5s of budget remaining.
    Output:
    (none)
  237. 4h 21mwait seconds=45
    result
    Waited 45s (time up). Program: m running.
    Inventory change: cactus +3748096, carrot +7372828, fertilizer +36, hay +3877376, power +2942.19, water +635, wood +770560.
    Game time: 4h 22m 50s elapsed, 1h 37m 10s of budget remaining.
  238. 4h 22mwrite_program name="th" · evidence
    result
    Saved th (17 lines).
    Game time: 4h 23m elapsed, 1h 37m of budget remaining.
  239. 4h 23mrun_program name="th" seconds=60
    result
    Ran th for 10s of game time; it finished.
    Inventory change: carrot +81920, fertilizer +8, hay +575232, power -8.52, water +248, weird_substance +82749, wood -768.
    Game time: 4h 23m 20s elapsed, 1h 36m 40s of budget remaining.
    Output:
    270627 352801 3000000
    1279 1280
  240. 4h 23mwrite_program name="m" · evidence
    result
    Saved m (44 lines).
    Game time: 4h 23m 30s elapsed, 1h 36m 30s of budget remaining.
  241. 4h 23mbuy_upgrade upgrades=["cactus","dinosaurs"] · evidence
    result
    Bought cactus, now level 6. Paid pumpkin 25900000. Its tutorial is docs page docs/unlocks/cactus.md.
    Could not buy dinosaurs: Not enough resources.
    Game time: 4h 23m 40s elapsed, 1h 36m 20s of budget remaining.
  242. 4h 23mrun_program name="m" seconds=300
    result
    Ran m for 5m of game time; it is still running.
    Inventory change: carrot +71178524, fertilizer +240, hay +73271552, power +254.24, pumpkin +8890112, water +6150, weird_substance +4290063, wood +79152384.
    Game time: 4h 28m 50s elapsed, 1h 31m 10s of budget remaining.
    Output:
    Warning: You used a number of Weird Substance that isn't exactly the number needed to create the maze. Don't forget that the …
  243. 4h 28mthoughtFound an import-order bug that had quietly reverted polyculture to an older 16-drone version; it's fixed and output is back to full, so I'm letting the cycle run.
  244. 4h 28mwait seconds=300 until_affordable="dinosaurs"
    result
    Waited 4s (dinosaurs is affordable). Program: m running.
    Inventory change: cactus +7496192, fertilizer +3, power -60.87, water +102.
    Game time: 4h 29m 4s elapsed, 1h 30m 56s of budget remaining.
  245. 4h 29mbuy_upgrade upgrades=["dinosaurs"] · evidence
    result
    Bought dinosaurs, now level 6. Paid cactus 15600000. Its tutorial is docs page docs/unlocks/dinosaurs.md.
    Game time: 4h 29m 14s elapsed, 1h 30m 46s of budget remaining.
  246. 4h 29mwait seconds=600
    result
    Waited 10m (time up). Program: m running.
    Inventory change: cactus +22488576, carrot +71556664, fertilizer +480, gold +1382400, hay +71420416, power +280.42, pumpkin +8828160, water +12836, weird_substance -460800, wood +68802048.
    Game time: 4h 39m 24s elapsed, 1h 20m 36s of budget remaining.
  247. 4h 39mwait seconds=420 until_resources={"bone":14000000}
    result
    Waited 7m (time up). Program: m running.
    Inventory change: cactus +14986176, carrot -484, fertilizer +336, gold +1382400, hay +147456, power +555.81, pumpkin -30976, water +10268, weird_substance -460800.
    Game time: 4h 46m 34s elapsed, 1h 13m 26s of budget remaining.
  248. 4h 46msaidAll yield upgrades are now maxed. Checking phase timings so I can set the time split for the final ~70 minutes (more weight on gold and bones, the scarcest resources).
  249. 4h 46mobserve
    result
    Game time: 4h 46m 44s elapsed, 1h 13m 16s of budget remaining.
    Program: m (running).
    Inventory: hay 353743666, wood 359530567, carrot 351517970, pumpkin 33588958, cactus 42814844, bone 7595900, weird_substance 3722543, gold 5157196, water 156796, fertilizer 9828, power 3856.82.
    Farm 22x22. x runs west to east, rows are listed north (top) to south.
    Cells: ground (# soil, _ grassland) + entity code …
  250. 4h 46mwait seconds=420 until_resources={"bone":14000000}
    result
    Waited 3m 47s (bone reached 15061148). Program: m running.
    Inventory change: bone +7465248, cactus -23936, fertilizer +182, power -229.63, water +5804.
    Game time: 4h 50m 40s elapsed, 1h 9m 20s of budget remaining.
  251. 4h 50mstop_program
    result
    Program stopped.
    Game time: 4h 50m 50s elapsed, 1h 9m 10s of budget remaining.
  252. 4h 50mwrite_program name="m" · evidence
    result
    Saved m (48 lines).
    Game time: 4h 51m elapsed, 1h 9m of budget remaining.
  253. 4h 51mrun_program name="m" seconds=540
    result
    Ran m for 9m of game time; it is still running.
    Inventory change: cactus +14992384, carrot +73869340, fertilizer +432, gold +2644992, hay +74904576, power -3366.90, pumpkin +8859136, water +11382, weird_substance -884480, wood +77106688.
    Game time: 5h 10s elapsed, 59m 50s of budget remaining.
    Output:
    (none)
  254. 5h 00mwait seconds=50
    result
    Waited 50s (time up). Program: m running.
    Inventory change: carrot -484, fertilizer +40, gold +31104, hay +147456, power +575.55, water +796, weird_substance -9120.
    Game time: 5h 1m 10s elapsed, 58m 50s of budget remaining.
  255. 5h 01msaidRestarting the loop with a deadline guard so the last dinosaur run can't be cut off by the end of the budget (~58 min left).
  256. 5h 01mstop_program
    result
    Program stopped.
    Game time: 5h 1m 20s elapsed, 58m 40s of budget remaining.
  257. 5h 01mwrite_program name="m" · evidence
    result
    Saved m (50 lines).
    Game time: 5h 1m 30s elapsed, 58m 30s of budget remaining.
  258. 5h 01mrun_program name="m" seconds=600
    result
    Ran m for 10m of game time; it is still running.
    Inventory change: cactus +14992384, carrot +72455992, fertilizer +480, gold +1667232, hay +72138496, power +312.24, pumpkin +8859136, water +12818, weird_substance +635393, wood +70549504.
    Game time: 5h 11m 40s elapsed, 48m 20s of budget remaining.
    Output:
    Warning: You used a number of Weird Substance that isn't exactly the number needed to create t…
  259. 5h 11mwait seconds=150
    result
    Waited 2m 30s (time up). Program: m running.
    Inventory change: carrot -484, fertilizer +120, gold +893952, hay +147456, power +951.95, water +3356, weird_substance -295968.
    Game time: 5h 14m 20s elapsed, 45m 40s of budget remaining.
  260. 5h 14mobserve
    result
    Game time: 5h 14m 30s elapsed, 45m 30s of budget remaining.
    Program: m (running).
    Inventory: hay 505205810, wood 507213383, carrot 503170206, pumpkin 51307230, cactus 72775356, bone 15061148, weird_substance 3071888, gold 10686796, water 193393, fertilizer 11162, power 2039.35.
    Farm 22x22. x runs west to east, rows are listed north (top) to south.
    Cells: ground (# soil, _ grassland) + entity code …
  261. 5h 14mstop_program
    result
    Program stopped.
    Game time: 5h 14m 40s elapsed, 45m 20s of budget remaining.
  262. 5h 14mwrite_program name="th" · evidence
    result
    Saved th (67 lines).
    Game time: 5h 14m 50s elapsed, 45m 10s of budget remaining.
  263. 5h 14mrun_program name="th" seconds=200
    result
    Ran th for 24s of game time; it finished.
    Inventory change: carrot -484, fertilizer +19, hay +247808, power +2583.20, water +133, weird_substance -704.
    Game time: 5h 15m 24s elapsed, 44m 36s of budget remaining.
    Output:
    spawned -8.26
    plant 0.43 3.65 -4.72
    15 4 0.65 0 0.65
    14 1 0.4 0 2.05
    13 1 0.14 0 3.19
    12 3 0.74 0 4.93
    11 2 0.67 0 6.61
    10 3 0.48 0 8.08
    9 3 0.91 0 9.99
    8 2 0.41 0 11.4
    7 3 0.54 0 …
  264. 5h 15mthoughtThe sunflower slowdown was another import-order shadowing bug, with the old slow routine still in use; the fixed version runs in 23s instead of about 150s. I'm restarting the main loop for the final 44 minutes.
  265. 5h 15mwrite_program name="m" · evidence
    result
    Saved m (49 lines).
    Game time: 5h 15m 34s elapsed, 44m 26s of budget remaining.
  266. 5h 15mrun_program name="m" seconds=780
    result
    Ran m for 13m of game time; it is still running.
    Inventory change: bone +7465248, cactus +14961472, carrot +72450076, fertilizer +624, gold +2452608, hay +72251392, power -4892.29, pumpkin +8859136, water +17897, weird_substance -820256, wood +74521088.
    Game time: 5h 28m 44s elapsed, 31m 16s of budget remaining.
    Output:
    (none)
  267. 5h 28mstop_program
    result
    Program stopped.
    Game time: 5h 28m 54s elapsed, 31m 6s of budget remaining.
  268. 5h 28mwrite_program name="m" · evidence
    result
    Saved m (49 lines).
    Game time: 5h 29m 4s elapsed, 30m 56s of budget remaining.
  269. 5h 29mrun_program name="m" seconds=480
    result
    Ran m for 8m of game time; it is still running.
    Inventory change: cactus +14991104, carrot +72839536, fertilizer +384, gold +2765088, hay +73044736, power +4035.62, pumpkin +8859136, water +9259, weird_substance +357664, wood +73458176.
    Game time: 5h 37m 14s elapsed, 22m 46s of budget remaining.
    Output:
    1 61.37 0 107.65 68.55 62.3 182.35
  270. 5h 37msaidFinal stretch: the loop now completes a full cycle in ~7 minutes with power topped up. Letting it run out the remaining ~22 minutes (one more dinosaur run, then crops/mazes).
  271. 5h 37mwait seconds=660
    result
    Waited 11m (time up). Program: m running.
    Inventory change: bone +7465248, cactus +14962944, carrot +71601464, fertilizer +528, gold +921600, hay +71323904, power -2264.60, pumpkin +8859136, water +14705, weird_substance +1134816, wood +70213888.
    Game time: 5h 48m 24s elapsed, 11m 36s of budget remaining.
  272. 5h 48mwait seconds=670
    result
    Waited 11m 10s (time up). Program: m running.
    Inventory change: cactus +14992384, carrot +141541716, fertilizer +536, gold +4608000, hay +139729664, power -4482.57, pumpkin +8859136, water +14334, weird_substance +416736, wood +136674816.
    Game time: 5h 59m 44s elapsed, 16s of budget remaining.
  273. 5h 59msaidThe 6-hour budget is used up (16 seconds left, less than one more action), with the farm still producing at the end. What the farm reached - Farm and drones: 22x22 with 32 drones (Megafarm maxed). - Upgrades: every yield upgrade maxed — grass, trees, carrots, pumpkins, cactus, dinosaurs, mazes, watering, fertilizer, polyculture and speed. The one thing left unbought was the last expansion to 32x32, which I skipped on purpose because it would have made dinosaur runs too long to fit safely in the remaining time. - Resources produced: hay, wood, carrots, pumpkins, cactus, gold, bones, weird substance, power, water and fertilizer — all eleven the game offers. Approximate inventory at the end (my tally from the last full reading plus later changes; cumulative production is higher, since a lot was spent on upgrades): | Resource | On hand | |---|---| | Hay | ~860M | | Wood | ~860M | | Carrots | ~860M | | Cactus | ~118M | | Pumpkins | ~78M | | Bones | ~30M | | Gold | ~21M | | Weird substance | ~4M | How the final loop worked - Hay, wood, carrots: 32 drones each tend one plant and its polyculture companion for the 160x bonus; infecting some harvests supplies the weird substance. - Pumpkins: full-field giant pumpkins, one drone per column. - Cactus: the whole field is sorted by rows then columns in parallel and harvested in one go. - Gold: each drone solves its own small 3x3 maze. - Bones: a snake that follows a fixed circuit of the field with shortcuts while short. - Power: sunflowers harvested in petal order using timed slots. Time lost along the way - About 10 minutes when stale mazes from a stopped program trapped the drones. - About 25 minutes on a slow, unpowered dinosaur run before I rewrote it. - Roughly 3h33–4h23: polyculture silently ran an older 16-drone version because of import order. - Roughly 3h56–5h15: the sunflower phase ran an old slow version (~150s instead of 23s) for the same reason. Gold and bones ended as the scarcest resources; I shifted more loop time to them in the last hour, but they are still well behind the crops.
  274. 5h 59mwait seconds=6
    result
    Waited 6s (time up). Program: m running.
    Inventory change: carrot +1394176, fertilizer +5, hay +1387008, water +138, wood +826880.
    Game time: 6h elapsed, 0s of budget remaining. The game-time budget is used up. The run is over; stop now.
  275. 6h 00msaidThe game-time budget is now fully used (6h elapsed) and the run is over. The last 16 seconds added about 1.4M hay, 1.4M carrots and 0.8M wood from the still-running loop. The farm finished at 22x22 with 32 drones, every yield upgrade maxed, and all eleven resources produced. The only upgrade left unbought was the final 32x32 expansion, which I skipped deliberately.

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,635
Cache reads12,387,101
Cache writes201,020
Output106,305
Thinking (subset of output where reported)57,067
Total12,696,061
ModelTokensEstimate
claude-fable-5-212,694,643$8.74
claude-haiku-5-51,418$0.00015

Estimate: API-equivalent estimate at list prices; not an actual charge. Price table prices-2026-11-09. The agent itself reported $8.74 (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-s2-a1-20261109T203252Z
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.40 · log10(1 + Σ w_r × produced_r), weights from late-game sink prices · 228b39065cbd
Started / ended2026-11-09T20:32:52.245Z → 2026-11-09T21:09:33.891Z
Evidence105 items in evidence.json