Thunderhooves level python

help on thunder hooves i’ve tried all codes for python :confused: :confused: :confused: :confused: :confused: :confused: :confused: :confused: :confused: :confused: :confused:

Wow, you tried β€œall codes for python” . . . Well, then I guess you need to try another language since there is nothing left to do for python… :wink:

On a more serious note. you have a better chance of getting help if you give some code that you think should work, and tell us what is going wrong (error message, what hero is/isn’t doing that you feel they shouldn’t/should be doing, …) The more you help us the easier and more likely we can help you.
(please read the FAQ before posting your code so you will know how to get it to format correctly.)

Remember that you will not get an answer right away

I see your post is four hours ago four hours ago I would still be in school

And codecombat is not on the list of things you can do in computer lab :cry:

We cannot get to you the second you need help and if we are online there are other people that need help to so please be patient and someone on the forums will get to helping you

try this code:

# Get to the oasis,
# fencing off paths with yaks on them as you go.
loop:
    yak = self.findNearestEnemy()
    if yak:
        # A yak is above you if its y is greater than your y.
        # If the yak is above you, build a fence 10m below it.
        if yak.pos.y > self.pos.y :
            self.buildXY("fence", yak.pos.x, yak.pos.y -10)
        # If the yak is below you, build a fence 10m above it.
        else :
            if yak.pos.y < self.pos.y :
                self.buildXY("fence", yak.pos.x, yak.pos.y +10)
    else:
        # Move right 10m towards the oasis.
        self.moveXY(self.pos.x +10, self.pos.y)

Bugot1 please do not give out code unless after a lot of work on the receptant’s part

he asked for a code :unamused:

He did not. He asked for help.

:scream: ממש Χ©Χ•Χ Χ” ΧžΧΧ“