The level Gardener is ready for testing.

It’s Mountain level from Geometry series. Let’s continue to improve your flower skills.

2 Likes

completed level without issue

submitted LUA patch

1 Like

Thanks, Harry!

20characters

1 Like

How do you do this level?

Thanks

Hello Demented-Pufferfish. Welcome to the CodeCombat discourse!
You can access the level here.

What I mean is when they ask you to go to the to any corner of the square.

# around the center {cx, cy} point.

def growSquare(cx, cy, side):
# Move to any corner of the square.
hero.moveXY(cx, cy)
# Start growing.
hero.toggleFlowers(True)
# Now move to all other corners one by one.
# Use clockwise or countercloclwise order.

# Don't forget to return in the first corner.

# Stop growing.
hero.toggleFlowers(False)

# The keeper will tell you where to grow flowers.

keeper = hero.findNearest(hero.findFriends())
points = keeper.pointsForWork

squareSize = 8

# We don’t need excess flowers.

hero.toggleFlowers(False)

for pos in points:
# Don’t forget complete this function.
growSquare(pos.x, pos.y, squareSize)

Please learn to post your code correctly. The way it is now, we can’t see the structure. Help us help you. It’s very easy to do and just takes a tiny bit of effort. Please read this topic and format your code again correctly

@Demented-Pufferfish

You can choose any statue and any of the different points around the statue to start. The goal is to encircle each statue with flowers.

The phrase any corner of the square is in reference to the concept that there are four dots around the statues that form a “square”, and that you can start at any point, just as long as you create a circle of flowers around the statue.

-Harry

2 Likes