# I found a bug on backwoods fork

**URL:** <https://discourse.codecombat.com/t/i-found-a-bug-on-backwoods-fork/20668>\
**Category:** Level Help\
**Created:** [March 25, 2020, 8:22pm UTC](https://discourse.codecombat.com/t/i-found-a-bug-on-backwoods-fork/20668 "2020-03-25T20:22:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZAX155](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/zax155/32/34141_2.png) [@ZAX155](https://discourse.codecombat.com/u/ZAX155)\
**Post date:** [March 25, 2020, 8:22pm UTC](https://discourse.codecombat.com/t/i-found-a-bug-on-backwoods-fork/20668/1 "2020-03-25T20:22:19Z")

</div>

@CodingGeek14 @ducky @Yeroc8 @Miarc

```python
while True:
   
   # Use the checkAndAttack function to make your code easy to read.
   
       # This function has a parameter.
       # An parameter is a way of passing information into a function.
   def checkAndAttack(target):
       # The 'target' parameter is just a variable!
   # It contains the argument when the function was called.
       if target:
           hero.attack(target)
           hero.moveXY(43, 34)
   
   
   hero.moveXY(58, 52)
   topEnemy = hero.findNearestEnemy()
   # Using the checkAndAttack function with the topEnemy variable.
   checkAndAttack(topEnemy)
   
   # Move to the bottom X mark.
   hero.moveXY(58, 16)
   # Create a variable named bottomEnemy and find the nearest enemy.
   
   # Use the checkAndAttack function, and include the bottomEnemy variable.
   
       

```

it says success but i can’t complete the level

---

<div class="post-metadata">

**Author:** ![ducky](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/ducky/32/9364_2.png) [@ducky](https://discourse.codecombat.com/u/ducky)\
**Post date:** [March 25, 2020, 8:26pm UTC](https://discourse.codecombat.com/t/i-found-a-bug-on-backwoods-fork/20668/2 "2020-03-25T20:26:32Z")

</div>

You only have one goal completed

---

<div class="post-metadata">

**Author:** ![ducky](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/ducky/32/9364_2.png) [@ducky](https://discourse.codecombat.com/u/ducky)\
**Post date:** [March 25, 2020, 8:27pm UTC](https://discourse.codecombat.com/t/i-found-a-bug-on-backwoods-fork/20668/3 "2020-03-25T20:27:41Z")

</div>

Also, nobody will really respond to you if they haven’t really been around.

---

<div class="post-metadata">

**Author:** ![dedreous](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/dedreous/32/13849_2.png) [@dedreous](https://discourse.codecombat.com/u/dedreous)\
**Post date:** [March 25, 2020, 8:52pm UTC](https://discourse.codecombat.com/t/i-found-a-bug-on-backwoods-fork/20668/4 "2020-03-25T20:52:09Z")

</div>

Zax, it’s not a bug…you just have not completed the necessary code. I’ve moved this topic from Bugs to Level Help, where it should be.
