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

Health point to pass Munchkin Harvest{solved}

any body can tell me what minimum point of health needed to pass this level?
i think my codes is ok!

enemy = hero.findNearestEnemy()
while True:
    if enemy:
        if hero.isReady("cleave"):
            hero.cleave(enemy)
        else:
            hero.attack(enemy)
    # Else, if cle

thank

What is your equipment?

1 Like

IMG_20200521_203242

I think your equipment is good try submitting again because it might be bad seed or needs better code.

1 Like

Try few times still failed. :joy:

my health point is 192.

What world is it in perhaps I can help

in Backwood forest .

Ok I will check if I can help

So what language of code are u using

thank very much :slightly_smiling_face:

Can u tell me what code ur using

So first Put ur code in a while true loop then inside loop define ur enemy and if your hero is ready cleave else attack

Unlike ur code try defining enemy in the while true loop

you need to be clever in this level, i beat it with only 39 hp

enemy = hero.findNearestEnemy()
while True:
    if enemy:
        if hero.isReady("cleave"):
            hero.cleave(enemy)
        else:
            hero.attack(enemy)
    # Else, if cletype or paste code here

enemy = hero.findNearestEnemy #put it inside the while loop

solike this basically

while True:
    target = hero.findNearestEnemy()
    if target:
        if (hero.isReady("cleave")):
            hero.cleave(target)
        else:
            hero.shield()

u can use target or enemy