南瓜
clear()
set_execution_speed(8)
set_world_size(6)
while True:
all_ready = True
for x in range(get_world_size()):
for y in range(get_world_size()):
#书写的代码
if get_ground_type() != Grounds.Soil:
till()
plant(Entities.Pumpkin)
if get_entity_type() == None or not can_harvest():
plant(Entities.Pumpkin)
all_ready = False
move(North)
move(East)
# 如果全熟了,去 0,0 位置收割巨型南瓜
if all_ready:
harvest()
向日葵
clear()
set_execution_speed(8)
set_world_size(9)
while True:
for x in range(get_world_size()):
for y in range(get_world_size()):
if get_ground_type() != Grounds.Soil:
till()
plant(Entities.Sunflower)
move(North)
move(East)
power = 15
for i in range(9):
for x in range(get_world_size()):
for y in range(get_world_size()):
if measure() == power:
harvest()
print(power)
move(North)
move(East)
power = power - 1