# FizzBuzzPath Help Me pls

**URL:** <https://discourse.codecombat.com/t/fizzbuzzpath-help-me-pls/34776>\
**Category:** Level Help\
**Created:** [January 19, 2023, 12:09pm UTC](https://discourse.codecombat.com/t/fizzbuzzpath-help-me-pls/34776 "2023-01-19T12:09:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bo\_Wiseacre](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/bo_wiseacre/32/10424_2.png) [@Bo\_Wiseacre](https://discourse.codecombat.com/u/Bo_Wiseacre)\
**Post date:** [January 19, 2023, 12:09pm UTC](https://discourse.codecombat.com/t/fizzbuzzpath-help-me-pls/34776/1 "2023-01-19T12:09:18Z")

</div>

My problem is than i can’t collect 32 coins but i can run from dungeon.  
My code:

```python
steps = 1

while True:
    # If the number of steps is divisible by 3 AND by 5 -- move to North-West
    if steps % 3 == 0 and steps % 5 == 0:
        hero.moveXY(hero.pos.x - 10, hero.pos.y + 10)
    # Else if the number of steps is divisible by 3 -- move to East
    elif steps % 3 == 0:
        hero.moveXY(hero.pos.x + 10, hero.pos.y)
    # Else if the number of steps is divisible by 5 -- move to West
    elif steps % 5 == 0:
        hero.moveXY(hero.pos.x - 10, hero.pos.y)
    # Else move to North
    else:
        
        hero.moveXY(hero.pos.x, hero.pos.y + 10)
    
    steps += 1

```

---

<div class="post-metadata">

**Author:** ![Bo\_Wiseacre](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/bo_wiseacre/32/10424_2.png) [@Bo\_Wiseacre](https://discourse.codecombat.com/u/Bo_Wiseacre)\
**Post date:** [January 19, 2023, 12:10pm UTC](https://discourse.codecombat.com/t/fizzbuzzpath-help-me-pls/34776/2 "2023-01-19T12:10:08Z")

</div>

![изображение_2023-01-19_141001302](https://us1.discourse-cdn.com/flex016/uploads/codecombat/original/3X/e/a/eaa6130176aa112fbfbc9bddd34fecfd401d14e4.png)  
My equip

---

<div class="post-metadata">

**Author:** ![MarmiteOnToast](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/marmiteontoast/32/46649_2.png) [@MarmiteOnToast](https://discourse.codecombat.com/u/MarmiteOnToast)\
**Post date:** [January 19, 2023, 1:50pm UTC](https://discourse.codecombat.com/t/fizzbuzzpath-help-me-pls/34776/3 "2023-01-19T13:50:26Z")

</div>

Ah, I see the problem.  
The mimic is pulling the coins with it, but your hero isn’t coded to go back to pick them up.  
Try unequipping the mimic or using a different pet, and it should work fine 😉  
Marmite

---

<div class="post-metadata">

**Author:** ![Bo\_Wiseacre](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/bo_wiseacre/32/10424_2.png) [@Bo\_Wiseacre](https://discourse.codecombat.com/u/Bo_Wiseacre)\
**Post date:** [January 21, 2023, 9:31am UTC](https://discourse.codecombat.com/t/fizzbuzzpath-help-me-pls/34776/4 "2023-01-21T09:31:10Z")

</div>

Thank you. Pet replacing help me.I just looking for solution and couldn’t find it even though the code seems to be correct.  
 ![изображение_2023-01-21_113104493](https://us1.discourse-cdn.com/flex016/uploads/codecombat/original/3X/7/3/73bc9fc6abb2b21d51831e1caf8fa3485e1cfc58.png)

---

<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:** [January 21, 2023, 9:31pm UTC](https://discourse.codecombat.com/t/fizzbuzzpath-help-me-pls/34776/5 "2023-01-21T21:31:54Z")

</div>

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