add sunflower grid planting / harvesting logic
This commit is contained in:
8
main.py
8
main.py
@@ -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 ])
|
||||
|
||||
Reference in New Issue
Block a user