Fix: order in sunflower

This commit is contained in:
2025-11-10 03:58:52 +08:00
parent 47d25d1831
commit fe142bae33
2 changed files with 3 additions and 4 deletions

View File

@@ -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():