Play Home Contribute Github Join Us! Discourse Staff Members Github Contribution Guides Team

Clash of Clones Help!

#70

Your code should be something like

while (true){
    var flag=hero.findFlag()
    var enemy=hero.findNearestEnemy()
    if flag{
       hero.pickUp(flag)
    }
    else if enemy{
        //Attack code
    }
}
   
1 Like
#71

Chaboi, thanks a ton here, I didn’t put the flag code in the while loop. I’ll try now with flags, as I understand yaks play a big role here.

#72

Key is to cast invis and go behind enemy archers and kill all of them

#73

Yeah it depends, if you have both chain lightning and invis, you can invis back and chain lightning the archers. :man_shrugging:

#74

Hei Chaboi, thanks so much, I passed. Actually, the flags and yaks were helpful.

#75

i am also stuck on this level but when i tried to un-equip my sword, it wouldn’t let me play. is there another way to win?

#76

if i un-equip my sword, it won’t let me play.

#77

Use boosts that your opponent doesn’t have, such as bash or chain-lightning.

#78

if i do that, he can still use the sword. also, i don’t have chain lightning.

#79

But bash comes from your shield, so you can use bash with a shield (there are some cheap bash shields) and attack with your sword.
I would also recommend quickly attacking the archers at the start.
:lion: :lion: :lion:

#80

i tried that but the enemy just attacked them with a sword

#81

It’s because the enemy can use attack().

#82

so how do i stop them from attacking?

#83

You can’t. (20 characters)

#84

then can i prevent the clone of me from attacking?

#85

I think I clearly stated that you can’t stop the clone from attacking.

#86

i can’t un-equip my sword or it won’t let me play. how do un-equip the sword and still be able to play?

#87

You can’t. It was patched long ago.

#88

Equip a build hammer instead.

#89

i can’t. that is restricted