[SOLVED] Mad Maxer.... Why are there so many? (Sells Out (Help))

Try to close google and then try again the level.

Andrei

2 Likes

Okay I’ll try.(20 chars)

1 Like

you have to comment out your code. it’s fine because you have a copy here

Thanks, it worked. I’m in now

1 Like

now can you show us your code please?

1 Like

I reset everything, remember?

// Coins here disappear after a few seconds!
// Get all the gold coins before they vanish.

while(true) {
    var closestGold = null;
    var minGoldDist = Infinity;
    var coinIndex = 0;
    var coins = hero.findItems();
    // Find the closest coin that is gold.
    // Remember that gold coins have a value of 3.
    
    if(closestGold) {
        // Now go to the closest gold coin and get it!
        
    }
}
2 Likes

Copy this code

With the changes that @ActualllOLLIEpop and myself told you to do.

2 Likes

Wait I’m changing the code to all the things you just said

2 Likes

Do not do that. You will learn the for loops later, now use the while loop.

Andrei

2 Likes

okay. i have deleted it.

1 Like

ok. Whats a for loop?

2 Likes

it’s in cloud rip mountain don’t do it yet

1 Like

just continue with what you have in your bag (metaphor)

1 Like

okay I’ll learn it l8r

2 Likes

can you just show us your code, @athian? and please don’t bother with the for loop just yet

1 Like

what is “pass;”?

2 Likes

You can delete that.

Andrei

2 Likes

That is the placeholder in Phyton ( and maybe in Java Script too ).

Andrei

2 Likes

doesn’t seem like it’s one in java

1 Like

can you show us your code please @Monsty?

1 Like