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)