To grab the most gold quickly, just go after gold coins.
while True:
coins = hero.findItems()
coinIndex = 0
# Wrap this into a loop that iterates over all coins.
while coinIndex < len(coins):
coin = coins[coinIndex]
# Gold coins are worth 3.
if coin.value == 3:
# Only pick up gold coins
hero.moveXY(coin.pos.x, coin.pos.y)
coinIndex +=1
pass
Hello and welcome to codecombat discourse! This is a cozy forum where you can share ideas, share fan art, get assistance for code, etc! Before you proceed, we hope that you review this topic, which shows all essentials of this board! Thanks!
@milton.jinich you need a fast hero like pender or zana to do the job… Really???
This is a non subscriber level and almost for all levels all you need is a free hero with a modest armor The solution bellow is not the best but it works