Hi there, I am having some trouble with the Hoarding Gold challenge on the desert level. I am not sure what I am missing in my code. Every time when I run the program, it goes to pick up the very first coin then stops the program on the line “self.moveXY(x, y)”. What am I missing?
# Collect 25 gold, and then tell Naria the total.
# Use break to stop collecting when totalGold >= 25.
totalGold = 0
loop:
[...]
self.moveXY(x, y)
[...]
self.say(totalGold)
[...]
[...]