add sunflower grid planting / harvesting logic

This commit is contained in:
2026-01-10 01:12:11 -05:00
parent db310c2a19
commit 5a16e7a8a3
3 changed files with 127 additions and 7 deletions

View File

@@ -1,5 +1,6 @@
import utils
import pumpkins
import sunflowers
from __builtins__ import *
def plant_carrots(width, height):
@@ -18,8 +19,11 @@ if __name__ == "__main__":
sectionSize = worldSize // 3
utils.move_to(0, 0)
pumpkins.plant_and_verify(sectionSize, sectionSize)
grid = sunflowers.place(sectionSize, sectionSize)
utils.move_to(0, 0)
sunflowers.harvest_grid(sectionSize, sectionSize, grid)
utils.move_to(sectionSize+1, 0)
plant_carrots(sectionSize, sectionSize)
@@ -37,7 +41,7 @@ if __name__ == "__main__":
plant_carrots(sectionSize, sectionSize)
utils.move_to(0, sectionSize*2+1)
plant_alternating(sectionSize, sectionSize, [ Entities.Tree, Entities.Bush ])
pumpkins.plant_and_verify(sectionSize, sectionSize)
utils.move_to(sectionSize+1, sectionSize*2+1)
plant_alternating(sectionSize, sectionSize, [ Entities.Tree, Entities.Bush ])