# \[SOLVED\] Help! Steelclaw Gap

**URL:** <https://discourse.codecombat.com/t/solved-help-steelclaw-gap/23437>\
**Category:** Level Help\
**Created:** [August 9, 2020, 5:46pm UTC](https://discourse.codecombat.com/t/solved-help-steelclaw-gap/23437 "2020-08-09T17:46:41Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lydia\_Song](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/lydia_song/32/31461_2.png) [@Lydia\_Song](https://discourse.codecombat.com/u/Lydia_Song)\
**Post date:** [August 9, 2020, 5:46pm UTC](https://discourse.codecombat.com/t/solved-help-steelclaw-gap/23437/1 "2020-08-09T17:46:41Z")

</div>

```python
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.

---

<div class="post-metadata">

**Author:** ![AnSeDra](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/ansedra/32/13123_2.png) [@AnSeDra](https://discourse.codecombat.com/u/AnSeDra)\
**Post date:** [August 9, 2020, 5:47pm UTC](https://discourse.codecombat.com/t/solved-help-steelclaw-gap/23437/2 "2020-08-09T17:47:28Z")

</div>

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

Andrei

---

<div class="post-metadata">

**Author:** ![Lydia\_Song](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/lydia_song/32/31461_2.png) [@Lydia\_Song](https://discourse.codecombat.com/u/Lydia_Song)\
**Post date:** [August 9, 2020, 5:48pm UTC](https://discourse.codecombat.com/t/solved-help-steelclaw-gap/23437/3 "2020-08-09T17:48:10Z")

</div>

> [@Lydia\_Song](#):
>
> `defendPoint = len(friends) % ]defendPoints[len(defendPoints)`

@AnSeDra  
Sorry for being unclear.  
Lydia

---

<div class="post-metadata">

**Author:** ![AnSeDra](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/ansedra/32/13123_2.png) [@AnSeDra](https://discourse.codecombat.com/u/AnSeDra)\
**Post date:** [August 9, 2020, 5:54pm UTC](https://discourse.codecombat.com/t/solved-help-steelclaw-gap/23437/4 "2020-08-09T17:54:29Z")

</div>

> [@Lydia\_Song](#):
>
> `# Use % to wrap around defendPoints based on friendIndex`

Have you done what that comment tells you to do?

Andrei

---

<div class="post-metadata">

**Author:** ![Lydia\_Song](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/lydia_song/32/31461_2.png) [@Lydia\_Song](https://discourse.codecombat.com/u/Lydia_Song)\
**Post date:** [August 9, 2020, 5:55pm UTC](https://discourse.codecombat.com/t/solved-help-steelclaw-gap/23437/5 "2020-08-09T17:55:32Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![MidnightWolf39](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/midnightwolf39/32/13309_2.png) [@MidnightWolf39](https://discourse.codecombat.com/u/MidnightWolf39)\
**Post date:** [August 9, 2020, 8:50pm UTC](https://discourse.codecombat.com/t/solved-help-steelclaw-gap/23437/6 "2020-08-09T20:50:37Z")

</div>

Have you read the other topics on this level?

---

<div class="post-metadata">

**Author:** ![Lydia\_Song](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/lydia_song/32/31461_2.png) [@Lydia\_Song](https://discourse.codecombat.com/u/Lydia_Song)\
**Post date:** [August 10, 2020, 6:08am UTC](https://discourse.codecombat.com/t/solved-help-steelclaw-gap/23437/7 "2020-08-10T06:08:28Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/codecombat/original/2X/a/a9445509d1a758c41b5ddcddc8c8e20a5dedb67f.png) [@system](https://discourse.codecombat.com/u/system)\
**Post date:** [September 9, 2020, 9:39pm UTC](https://discourse.codecombat.com/t/solved-help-steelclaw-gap/23437/8 "2020-09-09T21:39:56Z")

</div>

Closed on September 9, 2020, 9:39pm UTC

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