I don’t get it. Tharin goes but he doesn’t collect coins fast enough. Here is my code.
To grab the most gold quickly, just go after gold coins.
coins = self.findItems()
coinIndex = 0
# Wrap this into a loop that iterates over all coins. coin = coins[coinIndex] # Gold coins are worth 3. if coin.value == 3: # Only pick up gold coins. self.move(coin.pos) coins = self.findItems() coinIndex = 0 else: coinIndex = coinIndex + 1