# Can anyone help me check my code?(desert duel

**URL:** <https://discourse.codecombat.com/t/can-anyone-help-me-check-my-code-desert-duel/35773>\
**Category:** Uncategorized\
**Created:** [June 25, 2023, 11:46am UTC](https://discourse.codecombat.com/t/can-anyone-help-me-check-my-code-desert-duel/35773 "2023-06-25T11:46:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Helper\_Knight](https://avatars.discourse-cdn.com/v4/letter/h/ce73a5/32.png) [@Helper\_Knight](https://discourse.codecombat.com/u/Helper_Knight)\
**Post date:** [June 25, 2023, 11:46am UTC](https://discourse.codecombat.com/t/can-anyone-help-me-check-my-code-desert-duel/35773/1 "2023-06-25T11:46:22Z")

</div>

````python
hero.summon("big", 0)
hero.play("hot", 0)
hero.play("goliath", 0)

hero.play("boost", 0)

et11 = hero.findPlayers(1)
et00 = hero.findPlayers(0)
et22 = hero.findPlayers(2)

et1 = hero.findTheirPlayers(1)
et0 = hero.findTheirPlayers(0)
et2 = hero.findTheirPlayers(2)

def quicksand():
    et1 = hero.findTheirPlayers(1)
    et0 = hero.findTheirPlayers(0)
    et2 = hero.findTheirPlayers(2)
    if hero.isReady("quicksand"):
        if len(et11) >= 2: 
            hero.play("quicksand", 1) 
            if hero.isReady("press"): 
                hero.play("press", 2)
        elif len(et22) >= 2:
            hero.play("quicksand", 2) 
            if hero.isReady("press"): 
                hero.play("press", 1)
        elif len(et00) >= 2:
            hero.play("quicksand", 0)

while True:
    quicksand()
    if et0:
        hero.summon("big", 0) 
        hero.summon("threat", 0)  
        hero.summon("driver", 0)
        hero.play("hot", 0)
        hero.play("goliath", 0)
    if et1:
        hero.summon("big", 1) 
        hero.summon("threat", 1)
        hero.summon("driver", 1)
        hero.play("hot", 1)
        hero.play("goliath", 1)
    if et2:
        hero.summon("big", 2)
        hero.summon("threat", 2) 
        hero.summon("driver", 2)
        hero.play("hot", 2)
        hero.play("goliath", 2)
    if et0 and hero.isReady("hot") and hero.isReady("goliath"):
        hero.summon("big", 0) 
        hero.play("hot", 0)
        hero.play("goliath", 0)
        hero.play("switch", 0)
    if et1 and hero.isReady("hot") and hero.isReady("goliath"):
        hero.summon("big", 1) 
        hero.play("hot", 1)
        hero.play("goliath", 1)
    if et2 and hero.isReady("hot") and hero.isReady("goliath"):
        hero.summon("big", 2) 
        hero.play("hot", 2)
        hero.play("goliath", 2)
        hero.play("switch", 0)
    quicksand()

```can anyone help me ?
````
