# Level help: Clash of clones (python)

**URL:** <https://discourse.codecombat.com/t/level-help-clash-of-clones-python/39128>\
**Category:** Level Help\
**Created:** [October 11, 2024, 4:32pm UTC](https://discourse.codecombat.com/t/level-help-clash-of-clones-python/39128 "2024-10-11T16:32:14Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![paper](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/paper/32/43538_2.png) [@paper](https://discourse.codecombat.com/u/paper)\
**Post date:** [October 11, 2024, 4:32pm UTC](https://discourse.codecombat.com/t/level-help-clash-of-clones-python/39128/1 "2024-10-11T16:32:14Z")

</div>

I need help with clash of clones I get past the archers and the ogres but the wizards and clone of me get me

```python

def findArcher(units):
    for unit in units:
        if unit.type == "archer":
            return unit

while True:
    enemies = hero.findEnemies()
    archer = findArcher(enemies)
    if archer:
        hero.attack(archer)
    else:
        enemy = hero.findNearestEnemy()
        hero.attack(enemy)

```

this is my equipment

 ![Screenshot 2024-10-11 11.31.51 AM](https://us1.discourse-cdn.com/flex016/uploads/codecombat/original/3X/e/0/e0aa5f4e8878b303b0d89ea5bcd9c9a19fd82d73.png)

---

<div class="post-metadata">

**Author:** ![fastfisch](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/fastfisch/32/42441_2.png) [@fastfisch](https://discourse.codecombat.com/u/fastfisch)\
**Post date:** [October 11, 2024, 4:45pm UTC](https://discourse.codecombat.com/t/level-help-clash-of-clones-python/39128/2 "2024-10-11T16:45:36Z")

</div>

Try to use all of your equipment to take down your clone because your clone can only use its sword. Also, you could use a very weak sword and/or armor to make your clone almost useless because it has the same armor and weapon as you. But, if you use weak equipment you have to be careful that the archers won’t kill you.

---

<div class="post-metadata">

**Author:** ![paper](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/paper/32/43538_2.png) [@paper](https://discourse.codecombat.com/u/paper)\
**Post date:** [October 11, 2024, 4:46pm UTC](https://discourse.codecombat.com/t/level-help-clash-of-clones-python/39128/3 "2024-10-11T16:46:09Z")

</div>

ok the code works though right?

---

<div class="post-metadata">

**Author:** ![fastfisch](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/fastfisch/32/42441_2.png) [@fastfisch](https://discourse.codecombat.com/u/fastfisch)\
**Post date:** [October 11, 2024, 4:50pm UTC](https://discourse.codecombat.com/t/level-help-clash-of-clones-python/39128/4 "2024-10-11T16:50:37Z")

</div>

Remember, to use your other equipment, such as your shield, steel ring, flags, bear trap, and gloves. Also, if you have trouble with the archers, try to use the wolf pet to catch their arrows. Remember I only know the JavaScript coding language.

---

<div class="post-metadata">

**Author:** ![paper](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/paper/32/43538_2.png) [@paper](https://discourse.codecombat.com/u/paper)\
**Post date:** [October 11, 2024, 4:56pm UTC](https://discourse.codecombat.com/t/level-help-clash-of-clones-python/39128/5 "2024-10-11T16:56:47Z")

</div>

I don’t have subscription so I cant use the wolf

---

<div class="post-metadata">

**Author:** ![fastfisch](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/fastfisch/32/42441_2.png) [@fastfisch](https://discourse.codecombat.com/u/fastfisch)\
**Post date:** [October 11, 2024, 4:57pm UTC](https://discourse.codecombat.com/t/level-help-clash-of-clones-python/39128/6 "2024-10-11T16:57:56Z")

</div>

Okay. (ihate20characters)

---

<div class="post-metadata">

**Author:** ![paper](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/paper/32/43538_2.png) [@paper](https://discourse.codecombat.com/u/paper)\
**Post date:** [October 11, 2024, 5:10pm UTC](https://discourse.codecombat.com/t/level-help-clash-of-clones-python/39128/7 "2024-10-11T17:10:32Z")

</div>

I still cant figure it out

---

<div class="post-metadata">

**Author:** ![paper](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/paper/32/43538_2.png) [@paper](https://discourse.codecombat.com/u/paper)\
**Post date:** [October 11, 2024, 5:11pm UTC](https://discourse.codecombat.com/t/level-help-clash-of-clones-python/39128/8 "2024-10-11T17:11:41Z")

</div>

I’m back to base one nothing I did worked so I m back with the original code

---

<div class="post-metadata">

**Author:** ![fastfisch](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/fastfisch/32/42441_2.png) [@fastfisch](https://discourse.codecombat.com/u/fastfisch)\
**Post date:** [October 11, 2024, 5:15pm UTC](https://discourse.codecombat.com/t/level-help-clash-of-clones-python/39128/9 "2024-10-11T17:15:48Z")

</div>

I have an idea, use the worst sword, and a shield that has high bash damage. Then, use the shield to bash your clone and other enemies. When you are waiting to bash again, use your shield to protect yourself.  
(your clone basically can’t do any damage because of the bad sword)

---

<div class="post-metadata">

**Author:** ![paper](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/paper/32/43538_2.png) [@paper](https://discourse.codecombat.com/u/paper)\
**Post date:** [October 11, 2024, 5:16pm UTC](https://discourse.codecombat.com/t/level-help-clash-of-clones-python/39128/10 "2024-10-11T17:16:36Z")

</div>

so basically just get the best shield that can bash and the worst sword I have and on a loop just bash and block?

---

<div class="post-metadata">

**Author:** ![fastfisch](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/fastfisch/32/42441_2.png) [@fastfisch](https://discourse.codecombat.com/u/fastfisch)\
**Post date:** [October 11, 2024, 5:17pm UTC](https://discourse.codecombat.com/t/level-help-clash-of-clones-python/39128/11 "2024-10-11T17:17:51Z")

</div>

That’s what I was thinking.

---

<div class="post-metadata">

**Author:** ![paper](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/paper/32/43538_2.png) [@paper](https://discourse.codecombat.com/u/paper)\
**Post date:** [October 11, 2024, 5:19pm UTC](https://discourse.codecombat.com/t/level-help-clash-of-clones-python/39128/12 "2024-10-11T17:19:17Z")

</div>

![Screenshot 2024-10-11 12.18.59 PM](https://us1.discourse-cdn.com/flex016/uploads/codecombat/original/3X/0/d/0d139b52b25e8793ab344ea0f3179474eed5beca.png)

---

<div class="post-metadata">

**Author:** ![paper](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/paper/32/43538_2.png) [@paper](https://discourse.codecombat.com/u/paper)\
**Post date:** [October 11, 2024, 5:19pm UTC](https://discourse.codecombat.com/t/level-help-clash-of-clones-python/39128/13 "2024-10-11T17:19:34Z")

</div>

like that?

aaaaaaaaaaaaaaaaaaa

---

<div class="post-metadata">

**Author:** ![fastfisch](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/fastfisch/32/42441_2.png) [@fastfisch](https://discourse.codecombat.com/u/fastfisch)\
**Post date:** [October 11, 2024, 5:20pm UTC](https://discourse.codecombat.com/t/level-help-clash-of-clones-python/39128/14 "2024-10-11T17:20:39Z")

</div>

Yes, if you die because you don’t have enough health, try using some armor.

---

<div class="post-metadata">

**Author:** ![paper](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/paper/32/43538_2.png) [@paper](https://discourse.codecombat.com/u/paper)\
**Post date:** [October 11, 2024, 5:22pm UTC](https://discourse.codecombat.com/t/level-help-clash-of-clones-python/39128/15 "2024-10-11T17:22:44Z")

</div>

yea

it worked I just need armor

---

<div class="post-metadata">

**Author:** ![paper](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/paper/32/43538_2.png) [@paper](https://discourse.codecombat.com/u/paper)\
**Post date:** [October 11, 2024, 5:38pm UTC](https://discourse.codecombat.com/t/level-help-clash-of-clones-python/39128/16 "2024-10-11T17:38:00Z")

</div>

nevermind its not working no matter what I do

---

<div class="post-metadata">

**Author:** ![paper](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/paper/32/43538_2.png) [@paper](https://discourse.codecombat.com/u/paper)\
**Post date:** [October 11, 2024, 5:38pm UTC](https://discourse.codecombat.com/t/level-help-clash-of-clones-python/39128/17 "2024-10-11T17:38:35Z")

</div>

the archers are still shooting through the blocking so that’s off the table

---

<div class="post-metadata">

**Author:** ![fastfisch](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/fastfisch/32/42441_2.png) [@fastfisch](https://discourse.codecombat.com/u/fastfisch)\
**Post date:** [October 11, 2024, 5:39pm UTC](https://discourse.codecombat.com/t/level-help-clash-of-clones-python/39128/18 "2024-10-11T17:39:41Z")

</div>

Try electrocuting the archers with the steel ring.

---

<div class="post-metadata">

**Author:** ![paper](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/paper/32/43538_2.png) [@paper](https://discourse.codecombat.com/u/paper)\
**Post date:** [October 11, 2024, 5:40pm UTC](https://discourse.codecombat.com/t/level-help-clash-of-clones-python/39128/19 "2024-10-11T17:40:31Z")

</div>

alright I’ll try that I’ve been using electrocute for the nearest enemy I’ll switch it to archers

---

<div class="post-metadata">

**Author:** ![paper](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/paper/32/43538_2.png) [@paper](https://discourse.codecombat.com/u/paper)\
**Post date:** [October 11, 2024, 6:03pm UTC](https://discourse.codecombat.com/t/level-help-clash-of-clones-python/39128/20 "2024-10-11T18:03:31Z")

</div>

I still cant figure it out  
auhgghhhhh

[Next page](https://discourse.codecombat.com/t/level-help-clash-of-clones-python/39128.md?page=2)
