Cactus Trouble
I am succesfully planting all cacti using multi drones (i only have the one extra). I am looking for help getting my sort_coloumn() function to work. i have tried a lot of diffrent things, to make it work myself and it just dont work. i really want it to be so close to my code as possible and it does not have to be efficient. sorry for my bad english rn im tired af
def sort_coloumn():
swapped = True
while swapped:
swapped = False
if measure() > measure(North):
move(North)
swapped = True
move(North)
def sort_all_coloumn():
move\_to\_x\_pos(0)
for i in range(grid\_size):
move\_to\_x\_pos(i)
drone = spawn\_drone(sort\_coloumn)
move(East)
wait\_for(drone)
u/Lyxse17 — 7 days ago