# Clash of clones i cant defeat it \[SOLVED\]

**URL:** <https://discourse.codecombat.com/t/clash-of-clones-i-cant-defeat-it-solved/16336>\
**Category:** Solved\
**Created:** [November 1, 2018, 5:48am UTC](https://discourse.codecombat.com/t/clash-of-clones-i-cant-defeat-it-solved/16336 "2018-11-01T05:48:07Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![FrostedGamingX](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/frostedgamingx/32/9264_2.png) [@FrostedGamingX](https://discourse.codecombat.com/u/FrostedGamingX)\
**Post date:** [November 1, 2018, 5:48am UTC](https://discourse.codecombat.com/t/clash-of-clones-i-cant-defeat-it-solved/16336/1 "2018-11-01T05:48:07Z")

</div>

hello evryone can someone pls give me tips how to beat clash of clones  
this is code i use i use this code in sige of stonehold too

```python
while True:
    flag = hero.findFlag()
    enemy = hero.findNearestEnemy()
    
    if flag:
        # Pick up the flag.
        hero.pickUpFlag(flag)
    elif enemy:
        # Only attack if the enemy distance is < 10 meters
        if hero.distanceTo(enemy) < 10:
            hero.attack(enemy)

```

---

<div class="post-metadata">

**Author:** ![Chaboi\_3000](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/chaboi_3000/32/48486_2.png) [@Chaboi\_3000](https://discourse.codecombat.com/u/Chaboi_3000)\
**Post date:** [November 1, 2018, 7:53am UTC](https://discourse.codecombat.com/t/clash-of-clones-i-cant-defeat-it-solved/16336/2 "2018-11-01T07:53:29Z")

</div>

There’s no real answer to this. Even though there’s one goal, which is finishing the level, there’s many possible paths to get there. Try reading the other topics because they have really good tips.

---

<div class="post-metadata">

**Author:** ![FrostedGamingX](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/frostedgamingx/32/9264_2.png) [@FrostedGamingX](https://discourse.codecombat.com/u/FrostedGamingX)\
**Post date:** [November 2, 2018, 3:14am UTC](https://discourse.codecombat.com/t/clash-of-clones-i-cant-defeat-it-solved/16336/3 "2018-11-02T03:14:16Z")

</div>

i have 3 questions tho  
1: is my code right  
2: do i have to buy some gears  
3: are u daBeast45?

---

<div class="post-metadata">

**Author:** ![Chaboi\_3000](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/chaboi_3000/32/48486_2.png) [@Chaboi\_3000](https://discourse.codecombat.com/u/Chaboi_3000)\
**Post date:** [November 2, 2018, 4:37am UTC](https://discourse.codecombat.com/t/clash-of-clones-i-cant-defeat-it-solved/16336/4 "2018-11-02T04:37:22Z")

</div>

There’s no correct answer to clash of clones, you’ll maybe want to add a bit more to it. You want to use cleave or chainlightning because the enemy can’t do any of that.  
I think you can beat this level without super good gear. Many people beat this with only the long sword and some decent gear.  
Yes, I am DaBeaat\_45, why?

---

<div class="post-metadata">

**Author:** ![FrostedGamingX](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/frostedgamingx/32/9264_2.png) [@FrostedGamingX](https://discourse.codecombat.com/u/FrostedGamingX)\
**Post date:** [November 2, 2018, 5:02am UTC](https://discourse.codecombat.com/t/clash-of-clones-i-cant-defeat-it-solved/16336/5 "2018-11-02T05:02:07Z")

</div>

OMG  
da beast im a huge fan thx i already finished it tho i attacked the archer first cuz they deal like lots of dmg  
i cant belive im meeting u XD

---

<div class="post-metadata">

**Author:** ![Chaboi\_3000](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/chaboi_3000/32/48486_2.png) [@Chaboi\_3000](https://discourse.codecombat.com/u/Chaboi_3000)\
**Post date:** [November 2, 2018, 5:10am UTC](https://discourse.codecombat.com/t/clash-of-clones-i-cant-defeat-it-solved/16336/6 "2018-11-02T05:10:38Z")

</div>

Thanks man, great job in completing the level. 😉

---

<div class="post-metadata">

**Author:** ![FrostedGamingX](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/frostedgamingx/32/9264_2.png) [@FrostedGamingX](https://discourse.codecombat.com/u/FrostedGamingX)\
**Post date:** [November 2, 2018, 5:13am UTC](https://discourse.codecombat.com/t/clash-of-clones-i-cant-defeat-it-solved/16336/7 "2018-11-02T05:13:48Z")

</div>

thx  
😀😀😀

---

<div class="post-metadata">

**Author:** ![jamescomer1212](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/jamescomer1212/32/9114_2.png) [@jamescomer1212](https://discourse.codecombat.com/u/jamescomer1212)\
**Post date:** [November 2, 2018, 2:40pm UTC](https://discourse.codecombat.com/t/clash-of-clones-i-cant-defeat-it-solved/16336/8 "2018-11-02T14:40:35Z")

</div>

Hey guys, anyone who might be stuck on this level, just remember - your clone has the same equipment that you have. If you have good armor, the clone will, so use mediocre armor. The clone will NOT be able to use powers (such as magic from equipment or if you are a mage. They also will not be able to bash).

---

<div class="post-metadata">

**Author:** ![Deadpool198](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/deadpool198/32/16753_2.png) [@Deadpool198](https://discourse.codecombat.com/u/Deadpool198)\
**Post date:** [November 2, 2018, 3:59pm UTC](https://discourse.codecombat.com/t/clash-of-clones-i-cant-defeat-it-solved/16336/9 "2018-11-02T15:59:07Z")

</div>

> [@jamescomer1212](#):
>
> If you have good armor, the clone will, so use mediocre armor.

I think your point is good, but if you have mediocre armor, aren’t you just as susceptible to the clone as he is to you?  
🦁

---

<div class="post-metadata">

**Author:** ![jamescomer1212](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/jamescomer1212/32/9114_2.png) [@jamescomer1212](https://discourse.codecombat.com/u/jamescomer1212)\
**Post date:** [November 2, 2018, 8:12pm UTC](https://discourse.codecombat.com/t/clash-of-clones-i-cant-defeat-it-solved/16336/10 "2018-11-02T20:12:31Z")

</div>

If you use an if-statement with “if hero.health \< hero.health/2:” then you can create retreat code. Or you could program the archers to take out the more powerful enemies near you… Either way, if you use your worst sword and not-great armour then you can beat the level.

---

<div class="post-metadata">

**Author:** ![jamescomer1212](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/jamescomer1212/32/9114_2.png) [@jamescomer1212](https://discourse.codecombat.com/u/jamescomer1212)\
**Post date:** [November 2, 2018, 8:17pm UTC](https://discourse.codecombat.com/t/clash-of-clones-i-cant-defeat-it-solved/16336/11 "2018-11-02T20:17:28Z")

</div>

Also, use `hero.bash(enemy)` to deal damage (and if possible, buy the Steel Striker shield - lots of bash damage and shielding) instead of using your sword. And if possible, you should buy the Steel Ring (I think that’s its name) so that you can deal magic damage if you aren’t a mage. The clone can’t use abilities, so bash and magic (if you have a Knight class hero) aren’t usable by the clone.

---

<div class="post-metadata">

**Author:** ![FrostedGamingX](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/frostedgamingx/32/9264_2.png) [@FrostedGamingX](https://discourse.codecombat.com/u/FrostedGamingX)\
**Post date:** [November 6, 2018, 3:07am UTC](https://discourse.codecombat.com/t/clash-of-clones-i-cant-defeat-it-solved/16336/13 "2018-11-06T03:07:00Z")

</div>

thx for the tip i already finished it i take down the archer first cuz they like deal massive damage

---

<div class="post-metadata">

**Author:** ![CodeKnight77](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/codeknight77/32/9529_2.png) [@CodeKnight77](https://discourse.codecombat.com/u/CodeKnight77)\
**Post date:** [January 4, 2019, 11:53pm UTC](https://discourse.codecombat.com/t/clash-of-clones-i-cant-defeat-it-solved/16336/14 "2019-01-04T23:53:10Z")

</div>

How do you take down the archers?  
My archers don’t listen to me!

---

<div class="post-metadata">

**Author:** ![CodeKnight77](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/codeknight77/32/9529_2.png) [@CodeKnight77](https://discourse.codecombat.com/u/CodeKnight77)\
**Post date:** [January 4, 2019, 11:54pm UTC](https://discourse.codecombat.com/t/clash-of-clones-i-cant-defeat-it-solved/16336/15 "2019-01-04T23:54:19Z")

</div>

```python
while True:
    enemy = hero.findNearestEnemy()
    if enemy:
        hero.attack(enemy)
        if hero.isReady("cleave"):
            hero.cleave(enemy)
        else:
            hero.attack(enemy)

```

If anyone asks this is my code.

---

<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:** [January 5, 2019, 12:51am UTC](https://discourse.codecombat.com/t/clash-of-clones-i-cant-defeat-it-solved/16336/16 "2019-01-05T00:51:00Z")

</div>

What do you mean by

> [@CodeKnight77](#):
>
> My archers don’t listen to me!

?  
Your code won’t command your archers.

---

<div class="post-metadata">

**Author:** ![CodeKnight77](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/codeknight77/32/9529_2.png) [@CodeKnight77](https://discourse.codecombat.com/u/CodeKnight77)\
**Post date:** [January 5, 2019, 9:19pm UTC](https://discourse.codecombat.com/t/clash-of-clones-i-cant-defeat-it-solved/16336/17 "2019-01-05T21:19:16Z")

</div>

Sorry. Wrong sentence 😄

---

<div class="post-metadata">

**Author:** ![CodeKnight77](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/codeknight77/32/9529_2.png) [@CodeKnight77](https://discourse.codecombat.com/u/CodeKnight77)\
**Post date:** [January 5, 2019, 9:19pm UTC](https://discourse.codecombat.com/t/clash-of-clones-i-cant-defeat-it-solved/16336/18 "2019-01-05T21:19:55Z")

</div>

Would be good if you could kill Thoktar!!!

---

<div class="post-metadata">

**Author:** ![pblum12330](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/pblum12330/32/11600_2.png) [@pblum12330](https://discourse.codecombat.com/u/pblum12330)\
**Post date:** [March 22, 2020, 8:25am UTC](https://discourse.codecombat.com/t/clash-of-clones-i-cant-defeat-it-solved/16336/19 "2020-03-22T08:25:36Z")

</div>

@Deadpool198  
That REALLY helped me! Thank you. Backstab FTW!

---

<div class="post-metadata">

**Author:** ![tv337](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/tv337/32/12147_2.png) [@tv337](https://discourse.codecombat.com/u/tv337)\
**Post date:** [May 7, 2020, 9:40pm UTC](https://discourse.codecombat.com/t/clash-of-clones-i-cant-defeat-it-solved/16336/20 "2020-05-07T21:40:13Z")

</div>

steel ring slows but does not damage

---

<div class="post-metadata">

**Author:** ![duck.exe](https://avatars.discourse-cdn.com/v4/letter/d/87869e/32.png) [@duck.exe](https://discourse.codecombat.com/u/duck.exe)\
**Post date:** [May 21, 2020, 10:38pm UTC](https://discourse.codecombat.com/t/clash-of-clones-i-cant-defeat-it-solved/16336/21 "2020-05-21T22:38:59Z")

</div>

is there a way to not use a weapon for this level? that would be useful against the clone

[Next page](https://discourse.codecombat.com/t/clash-of-clones-i-cant-defeat-it-solved/16336.md?page=2)
