[SOLVED] Help! Steelclaw Gap

def summonTroops():
    type = summonTypes[len(hero.built) % len(summonTypes)]
    if hero.gold >= hero.costOf(type):
        hero.summon(type)

def commandTroops():
    friends = hero.findFriends()
    for i in range(len(friends)):
        friend = friends[i]
        # Use % to wrap around defendPoints based on friendIndex
        if friend:
            
            defendPoint = len(friends) % ]defendPoints[len(defendPoints)
            # Command your minion to defend the defendPoint
            hero.command(friend, "defend", defendPoint)

while True:
    summonTroops()
    commandTroops()

This is my code, but I don’t understand what I’m supposed to do for line 12/13.

1 Like

Can you show me what are the lines 12/13?

Andrei

1 Like

@AnSeDra
Sorry for being unclear.
Lydia

1 Like

Have you done what that comment tells you to do?

Andrei

1 Like

I don’t quite understand what the comment is telling me to do.

1 Like

Have you read the other topics on this level?

1 Like

No, I will read them as soon as I get the chance.

2 Likes

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.