Cloudrip, sarven, kithgaurd, forest brawl part 4

hey, im stuck on level 4 and threes of brawls, any tips. I’ll post my code and gear if needed. Mainly focusing on cloudrip and backwoods though.

@Ashmit_Singh if you need help you should ALWAYS post your code maybe stuff and maybe a link as well.

one sec

# Stay alive for two minutes.
# If you win, it gets harder (and more rewarding).
# If you lose, you must wait a day before you can resubmit.
# Remember, each submission gets a new random seed.


while True:
    enemy = hero.findNearestEnemy()
    friends = hero.findFriends()
    friend = hero.findNearest(friends)
    if enemy:
        if enemy.type != "sand-yak" and enemy.health > 0:
            if hero.canCast("chain-lightning", enemy):
                hero.cast("chain-lightning", enemy)
            elif hero.isReady("bash"):
                hero.bash(enemy)
            else:
                hero.shield()
                hero.attack(enemy)
        if hero.health < 700:
            # Health is low–retreat!
            hero.moveXY(61, 46)
    if hero.gold >= hero.costOf('archer'):
        hero.summon("archer")
    if friend:
        hero.command(friend, "defend", hero.pos)

i use the same code for all brawls. also, i might get the caltrops belt or the precious, as i am only 160 gems away, however, this is my gear for now
Screen Shot 2021-03-05 at 11.22.46 PM
@098765432123

i will delete my code soon, it works for the first few stages

Ok may I please have a link? ( I don’t do the brawls though…)

CodeCombat - Coding games to learn Python and JavaScript?

You gotta do the brawls, @098765432123. They give great gems and xp.

1 Like

Well you see @CocoCharlie I don’t do CoCo anymore so brawls I can’t do (Or sub levels)

brawls aint sub levels.

You don’t do coco! :sob:

wait what?? 20 chars be like WHAT

No I don’t but I have mentioned it before and I didn’t do any of the brawls.