Claude Fable 5.2, seed 2
Claude Code · medium reasoning effort
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
timeline
Score and what the agent did, over game time
Ticks under the axis: upgrade purchases.
Data table
| Game time | Score |
|---|---|
| 0s | 0.00 |
| 1h 00m | 33.1 |
| 2h 00m | 53.9 |
| 3h 00m | 62.5 |
| 4h 00m | 71.2 |
| 5h 00m | 77.2 |
| 6h 00m | 79.9 |
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-played
How it played
| Measure | This run | Model mean | Seed 2 mean |
|---|---|---|---|
| Resources opened | 11 of 11 | 11 of 11 | 9.7 of 11 |
| Study | 29 | 33 | 48 |
| Action overhead | 12% | 11% | 11% |
| Tool calls | 250 | 229 | 230 |
| Program writes | 54 | 51 | 36 |
| Program stints | 41 | 42 | 42 |
| Median stint | 5m 15s | 4m 40s | 5m 27s |
| Cost per point | $0.109 | $0.095 | $0.061 |
Farm idle 4% of samples; longest stint 36m 53s; 1 rejected write.
production
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.
upgrades
Upgrade timeline
Every purchase, with what the agent was told
| Game time | Call | Unlocked | Result the agent saw |
|---|---|---|---|
| 1m 00s | {"upgrades":["loops"]} | loops 1 | Bought 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 1 | Bought speed, now level 1. Paid hay 20. Its tutorial is docs page docs/unlocks/speed.md. |
| 4m 00s | {"upgrades":["plant"]} | plant 1 | Bought plant, now level 1. Paid hay 50. Its tutorial is docs page docs/unlocks/plant.md. |
| 5m 30s | {"upgrades":["expand"]} | expand 2 | Bought expand, now level 2. Paid wood 20. Its tutorial is docs page docs/unlocks/expand_1.md. |
| 7m 10s | {"upgrades":["speed"]} | speed 2 | Bought 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 1 | Bought carrots, now level 1. Paid wood 50. Its tutorial is docs page docs/unlocks/carrots.md. |
| 10m 30s | {"upgrades":["variables"]} | variables 1 | Bought 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 3 | Bought 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 1 | Bought 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 1 | Bought 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 2 | Bought 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 2 | Bought speed, now level 4. Paid carrot 500. Its tutorial is docs page docs/unlocks/speed.md. |
| 28m 31s | {"upgrades":["grass","carrots"]} | grass 3, carrots 3 | Bought grass, now level 3. Paid wood 500. |
| 32m 17s | {"upgrades":["expand","watering","fertilizer","trees"]} | expand 5, watering 3, fertilizer 2 | Bought expand, now level 5. Paid pumpkin 1000. Its tutorial is docs page docs/unlocks/expand_1.md. |
| 36m 07s | {"upgrades":["speed"]} | speed 5 | Bought 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 1 | Bought lists, now level 1. Paid carrot 500. Its tutorial is docs page docs/scripting/lists.md. |
| 45m 07s | {"upgrades":["megafarm"]} | megafarm 1 | Bought megafarm, now level 1. Paid gold 2000. Its tutorial is docs page docs/unlocks/megafarm.md. |
| 45m 37s | {"upgrades":["grass","pumpkins"]} | grass 4, pumpkins 2 | Bought grass, now level 4. Paid wood 2500. |
| 49m 31s | {"upgrades":["megafarm"]} | megafarm 2 | Bought 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 4 | Bought expand, now level 6. Paid pumpkin 8000. Its tutorial is docs page docs/unlocks/expand_1.md. |
| 1h 08m | {"upgrades":["megafarm"]} | megafarm 3 | Bought 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 4 | Bought 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 6 | Bought mazes, now level 2. Paid cactus 12000. Its tutorial is docs page docs/unlocks/mazes.md. |
| 1h 16m | {"upgrades":["pumpkins"]} | pumpkins 4 | Bought pumpkins, now level 4. Paid carrot 16000. Its tutorial is docs page docs/unlocks/pumpkins.md. |
| 1h 32m | {"upgrades":["megafarm"]} | megafarm 4 | Bought 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 4 | Bought 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 1 | Bought 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 6 | Bought carrots, now level 6. Paid wood 156000. Its tutorial is docs page docs/unlocks/carrots.md. |
| 1h 44m | {"upgrades":["mazes","grass"]} | mazes 3 | Bought mazes, now level 3. Paid cactus 72000. Its tutorial is docs page docs/unlocks/mazes.md. |
| 2h 14m | {"upgrades":["polyculture"]} | polyculture 4 | Bought 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 1 | Bought grass, now level 7. Paid wood 312000. |
| 2h 21m | {"upgrades":["megafarm","carrots"]} | megafarm 5 | Bought megafarm, now level 5. Paid gold 512000. Its tutorial is docs page docs/unlocks/megafarm.md. |
| 2h 55m | {"upgrades":["polyculture","timing"]} | polyculture 5, timing 1 | Bought 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 8 | Bought 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 9 | Bought 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 4 | Bought dinosaurs, now level 4. Paid cactus 432000. Its tutorial is docs page docs/unlocks/dinosaurs.md. |
| 3h 40m | {"upgrades":["grass","mazes","cactus"]} | grass 10 | Bought grass, now level 10. Paid wood 39100000. |
| 3h 50m | {"upgrades":["mazes","cactus"]} | mazes 5, cactus 5 | Bought mazes, now level 5. Paid cactus 2590000. Its tutorial is docs page docs/unlocks/mazes.md. |
| 3h 55m | {"upgrades":["pumpkins","carrots","dinosaurs"]} | pumpkins 10 | Bought 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 1 | Bought carrots, now level 10. Paid wood 97700000. Its tutorial is docs page docs/unlocks/carrots.md. |
| 4h 17m | {"upgrades":["mazes","cactus"]} | mazes 6 | Bought mazes, now level 6. Paid cactus 15600000. Its tutorial is docs page docs/unlocks/mazes.md. |
| 4h 23m | {"upgrades":["cactus","dinosaurs"]} | cactus 6 | Bought cactus, now level 6. Paid pumpkin 25900000. Its tutorial is docs page docs/unlocks/cactus.md. |
| 4h 29m | {"upgrades":["dinosaurs"]} | dinosaurs 6, hats 1 | Bought 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.py
r130sRan
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)
r21m 10sRan
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)
—2m 00sRejected
while True: harvest() move(North)- Write result the agent saw
Stop the program before editing it.
r33m 10sRan
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)
r44m 30sRan
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)
r55m 50sRan
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)
r69m 10sRan
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)
r712m 20sRan
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)
r816m 00sRan
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)
r918m 20sRan
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)
r1021m 10sRan
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)
r1136m 47sRan
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)
r1242m 47sRan
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)
r1346m 07sRan
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)
r1450m 01sRan
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)
r1553m 41sRanFinal
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.py
r157m 21sSaved, never run
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.
r21h 09mSaved, never runFinal
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.py
r157m 31sRan
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)
r21h 09mRan
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) ^^ --------------------------------------------------------------------
r31h 13mRan
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) ^^ --------------------------------------------------------------------
r41h 16mRan
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)
r51h 39mRan
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)
r61h 45mRan
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)
r71h 51mRan
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)
r82h 03mRan
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)
r92h 14mRan
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)
r102h 22mRan
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)
r112h 33mRan
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)
r122h 55mRan
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
r133h 32mRan
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
r143h 55mRan
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
r154h 10mRan
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)
r164h 23mRan
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) ^^ --------------------------------------------------------------------
r174h 50mRan
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)
r185h 01mRan
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) ^^ --------------------------------------------------------------------
r195h 15mRan
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)
r205h 28mRanFinal
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.py
r11h 13mSaved, never runFinal
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.py
r11h 16mSaved, never runFinal
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.py
r11h 19mSaved, never run
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.
r21h 38mSaved, never runFinal
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.py
r11h 33mRanFinal
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.py
r11h 38mRan
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.
r22h 02mRan
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: passChanges 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)
r34h 22mRan
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
r45h 14mRanFinal
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.py
r12h 03mSaved, never run
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.
r22h 22mSaved, never run
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.
r34h 17mSaved, never runFinal
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.py
r12h 33mSaved, never runFinal
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.py
r13h 13mSaved, never run
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.
r23h 13mSaved, never runFinal
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.py
r13h 40mSaved, never run
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.
r23h 40mSaved, never runFinal
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.
log
Step by step
- 0s
observeresult
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)
- 10s
researchresult
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…
- 20s
docs_listresult
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…
- 30s
write_programname="h" · evidenceresult
Saved h (20 lines). Game time: 40s elapsed, 5h 59m 20s of budget remaining.
- 40s
run_programname="h" seconds=30result
Ran h for 10s of game time; it finished. Inventory change: hay +20. Game time: 1m elapsed, 5h 59m of budget remaining. Output: (none)
- 1m 00s
buy_upgradeupgrades=["loops"] · evidenceresult
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.
- 1m 10s
write_programname="h" · evidenceresult
Saved h (2 lines). Game time: 1m 20s elapsed, 5h 58m 40s of budget remaining.
- 1m 20s
run_programname="h" seconds=20result
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)
- 1m 50s
buy_upgradeupgrades=["speed","expand","plant"] · evidenceresult
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.
- 2m 00s
write_programname="h" · evidenceresult
Stop the program before editing it.
- 2m 10s
run_programname="h" seconds=30result
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)
- 2m 50s
researchresult
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…
- 3m 00s
stop_programresult
Program stopped. Game time: 3m 10s elapsed, 5h 56m 50s of budget remaining.
- 3m 10s
write_programname="h" · evidenceresult
Saved h (3 lines). Game time: 3m 20s elapsed, 5h 56m 40s of budget remaining.
- 3m 20s
run_programname="h" seconds=30result
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)
- 4m 00s
buy_upgradeupgrades=["plant"] · evidenceresult
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.
- 4m 10s
docs_readpath="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.
- 4m 20ssaidBootstrapping the farm: just unlocked planting, now setting up bushes for wood so I can expand and speed up.
- 4m 20s
stop_programresult
Program stopped. Game time: 4m 30s elapsed, 5h 55m 30s of budget remaining.
- 4m 30s
write_programname="h" · evidenceresult
Saved h (5 lines). Game time: 4m 40s elapsed, 5h 55m 20s of budget remaining.
- 4m 40s
run_programname="h" seconds=40result
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)
- 5m 30s
buy_upgradeupgrades=["expand"] · evidenceresult
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.
- 5m 40s
stop_programresult
Program stopped. Game time: 5m 50s elapsed, 5h 54m 10s of budget remaining.
- 5m 50s
write_programname="h" · evidenceresult
Saved h (13 lines). Game time: 6m elapsed, 5h 54m of budget remaining.
- 6m 00s
run_programname="h" seconds=60result
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)
- 7m 10s
buy_upgradeupgrades=["speed"] · evidenceresult
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.
- 7m 20s
waitseconds=60result
Waited 1m (time up). Program: h running. Inventory change: hay +54, wood +80. Game time: 8m 30s elapsed, 5h 51m 30s of budget remaining.
- 8m 30s
buy_upgradeupgrades=["carrots","speed","expand","operators"] · evidenceresult
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.
- 8m 40s
docs_readpath="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…
- 8m 50s
researchresult
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…
- 9m 00s
stop_programresult
Program stopped. Game time: 9m 10s elapsed, 5h 50m 50s of budget remaining.
- 9m 10s
write_programname="h" · evidenceresult
Saved h (24 lines). Game time: 9m 20s elapsed, 5h 50m 40s of budget remaining.
- 9m 20s
run_programname="h" seconds=60result
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)
- 10m 30s
buy_upgradeupgrades=["variables"] · evidenceresult
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.
- 10m 40s
waitseconds=70result
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.
- 12m 00s
buy_upgradeupgrades=["functions","senses","expand"] · evidenceresult
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.
- 12m 10s
stop_programresult
Program stopped. Game time: 12m 20s elapsed, 5h 47m 40s of budget remaining.
- 12m 20s
write_programname="h" · evidenceresult
Saved h (19 lines). Game time: 12m 30s elapsed, 5h 47m 30s of budget remaining.
- 12m 30s
run_programname="h" seconds=60result
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)
- 13m 40s
waitseconds=90result
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.
- 15m 20s
observeresult
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…
- 15m 30s
buy_upgradeupgrades=["speed","trees","expand"] · evidenceresult
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.
- 15m 40s
researchresult
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…
- 15m 50s
stop_programresult
Program stopped. Game time: 16m elapsed, 5h 44m of budget remaining.
- 16m 00s
write_programname="h" · evidenceresult
Saved h (20 lines). Game time: 16m 10s elapsed, 5h 43m 50s of budget remaining.
- 16m 10s
run_programname="h" seconds=90result
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)
- 17m 50ssaidTrees are paying off (wood +559 in 90s). Buying expansion and upgrades next, then heading toward pumpkins.
- 17m 50s
buy_upgradeupgrades=["expand","carrots","watering"] · evidenceresult
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.
- 18m 00s
docs_readpath="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.
- 18m 10s
stop_programresult
Program stopped. Game time: 18m 20s elapsed, 5h 41m 40s of budget remaining.
- 18m 20s
write_programname="h" · evidenceresult
Saved h (22 lines). Game time: 18m 30s elapsed, 5h 41m 30s of budget remaining.
- 18m 30s
run_programname="h" seconds=120result
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)
- 20m 40s
buy_upgradeupgrades=["pumpkins","fertilizer","watering","grass","trees"] · evidenceresult
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…
- 20m 50s
docs_readpath="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…
- 21m 00s
stop_programresult
Program stopped. Game time: 21m 10s elapsed, 5h 38m 50s of budget remaining.
- 21m 10s
write_programname="h" · evidenceresult
Saved h (64 lines). Game time: 21m 20s elapsed, 5h 38m 40s of budget remaining.
- 21m 20s
run_programname="h" seconds=180result
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)
- 24m 30s
observeresult
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…
- 24m 40s
waitseconds=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.
- 28m 11s
buy_upgradeupgrades=["speed","trees","expand"] · evidenceresult
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.
- 28m 21s
researchresult
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…
- 28m 31s
buy_upgradeupgrades=["grass","carrots"] · evidenceresult
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.
- 28m 41s
waitseconds=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.
- 32m 17s
buy_upgradeupgrades=["expand","watering","fertilizer","trees"] · evidenceresult
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.
- 32m 27s
waitseconds=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.
- 36m 07s
buy_upgradeupgrades=["speed"] · evidenceresult
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.
- 36m 17s
docs_readpath="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.
- 36m 27s
docs_readpath="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…
- 36m 37ssaidSpeed is maxed; now adding fertilizer use (for weird substance → mazes) and saving carrots for lists and sunflowers.
- 36m 37s
stop_programresult
Program stopped. Game time: 36m 47s elapsed, 5h 23m 13s of budget remaining.
- 36m 47s
write_programname="h" · evidenceresult
Saved h (66 lines). Game time: 36m 57s elapsed, 5h 23m 3s of budget remaining.
- 36m 57s
run_programname="h" seconds=300result
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)
- 42m 07s
buy_upgradeupgrades=["lists","sunflowers","mazes","trees","import"] · evidenceresult
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…
- 42m 17s
docs_readpath="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…
- 42m 27s
docs_readpath="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…
- 42m 37s
stop_programresult
Program stopped. Game time: 42m 47s elapsed, 5h 17m 13s of budget remaining.
- 42m 47s
write_programname="h" · evidenceresult
Saved h (124 lines). Game time: 42m 57s elapsed, 5h 17m 3s of budget remaining.
- 42m 57s
run_programname="h" seconds=120result
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)
- 45m 07s
buy_upgradeupgrades=["megafarm"] · evidenceresult
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.
- 45m 17s
docs_readpath="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… - 45m 27s
researchresult
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…
- 45m 37s
buy_upgradeupgrades=["grass","pumpkins"] · evidenceresult
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.
- 45m 47s
list_programsresult
## 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: …
- 45m 57ssaidGold from mazes was fast enough to buy Megafarm (2 drones). Now rewriting the program to run drones in parallel.
- 45m 57s
stop_programresult
Program stopped. Game time: 46m 7s elapsed, 5h 13m 53s of budget remaining.
- 46m 07s
write_programname="h" · evidenceresult
Saved h (173 lines). Game time: 46m 17s elapsed, 5h 13m 43s of budget remaining.
- 46m 17s
run_programname="h" seconds=120result
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)
- 48m 27s
waitseconds=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.
- 49m 31s
buy_upgradeupgrades=["megafarm"] · evidenceresult
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.
- 49m 41s
researchresult
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…
- 49m 51s
stop_programresult
Program stopped. Game time: 50m 1s elapsed, 5h 9m 59s of budget remaining.
- 50m 01s
write_programname="h" · evidenceresult
Saved h (176 lines). Game time: 50m 11s elapsed, 5h 9m 49s of budget remaining.
- 50m 11s
run_programname="h" seconds=180result
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)
- 53m 21s
observeresult
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.…
- 53m 31s
stop_programresult
Program stopped. Game time: 53m 41s elapsed, 5h 6m 19s of budget remaining.
- 53m 41s
write_programname="h" · evidenceresult
Saved h (180 lines). Game time: 53m 51s elapsed, 5h 6m 9s of budget remaining.
- 53m 51s
run_programname="h" seconds=180result
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)
- 57m 01s
buy_upgradeupgrades=["expand","carrots","watering"] · evidenceresult
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.
- 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.
- 57m 11s
stop_programresult
Program stopped. Game time: 57m 21s elapsed, 5h 2m 39s of budget remaining.
- 57m 21s
write_programname="f" · evidenceresult
Saved f (169 lines). Game time: 57m 31s elapsed, 5h 2m 29s of budget remaining.
- 57m 31s
write_programname="m" · evidenceresult
Saved m (15 lines). Game time: 57m 41s elapsed, 5h 2m 19s of budget remaining.
- 57m 41s
run_programname="m" seconds=120result
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)
- 59m 51s
waitseconds=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.
- 1h 08m
buy_upgradeupgrades=["megafarm"] · evidenceresult
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.
- 1h 08m
docs_readpath="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.
- 1h 08m
docs_readpath="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.
- 1h 08m
stop_programresult
Program stopped. Game time: 1h 9m 6s elapsed, 4h 50m 54s of budget remaining.
- 1h 09m
write_programname="f" · evidenceresult
Saved f (174 lines). Game time: 1h 9m 16s elapsed, 4h 50m 44s of budget remaining.
- 1h 09m
write_programname="m" · evidenceresult
Saved m (15 lines). Game time: 1h 9m 26s elapsed, 4h 50m 34s of budget remaining.
- 1h 09m
run_programname="m" seconds=180result
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) … - 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.
- 1h 12m
buy_upgradeupgrades=["dictionaries","polyculture","cactus","fertilizer","grass","pumpkins","trees"] · evidenceresult
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…
- 1h 12m
docs_readpath="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 `…
- 1h 12m
docs_readpath="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…
- 1h 13m
write_programname="c" · evidenceresult
Saved c (64 lines). Game time: 1h 13m 16s elapsed, 4h 46m 44s of budget remaining.
- 1h 13m
stop_programresult
Program stopped. Game time: 1h 13m 26s elapsed, 4h 46m 34s of budget remaining.
- 1h 13m
write_programname="m" · evidenceresult
Saved m (20 lines). Game time: 1h 13m 36s elapsed, 4h 46m 24s of budget remaining.
- 1h 13m
run_programname="m" seconds=120result
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) ^^ ----------------------… - 1h 15m
buy_upgradeupgrades=["mazes","dinosaurs","carrots","watering","utilities","trees","grass"] · evidenceresult
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 …
- 1h 15m
docs_readpath="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 …
- 1h 16m
researchresult
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…
- 1h 16m
write_programname="g" · evidenceresult
Saved g (71 lines). Game time: 1h 16m 26s elapsed, 4h 43m 34s of budget remaining.
- 1h 16m
stop_programresult
Program stopped. Game time: 1h 16m 36s elapsed, 4h 43m 24s of budget remaining.
- 1h 16m
write_programname="m" · evidenceresult
Saved m (21 lines). Game time: 1h 16m 46s elapsed, 4h 43m 14s of budget remaining.
- 1h 16m
buy_upgradeupgrades=["pumpkins"] · evidenceresult
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.
- 1h 16m
run_programname="m" seconds=120result
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)
- 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.
- 1h 19m
docs_readpath="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.
- 1h 19m
docs_readpath="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.
- 1h 19m
write_programname="d" · evidenceresult
Saved d (46 lines). Game time: 1h 19m 36s elapsed, 4h 40m 24s of budget remaining.
- 1h 19m
waitseconds=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.
- 1h 32m
buy_upgradeupgrades=["megafarm"] · evidenceresult
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.
- 1h 32m
observeresult
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 …
- 1h 33m
buy_upgradeupgrades=["expand","dinosaurs","fertilizer"] · evidenceresult
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.
- 1h 33m
researchresult
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…
- 1h 33msaidBought 16 drones and the 16x16 expansion. Now testing the dinosaur routine for bones (which unlock polyculture upgrades).
- 1h 33m
write_programname="td" · evidenceresult
Saved td (4 lines). Game time: 1h 33m 32s elapsed, 4h 26m 28s of budget remaining.
- 1h 33m
run_programname="td" seconds=600result
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) ^^ … - 1h 38m
docs_searchquery="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…
- 1h 38m
write_programname="th" · evidenceresult
Saved th (5 lines). Game time: 1h 38m 39s elapsed, 4h 21m 21s of budget remaining.
- 1h 38m
run_programname="th" seconds=20result
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)) ^^ -------------------------… - 1h 38m
buy_upgradeupgrades=["polyculture","polyculture","polyculture","debug"] · evidenceresult
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 …
- 1h 38m
write_programname="d" · evidenceresult
Saved d (99 lines). Game time: 1h 39m 9s elapsed, 4h 20m 51s of budget remaining.
- 1h 39m
write_programname="m" · evidenceresult
Saved m (45 lines). Game time: 1h 39m 19s elapsed, 4h 20m 41s of budget remaining.
- 1h 39m
run_programname="m" seconds=120result
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)
- 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.
- 1h 41m
buy_upgradeupgrades=["carrots","trees","pumpkins","watering","costs"] · evidenceresult
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 …
- 1h 41m
waitseconds=180result
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.
- 1h 44m
observeresult
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,…
- 1h 44m
buy_upgradeupgrades=["mazes","grass"] · evidenceresult
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.
- 1h 45m
stop_programresult
Program stopped. Game time: 1h 45m 19s elapsed, 4h 14m 41s of budget remaining.
- 1h 45m
write_programname="m" · evidenceresult
Saved m (45 lines). Game time: 1h 45m 29s elapsed, 4h 14m 31s of budget remaining.
- 1h 45m
run_programname="m" seconds=300result
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)
- 1h 50m
waitseconds=60result
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.
- 1h 51m
stop_programresult
Program stopped. Game time: 1h 51m 59s elapsed, 4h 8m 1s of budget remaining.
- 1h 51m
write_programname="m" · evidenceresult
Saved m (45 lines). Game time: 1h 52m 9s elapsed, 4h 7m 51s of budget remaining.
- 1h 52m
run_programname="m" seconds=600result
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)
- 2h 02m
write_programname="th" · evidenceresult
Saved th (12 lines). Game time: 2h 2m 29s elapsed, 3h 57m 31s of budget remaining.
- 2h 02m
run_programname="th" seconds=5result
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)
- 2h 02m
observeresult
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…
- 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.
- 2h 02m
stop_programresult
Program stopped. Game time: 2h 3m 4s elapsed, 3h 56m 56s of budget remaining.
- 2h 03m
write_programname="z" · evidenceresult
Saved z (85 lines). Game time: 2h 3m 14s elapsed, 3h 56m 46s of budget remaining.
- 2h 03m
write_programname="m" · evidenceresult
Saved m (45 lines). Game time: 2h 3m 24s elapsed, 3h 56m 36s of budget remaining.
- 2h 03m
run_programname="m" seconds=120result
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)
- 2h 05m
waitseconds=120result
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.
- 2h 07m
waitseconds=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.
- 2h 14m
buy_upgradeupgrades=["polyculture"] · evidenceresult
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.
- 2h 14m
stop_programresult
Program stopped. Game time: 2h 14m 31s elapsed, 3h 45m 29s of budget remaining.
- 2h 14m
write_programname="m" · evidenceresult
Saved m (53 lines). Game time: 2h 14m 41s elapsed, 3h 45m 19s of budget remaining.
- 2h 14m
run_programname="m" seconds=180result
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)
- 2h 17m
buy_upgradeupgrades=["grass","trees","carrots","pumpkins","watering","cactus","dinosaurs"] · evidenceresult
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, …
- 2h 18m
waitseconds=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.
- 2h 21m
buy_upgradeupgrades=["megafarm","carrots"] · evidenceresult
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.
- 2h 22m
researchresult
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…
- 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.
- 2h 22m
stop_programresult
Program stopped. Game time: 2h 22m 28s elapsed, 3h 37m 32s of budget remaining.
- 2h 22m
write_programname="z" · evidenceresult
Saved z (96 lines). Game time: 2h 22m 38s elapsed, 3h 37m 22s of budget remaining.
- 2h 22m
write_programname="m" · evidenceresult
Saved m (53 lines). Game time: 2h 22m 48s elapsed, 3h 37m 12s of budget remaining.
- 2h 22m
run_programname="m" seconds=600result
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)
- 2h 32m
observeresult
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); *…
- 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.
- 2h 33m
stop_programresult
Program stopped. Game time: 2h 33m 18s elapsed, 3h 26m 42s of budget remaining.
- 2h 33m
write_programname="i" · evidenceresult
Saved i (8 lines). Game time: 2h 33m 28s elapsed, 3h 26m 32s of budget remaining.
- 2h 33m
write_programname="m" · evidenceresult
Saved m (54 lines). Game time: 2h 33m 38s elapsed, 3h 26m 22s of budget remaining.
- 2h 33m
run_programname="m" seconds=60result
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)
- 2h 34m
waitseconds=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.
- 2h 54m
waitseconds=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.
- 2h 55m
buy_upgradeupgrades=["polyculture","timing"] · evidenceresult
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.
- 2h 55m
stop_programresult
Program stopped. Game time: 2h 55m 46s elapsed, 3h 4m 14s of budget remaining.
- 2h 55m
write_programname="m" · evidenceresult
Saved m (29 lines). Game time: 2h 55m 56s elapsed, 3h 4m 4s of budget remaining.
- 2h 55m
run_programname="m" seconds=300result
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
- 3h 01msaidPolyculture L5 with 32 drones now yields ~6M each of hay/wood/carrot per cycle. Spending on the yield-upgrade ladders.
- 3h 01m
buy_upgradeupgrades=["grass","trees","carrots","pumpkins","cactus","watering","grass","trees","carrots","pumpkins","watering"] · evidenceresult
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…
- 3h 01m
waitseconds=240result
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.
- 3h 05m
buy_upgradeupgrades=["mazes","expand","grass","trees","carrots","pumpkins","watering","grass","carrots","pumpkins"] · evidenceresult
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,…
- 3h 05m
waitseconds=420result
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.
- 3h 12msaidFarm is 22x22 and producing tens of millions of hay/wood/carrot per cycle. Checking state and buying the next round of upgrades.
- 3h 12m
buy_upgradeupgrades=["dinosaurs","carrots","grass","pumpkins","cactus","mazes"] · evidenceresult
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…
- 3h 12m
researchresult
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…
- 3h 13m
write_programname="s" · evidenceresult
Saved s (88 lines). Game time: 3h 13m 16s elapsed, 2h 46m 44s of budget remaining.
- 3h 13m
write_programname="s" · evidenceresult
Saved s (123 lines). Game time: 3h 13m 26s elapsed, 2h 46m 34s of budget remaining.
- 3h 13m
waitseconds=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.
- 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.
- 3h 28m
observeresult
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…
- 3h 28m
waitseconds=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.
- 3h 32m
stop_programresult
Program stopped. Game time: 3h 32m 59s elapsed, 2h 27m 1s of budget remaining.
- 3h 32m
write_programname="m" · evidenceresult
Saved m (38 lines). Game time: 3h 33m 9s elapsed, 2h 26m 51s of budget remaining.
- 3h 33m
run_programname="m" seconds=420result
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
- 3h 40m
write_programname="u" · evidenceresult
Saved u (48 lines). Game time: 3h 40m 29s elapsed, 2h 19m 31s of budget remaining.
- 3h 40m
buy_upgradeupgrades=["grass","mazes","cactus"] · evidenceresult
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.
- 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.
- 3h 40m
write_programname="u" · evidenceresult
Saved u (49 lines). Game time: 3h 40m 49s elapsed, 2h 19m 11s of budget remaining.
- 3h 40m
waitseconds=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.
- 3h 50m
buy_upgradeupgrades=["mazes","cactus"] · evidenceresult
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.
- 3h 51m
waitseconds=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.
- 3h 55m
buy_upgradeupgrades=["pumpkins","carrots","dinosaurs"] · evidenceresult
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.
- 3h 55m
stop_programresult
Program stopped. Game time: 3h 55m 44s elapsed, 2h 4m 16s of budget remaining.
- 3h 55m
write_programname="m" · evidenceresult
Saved m (39 lines). Game time: 3h 55m 54s elapsed, 2h 4m 6s of budget remaining.
- 3h 55m
run_programname="m" seconds=300result
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
- 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.
- 4h 01m
waitseconds=240result
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.
- 4h 05m
waitseconds=30result
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.
- 4h 05m
observeresult
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…
- 4h 06m
buy_upgradeupgrades=["carrots","dinosaurs","mazes","cactus","dinosaurs"] · evidenceresult
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…
- 4h 06m
researchresult
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…
- 4h 06m
waitseconds=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.
- 4h 10m
stop_programresult
Program stopped. Game time: 4h 10m 55s elapsed, 1h 49m 5s of budget remaining.
- 4h 10m
write_programname="m" · evidenceresult
Saved m (44 lines). Game time: 4h 11m 5s elapsed, 1h 48m 55s of budget remaining.
- 4h 11m
run_programname="m" seconds=360result
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
- 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.
- 4h 17m
buy_upgradeupgrades=["mazes","cactus"] · evidenceresult
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.
- 4h 17m
stop_programresult
Program stopped. Game time: 4h 17m 35s elapsed, 1h 42m 25s of budget remaining.
- 4h 17m
write_programname="z" · evidenceresult
Saved z (95 lines). Game time: 4h 17m 45s elapsed, 1h 42m 15s of budget remaining.
- 4h 17m
run_programname="m" seconds=240result
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)
- 4h 21m
waitseconds=45result
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.
- 4h 22m
write_programname="th" · evidenceresult
Saved th (17 lines). Game time: 4h 23m elapsed, 1h 37m of budget remaining.
- 4h 23m
run_programname="th" seconds=60result
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
- 4h 23m
write_programname="m" · evidenceresult
Saved m (44 lines). Game time: 4h 23m 30s elapsed, 1h 36m 30s of budget remaining.
- 4h 23m
buy_upgradeupgrades=["cactus","dinosaurs"] · evidenceresult
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.
- 4h 23m
run_programname="m" seconds=300result
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 …
- 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.
- 4h 28m
waitseconds=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.
- 4h 29m
buy_upgradeupgrades=["dinosaurs"] · evidenceresult
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.
- 4h 29m
waitseconds=600result
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.
- 4h 39m
waitseconds=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.
- 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).
- 4h 46m
observeresult
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 …
- 4h 46m
waitseconds=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.
- 4h 50m
stop_programresult
Program stopped. Game time: 4h 50m 50s elapsed, 1h 9m 10s of budget remaining.
- 4h 50m
write_programname="m" · evidenceresult
Saved m (48 lines). Game time: 4h 51m elapsed, 1h 9m of budget remaining.
- 4h 51m
run_programname="m" seconds=540result
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)
- 5h 00m
waitseconds=50result
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.
- 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).
- 5h 01m
stop_programresult
Program stopped. Game time: 5h 1m 20s elapsed, 58m 40s of budget remaining.
- 5h 01m
write_programname="m" · evidenceresult
Saved m (50 lines). Game time: 5h 1m 30s elapsed, 58m 30s of budget remaining.
- 5h 01m
run_programname="m" seconds=600result
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…
- 5h 11m
waitseconds=150result
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.
- 5h 14m
observeresult
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 …
- 5h 14m
stop_programresult
Program stopped. Game time: 5h 14m 40s elapsed, 45m 20s of budget remaining.
- 5h 14m
write_programname="th" · evidenceresult
Saved th (67 lines). Game time: 5h 14m 50s elapsed, 45m 10s of budget remaining.
- 5h 14m
run_programname="th" seconds=200result
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 …
- 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.
- 5h 15m
write_programname="m" · evidenceresult
Saved m (49 lines). Game time: 5h 15m 34s elapsed, 44m 26s of budget remaining.
- 5h 15m
run_programname="m" seconds=780result
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)
- 5h 28m
stop_programresult
Program stopped. Game time: 5h 28m 54s elapsed, 31m 6s of budget remaining.
- 5h 28m
write_programname="m" · evidenceresult
Saved m (49 lines). Game time: 5h 29m 4s elapsed, 30m 56s of budget remaining.
- 5h 29m
run_programname="m" seconds=480result
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
- 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).
- 5h 37m
waitseconds=660result
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.
- 5h 48m
waitseconds=670result
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.
- 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.
- 5h 59m
waitseconds=6result
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.
- 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.
spent
What it spent
API-equivalent estimate at list prices; not an actual charge
Tokens
| Input (uncached) | 1,635 |
| Cache reads | 12,387,101 |
| Cache writes | 201,020 |
| Output | 106,305 |
| Thinking (subset of output where reported) | 57,067 |
| Total | 12,696,061 |
|---|
| Model | Tokens | Estimate |
|---|---|---|
| claude-fable-5-2 | 12,694,643 | $8.74 |
| claude-haiku-5-5 | 1,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).
conditions
Limitations
- Recorded from a harness checkout with uncommitted changes.
| Run id | economy-v1-claude-claude-fable-5-2-s2-a1-20261109T203252Z |
|---|---|
| Task | economy-v1 · acb5fb455a43 |
| Budget | 6h 00m game time · 10s per action · caps: 2,000 tool calls, 20 continuations, 4h 00m real time |
| Agent | Claude Agent 0.91.0 (@agentclientprotocol/claude-agent-acp) |
| Applied config | {"model":"claude-fable-5-2 (session option)","effort":"medium","fast":"off"} |
| Models reported | claude-fable-5-2, claude-haiku-5-5 |
| Tools available | buy_upgrade, docs_list, docs_read, docs_search, inspect_tile, list_programs, observe, research, run_program, stop_program, wait, write_program |
| Harness | a50c2460e8d9 (uncommitted changes) |
| Bridge / game | 2cb6f7438845 / 953fea25964f |
| Adapters | claude-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 / ended | 2026-11-09T20:32:52.245Z → 2026-11-09T21:09:33.891Z |
| Evidence | 105 items in evidence.json |