[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.
        #hero.move(pender.pos)
        hero.move(pender.pos)

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

2 Likes

Hi @MrEric20, please read the comments carefully.
Lydia

2 Likes

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?
Lydia
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!
Lydia

1 Like

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