# Quicksand in desert duel

**URL:** https://discourse.codecombat.com/t/quicksand-in-desert-duel/32869
**Category:** Uncategorized
**Created:** [May 2, 2022, 11:34am UTC](https://discourse.codecombat.com/t/quicksand-in-desert-duel/32869 "2022-05-02T11:34:52Z")
**Posts on this page:** 17
**Page:** 1

<div class="post-metadata">

### Author: ![Chadder](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/chadder/32/27850_2.png) [@Chadder](https://discourse.codecombat.com/u/Chadder)
#### Post date: [May 2, 2022, 11:34am UTC](https://discourse.codecombat.com/t/quicksand-in-desert-duel/32869/1 "2022-05-02T11:34:52Z")

</div>

if I use a quicksand on a path does it block it for me and my opponent or just my opponent.

---

<div class="post-metadata">

### Author: ![Chadder](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/chadder/32/27850_2.png) [@Chadder](https://discourse.codecombat.com/u/Chadder)
#### Post date: [May 2, 2022, 11:35am UTC](https://discourse.codecombat.com/t/quicksand-in-desert-duel/32869/2 "2022-05-02T11:35:44Z")

</div>

@Bryukh can you help because im pretty sure most people dont even know this exists yet.

---

<div class="post-metadata">

### Author: ![qwerty](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/qwerty/32/30493_2.png) [@qwerty](https://discourse.codecombat.com/u/qwerty)
#### Post date: [May 2, 2022, 11:44am UTC](https://discourse.codecombat.com/t/quicksand-in-desert-duel/32869/3 "2022-05-02T11:44:17Z")

</div>

It’s all players in the lane; including yours.

---

<div class="post-metadata">

### Author: ![Chadder](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/chadder/32/27850_2.png) [@Chadder](https://discourse.codecombat.com/u/Chadder)
#### Post date: [May 2, 2022, 12:25pm UTC](https://discourse.codecombat.com/t/quicksand-in-desert-duel/32869/4 "2022-05-02T12:25:57Z")

</div>

Also what are all the specials i know quicksand and boost are there others

---

<div class="post-metadata">

### Author: ![Bryukh](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/bryukh/32/19597_2.png) [@Bryukh](https://discourse.codecombat.com/u/Bryukh)
#### Post date: [May 2, 2022, 1:00pm UTC](https://discourse.codecombat.com/t/quicksand-in-desert-duel/32869/5 "2022-05-02T13:00:27Z")

</div>

Im working on documentation, it will be soon. Sorry, it was really hectic month.

---

<div class="post-metadata">

### Author: ![Chadder](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/chadder/32/27850_2.png) [@Chadder](https://discourse.codecombat.com/u/Chadder)
#### Post date: [May 2, 2022, 4:14pm UTC](https://discourse.codecombat.com/t/quicksand-in-desert-duel/32869/6 "2022-05-02T16:14:28Z")

</div>

can someone help me with this

```python
    targetLane = 2
    theirPlayers = hero.findTheirPlayers(2)
    **if theirPlayers >= 3 and hero.isReady("quicksand")**
    hero.play("quicksand", targetLane)

```

It says there’s an error on the bolded line

---

<div class="post-metadata">

### Author: ![moonwatcher348](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/moonwatcher348/32/24126_2.png) [@moonwatcher348](https://discourse.codecombat.com/u/moonwatcher348)
#### Post date: [May 2, 2022, 4:31pm UTC](https://discourse.codecombat.com/t/quicksand-in-desert-duel/32869/7 "2022-05-02T16:31:30Z")

</div>

You need to indent anything in the `if` and add a colon (`:`) to the end

---

<div class="post-metadata">

### Author: ![Chadder](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/chadder/32/27850_2.png) [@Chadder](https://discourse.codecombat.com/u/Chadder)
#### Post date: [May 2, 2022, 6:02pm UTC](https://discourse.codecombat.com/t/quicksand-in-desert-duel/32869/8 "2022-05-02T18:02:32Z")

</div>

like

```python
    targetLane = 2
    theirPlayers = hero.findTheirPlayers(2)
         if theirPlayers >= 3 and hero.isReady("quicksand");
    hero.play("quicksand", targetLane)

```

---

<div class="post-metadata">

### Author: ![Chadder](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/chadder/32/27850_2.png) [@Chadder](https://discourse.codecombat.com/u/Chadder)
#### Post date: [May 2, 2022, 6:02pm UTC](https://discourse.codecombat.com/t/quicksand-in-desert-duel/32869/9 "2022-05-02T18:02:52Z")

</div>

cause for me it says that its still wrong.

---

<div class="post-metadata">

### Author: ![qwerty](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/qwerty/32/30493_2.png) [@qwerty](https://discourse.codecombat.com/u/qwerty)
#### Post date: [May 2, 2022, 7:23pm UTC](https://discourse.codecombat.com/t/quicksand-in-desert-duel/32869/10 "2022-05-02T19:23:37Z")

</div>

> [@Chadder](#):
>
> `;`

This is a semicolon change it to `---> : <---`

---

<div class="post-metadata">

### Author: ![Chadder](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/chadder/32/27850_2.png) [@Chadder](https://discourse.codecombat.com/u/Chadder)
#### Post date: [May 2, 2022, 7:42pm UTC](https://discourse.codecombat.com/t/quicksand-in-desert-duel/32869/11 "2022-05-02T19:42:24Z")

</div>

also how do you like reset your code because its telling me that its an infinite loop but I cant get in to it in any way to edit it.

---

<div class="post-metadata">

### Author: ![moonwatcher348](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/moonwatcher348/32/24126_2.png) [@moonwatcher348](https://discourse.codecombat.com/u/moonwatcher348)
#### Post date: [May 2, 2022, 8:43pm UTC](https://discourse.codecombat.com/t/quicksand-in-desert-duel/32869/12 "2022-05-02T20:43:48Z")

</div>

and indent everything IN the if, not the if statement itself

---

<div class="post-metadata">

### Author: ![Chadder](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/chadder/32/27850_2.png) [@Chadder](https://discourse.codecombat.com/u/Chadder)
#### Post date: [May 3, 2022, 1:28pm UTC](https://discourse.codecombat.com/t/quicksand-in-desert-duel/32869/13 "2022-05-03T13:28:51Z")

</div>

why doesn’t this work

```python
while True:
    hero.summon("big", 0)  
    targetLane = 2
    theirPlayers = hero.findTheirPlayers(2)
    if theirPlayers >= 3:
        hero.summon("big", targetLane)  
        hero.summon("charger", targetLane) 
        hero.play("boost", targetLane)
        hero.summon("driver", targetLane)
        hero.summon("driver", targetLane)   
        hero.summon("threat", targetLane)    
    targetLane = 1
    theirPlayers = hero.findTheirPlayers(1)
    if theirPlayers >= 3 :
        hero.summon("big", targetLane)  
        hero.summon("charger", targetLane) 
        hero.play("boost", targetLane)
        hero.summon("driver", targetLane)
        hero.summon("driver", targetLane)   
        hero.summon("threat", targetLane)  
    hero.summon("charger", 0) 
    targetLane = 2
    theirPlayers = hero.findTheirPlayers(2)
    if theirPlayers >= 3:
        hero.summon("big", targetLane)  
        hero.summon("charger", targetLane) 
        hero.play("boost", targetLane)
        hero.summon("driver", targetLane)
        hero.summon("driver", targetLane)   
        hero.summon("threat", targetLane)    
    targetLane = 1
    theirPlayers = hero.findTheirPlayers(1)
    if theirPlayers >= 3 :
        hero.summon("big", targetLane)  
        hero.summon("charger", targetLane) 
        hero.play("boost", targetLane)
        hero.summon("driver", targetLane)
        hero.summon("driver", targetLane)   
        hero.summon("threat", targetLane)  
    hero.play("boost", 0)
    targetLane = 2
    theirPlayers = hero.findTheirPlayers(2)
    if theirPlayers >= 3:
        hero.summon("big", targetLane)  
        hero.summon("charger", targetLane) 
        hero.play("boost", targetLane)
        hero.summon("driver", targetLane)
        hero.summon("driver", targetLane)   
        hero.summon("threat", targetLane)    
    targetLane = 1
    theirPlayers = hero.findTheirPlayers(1)
    if theirPlayers >= 3 :
        hero.summon("big", targetLane)  
        hero.summon("charger", targetLane) 
        hero.play("boost", targetLane)
        hero.summon("driver", targetLane)
        hero.summon("driver", targetLane)   
        hero.summon("threat", targetLane)  
    hero.summon("driver", 0)
    targetLane = 2
    theirPlayers = hero.findTheirPlayers(2)
    if theirPlayers >= 3:
        hero.summon("big", targetLane)  
        hero.summon("charger", targetLane) 
        hero.play("boost", targetLane)
        hero.summon("driver", targetLane)
        hero.summon("driver", targetLane)   
        hero.summon("threat", targetLane)    
    targetLane = 1
    theirPlayers = hero.findTheirPlayers(1)
    if theirPlayers >= 3 :
        hero.summon("big", targetLane)  
        hero.summon("charger", targetLane) 
        hero.play("boost", targetLane)
        hero.summon("driver", targetLane)
        hero.summon("driver", targetLane)   
        hero.summon("threat", targetLane)  
    hero.summon("driver", 0)   
    targetLane = 2
    theirPlayers = hero.findTheirPlayers(2)
    if theirPlayers >= 3:
        hero.summon("big", targetLane)  
        hero.summon("charger", targetLane) 
        hero.play("boost", targetLane)
        hero.summon("driver", targetLane)
        hero.summon("driver", targetLane)   
        hero.summon("threat", targetLane)    
    targetLane = 1
    theirPlayers = hero.findTheirPlayers(1)
    if theirPlayers >= 3 :
        hero.summon("big", targetLane)  
        hero.summon("charger", targetLane) 
        hero.play("boost", targetLane)
        hero.summon("driver", targetLane)
        hero.summon("driver", targetLane)   
        hero.summon("threat", targetLane)  
    hero.summon("threat", 0)    
    targetLane = 2
    theirPlayers = hero.findTheirPlayers(2)
    if theirPlayers >= 3:
        hero.summon("big", targetLane)  
        hero.summon("charger", targetLane) 
        hero.play("boost", targetLane)
        hero.summon("driver", targetLane)
        hero.summon("driver", targetLane)   
        hero.summon("threat", targetLane)    
    targetLane = 1
    theirPlayers = hero.findTheirPlayers(1)
    if theirPlayers >= 3 :
        hero.summon("big", targetLane)  
        hero.summon("charger", targetLane) 
        hero.play("boost", targetLane)
        hero.summon("driver", targetLane)
        hero.summon("driver", targetLane)   
        hero.summon("threat", targetLane)  
    targetLane = 2
    theirPlayers = hero.findTheirPlayers(2)
    if theirPlayers >= 3:
        hero.summon("big", targetLane)  
        hero.summon("charger", targetLane) 
        hero.play("boost", targetLane)
        hero.summon("driver", targetLane)
        hero.summon("driver", targetLane)   
        hero.summon("threat", targetLane)    
    targetLane = 1
    theirPlayers = hero.findTheirPlayers(1)
    if theirPlayers >= 3 :
        hero.summon("big", targetLane)  
        hero.summon("charger", targetLane) 
        hero.play("boost", targetLane)
        hero.summon("driver", targetLane)
        hero.summon("driver", targetLane)   
        hero.summon("threat", targetLane)    

```

---

<div class="post-metadata">

### Author: ![Aya](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/aya/32/42680_2.png) [@Aya](https://discourse.codecombat.com/u/Aya)
#### Post date: [May 3, 2022, 1:50pm UTC](https://discourse.codecombat.com/t/quicksand-in-desert-duel/32869/14 "2022-05-03T13:50:23Z")

</div>

> [@Chadder](#):
>
> ```python
> theirPlayers = hero.findTheirPlayers(2)
> if theirPlayers >= 3:
> 
> ```

this is a list, so you might want to check the length of the list, not the list itself, hint: len(theirPlayers)

---

<div class="post-metadata">

### Author: ![Chadder](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/chadder/32/27850_2.png) [@Chadder](https://discourse.codecombat.com/u/Chadder)
#### Post date: [May 3, 2022, 1:54pm UTC](https://discourse.codecombat.com/t/quicksand-in-desert-duel/32869/15 "2022-05-03T13:54:27Z")

</div>

so how do I look at the list sorry im bad

---

<div class="post-metadata">

### Author: ![Aya](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/aya/32/42680_2.png) [@Aya](https://discourse.codecombat.com/u/Aya)
#### Post date: [May 3, 2022, 2:18pm UTC](https://discourse.codecombat.com/t/quicksand-in-desert-duel/32869/16 "2022-05-03T14:18:23Z")

</div>

It’s okay, dont say that, we all still have things to learn 😉 😄

so instead of saying `if theirPlayers >= 3` you just make it this way: `if len(theirPlayers) >= 3`

if you want more explanation, i suggest you read the documentation for the method `hero.findTheirPlayers()` in the methods tab, if you still need help after that, then just reply back here 🙂

---

<div class="post-metadata">

### Author: ![Justin\_Zhang](https://avatars.discourse-cdn.com/v4/letter/j/b77776/32.png) [@Justin\_Zhang](https://discourse.codecombat.com/u/Justin_Zhang)
#### Post date: [June 7, 2023, 2:24am UTC](https://discourse.codecombat.com/t/quicksand-in-desert-duel/32869/17 "2023-06-07T02:24:36Z")

</div>

Cab someone write code for me to win a lot?
