I’ve looked at this question and I have a firm grasp of python. It looks like my hero is killing peons and continuously picking up coins but time runs out apparently with the ‘RAN OUT OF TIME’ message. Am I missing something?
def pickUpCoin(): coin = hero.findNearestItem() if coin: hero.moveXY(coin.pos.x, coin.pos.y) # Write the attackEnemy function below. # Find the nearest enemy and attack them if they exist! def attackEnemy(): nearest = hero.findNearestEnemy() if nearest: hero.attack(nearest) while True: attackEnemy() # ∆ Uncomment this line after you write an attackEnemy function. pickUpCoin()