[SOLVED] Level Crag Tag help

Hello, people of Codecombat.

Could anyone help me with Level Crag Tag on computer science 4?

here’s my code:

while True:
    # Pender is the only friend here, so she's always the nearest.
    pender = hero.findNearest(hero.findFriends())

    if pender:
        # moveXY() will move to where Pender is,
        # but she'll have moved away by the time you get there.
        hero.moveXY(pender.pos.x, pender.pos.y)
        # move() only moves one step at a time,
        # so you can use it to track your target.

Hello @MrEric20. Welcome to the Discourse. Have you read the comments? Remove the above line to succeed.


Hi @MrEric20, please read the comments carefully.


edit:way to close to solution

1 Like

I changed it already.
:slightly_smiling_face: :upside_down_face: :laughing: :smile: :smiley: :grin: :grinning:

Did you pass?
20 chars

1 Like

Yes. I did. :upside_down_face: :upside_down_face: :upside_down_face:

Then congrats! Make sure to tick the check mark next to the comment that helped you the most!

1 Like

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.