I’ve been stuck on golden mirage (https://codecombat.com/play/level/golden-mirage?) for a while now but I’m stumped, I could do the levels i the mountain before it fine but I can’t seem to do this one.
Here’s my current code:
while True: coins = hero.findItems() fakeCoins =  realCoins =  for coin in coins: for coin2 in coins: if coin2.value == coin.value: fakeCoins.append(coin) else: continue if not coin in fakeCoins: realCoins.append(coin) nearCoin = hero.findNearest(realCoins) if nearCoin: hero.move(nearCoin.pos)
It doensn’t really make sense but I can’t work out how to go about solving it, could anyone give me some hints about what code I should use to solve this level that would be great, Thanks.