[SOLVED] Help with golden mirage please

it still does the same thing. here’s the code:

while True:
    coins = hero.findItems()
    i = 0
    while i < len(coins):
        coinA = coins[i]
        j = 0
        k = 0
        while j < len(coins):
            coinB = coins[j]
            if (coinA.value == coinB.value) and (i != j):
                break
            j += 1
        if k == 0:
            hero.move(coinA.pos)
        i += 1

Before this put

k = 1

Now it should work fine.

it works @AnSeDra! thanks a lot! :grin: :grin:

1 Like

No problem! Glad I could help you! And congratulations for completing the level! :partying_face:

hello(20 characters)

1 Like

hi @Monsty. (20 chars)

1 Like