Fix: order in sunflower
This commit is contained in:
@@ -24,7 +24,7 @@ def grow(xl, yl, n):
|
||||
|
||||
while len(check):
|
||||
nxt = list()
|
||||
for x, y in check:
|
||||
for x, y in check[::-1]:
|
||||
utils.mv(x, y)
|
||||
if not can_harvest():
|
||||
nxt.append((x, y))
|
||||
|
||||
@@ -63,10 +63,9 @@ def grow(xl, xr, yl, yr):
|
||||
l, r, d = yr-1, yl-1, -1
|
||||
for y in range(l, r, d):
|
||||
utils.mv(x, y)
|
||||
cur = measure()-7
|
||||
pos[cur].append((x, y))
|
||||
pos[measure()-7].append((x, y))
|
||||
|
||||
for p in pos:
|
||||
for p in pos[::-1]:
|
||||
for x, y in p:
|
||||
utils.mv(x, y)
|
||||
while not utils.harv():
|
||||
|
||||
Reference in New Issue
Block a user