# \[SOLVED\] Mountain Flower Grove hlp

**URL:** <https://discourse.codecombat.com/t/solved-mountain-flower-grove-hlp/22886>\
**Category:** Level Help\
**Created:** [July 9, 2020, 2:09pm UTC](https://discourse.codecombat.com/t/solved-mountain-flower-grove-hlp/22886 "2020-07-09T14:09:05Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![098765432123](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/098765432123/32/25850_2.png) [@098765432123](https://discourse.codecombat.com/u/098765432123)\
**Post date:** [July 9, 2020, 2:09pm UTC](https://discourse.codecombat.com/t/solved-mountain-flower-grove-hlp/22886/1 "2020-07-09T14:09:06Z")

</div>

here is my code

```python
def drawCircle(x, y, size):
    angle = 0
    hero.toggleFlowers(False)
    while angle <= Math.PI * 2:
        newX = x + (size * Math.cos(angle))
        newY = y + (size * Math.sin(angle))
        hero.moveXY(newX, newY)
        hero.toggleFlowers(True)
        angle += 0.2

def drawSquare(x, y, size):
    hero.toggleFlowers(False)
    cornerOffset = size / 2
    hero.moveXY(x - cornerOffset, y - cornerOffset)
    hero.toggleFlowers(True)
    hero.moveXY(x + cornerOffset, y - cornerOffset)
    hero.moveXY(x + cornerOffset, y + cornerOffset)
    hero.moveXY(x - cornerOffset, y + cornerOffset)
    hero.moveXY(x - cornerOffset, y - cornerOffset)
redX = {"x": 28, "y": 36}
whiteX = {"x": 44, "y": 36}
hero.setFlowerColor("random")
drawCircle(28, 36, 12)
hero.setFlowerColor("random")
drawSquare(44, 36, 12)
hero.setFlowerColor("random")
drawCircle(82, 72, 40)

```

im trying to draw a circle then a square then a relly big circle at the middle

---

<div class="post-metadata">

**Author:** ![098765432123](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/098765432123/32/25850_2.png) [@098765432123](https://discourse.codecombat.com/u/098765432123)\
**Post date:** [July 9, 2020, 2:11pm UTC](https://discourse.codecombat.com/t/solved-mountain-flower-grove-hlp/22886/2 "2020-07-09T14:11:54Z")

</div>

@AnSeDra @dedreous (20chars)

---

<div class="post-metadata">

**Author:** ![AnSeDra](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/ansedra/32/13123_2.png) [@AnSeDra](https://discourse.codecombat.com/u/AnSeDra)\
**Post date:** [July 9, 2020, 2:15pm UTC](https://discourse.codecombat.com/t/solved-mountain-flower-grove-hlp/22886/3 "2020-07-09T14:15:26Z")

</div>

> [@098765432123](#):
>
> `drawCircle(28, 36, 12)`

> [@098765432123](#):
>
> `drawSquare(44, 36, 12)`

What do the comments say about the size of the first circle and of the square? (Hint: it is with 2 smaller than your current size)

Andrei

---

<div class="post-metadata">

**Author:** ![098765432123](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/098765432123/32/25850_2.png) [@098765432123](https://discourse.codecombat.com/u/098765432123)\
**Post date:** [July 9, 2020, 2:16pm UTC](https://discourse.codecombat.com/t/solved-mountain-flower-grove-hlp/22886/4 "2020-07-09T14:16:13Z")

</div>

i know i just needed more flowers

---

<div class="post-metadata">

**Author:** ![AnSeDra](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/ansedra/32/13123_2.png) [@AnSeDra](https://discourse.codecombat.com/u/AnSeDra)\
**Post date:** [July 9, 2020, 2:16pm UTC](https://discourse.codecombat.com/t/solved-mountain-flower-grove-hlp/22886/5 "2020-07-09T14:16:34Z")

</div>

> [@098765432123](#):
>
> ```python
> hero.setFlowerColor("random")
> drawCircle(28, 36, 12)
> hero.setFlowerColor("random")
> 
> ```

Here change the color of the flowers between the 2 shapes.

Andrei

---

<div class="post-metadata">

**Author:** ![AnSeDra](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/ansedra/32/13123_2.png) [@AnSeDra](https://discourse.codecombat.com/u/AnSeDra)\
**Post date:** [July 9, 2020, 2:17pm UTC](https://discourse.codecombat.com/t/solved-mountain-flower-grove-hlp/22886/6 "2020-07-09T14:17:41Z")

</div>

And if it is the level in what you need to use 1000 flowers, try to draw a lot of shapes in order to succed.

Andrei

---

<div class="post-metadata">

**Author:** ![098765432123](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/098765432123/32/25850_2.png) [@098765432123](https://discourse.codecombat.com/u/098765432123)\
**Post date:** [July 9, 2020, 2:18pm UTC](https://discourse.codecombat.com/t/solved-mountain-flower-grove-hlp/22886/7 "2020-07-09T14:18:11Z")

</div>

it is the one where you need 1000

---

<div class="post-metadata">

**Author:** ![AnSeDra](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/ansedra/32/13123_2.png) [@AnSeDra](https://discourse.codecombat.com/u/AnSeDra)\
**Post date:** [July 9, 2020, 2:19pm UTC](https://discourse.codecombat.com/t/solved-mountain-flower-grove-hlp/22886/8 "2020-07-09T14:19:49Z")

</div>

Them use this advice (I belived that it was the one where you earn the boss star 2)

> [@\[SOLVED\] Mountain Flower Grove hlp](https://discourse.codecombat.com/t/mountain-flower-grove-hlp/22886/6):
>
> And if it is the level in what you need to use 1000 flowers, try to draw a lot of shapes in order to succed. Andrei

Andrei

---

<div class="post-metadata">

**Author:** ![098765432123](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/098765432123/32/25850_2.png) [@098765432123](https://discourse.codecombat.com/u/098765432123)\
**Post date:** [July 9, 2020, 2:21pm UTC](https://discourse.codecombat.com/t/solved-mountain-flower-grove-hlp/22886/9 "2020-07-09T14:21:44Z")

</div>

yes it was give me a minute to get a lot of circles and squares

---

<div class="post-metadata">

**Author:** ![098765432123](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/098765432123/32/25850_2.png) [@098765432123](https://discourse.codecombat.com/u/098765432123)\
**Post date:** [July 9, 2020, 2:23pm UTC](https://discourse.codecombat.com/t/solved-mountain-flower-grove-hlp/22886/10 "2020-07-09T14:23:59Z")

</div>

i completed it! and i just did the same code over and over to stack but it counts! thanks

---

<div class="post-metadata">

**Author:** ![AnSeDra](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/ansedra/32/13123_2.png) [@AnSeDra](https://discourse.codecombat.com/u/AnSeDra)\
**Post date:** [July 9, 2020, 2:25pm UTC](https://discourse.codecombat.com/t/solved-mountain-flower-grove-hlp/22886/11 "2020-07-09T14:25:16Z")

</div>

No problem! And congratulations for completing the level! 🥳

Andrei

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/codecombat/original/2X/a/a9445509d1a758c41b5ddcddc8c8e20a5dedb67f.png) [@system](https://discourse.codecombat.com/u/system)\
**Post date:** [July 10, 2020, 2:25am UTC](https://discourse.codecombat.com/t/solved-mountain-flower-grove-hlp/22886/12 "2020-07-10T02:25:16Z")

</div>

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.
