# I got stuck in duling grounds

**URL:** <https://discourse.codecombat.com/t/i-got-stuck-in-duling-grounds/8886>\
**Category:** Uncategorized\
**Created:** [September 7, 2016, 2:21am UTC](https://discourse.codecombat.com/t/i-got-stuck-in-duling-grounds/8886 "2016-09-07T02:21:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zisu0426](https://avatars.discourse-cdn.com/v4/letter/z/da6949/32.png) [@zisu0426](https://discourse.codecombat.com/u/zisu0426)\
**Post date:** [September 7, 2016, 2:21am UTC](https://discourse.codecombat.com/t/i-got-stuck-in-duling-grounds/8886/1 "2016-09-07T02:21:32Z")

</div>

my code is sample,

loop:  
# Find and attack the enemy inside a loop.  
# When you’re done, submit to the multiplayer ladder!  
enemy = hero.findNearestEnemy()  
hero.attack(enemy)

---

<div class="post-metadata">

**Author:** ![Harry\_the\_Wanderer](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/harry_the_wanderer/32/5369_2.png) [@Harry\_the\_Wanderer](https://discourse.codecombat.com/u/Harry_the_Wanderer)\
**Post date:** [September 10, 2016, 11:39pm UTC](https://discourse.codecombat.com/t/i-got-stuck-in-duling-grounds/8886/2 "2016-09-10T23:39:57Z")

</div>

@zisu0426 please use the **formatted text** button to format the code so we can see the tabs and indents

![](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex016/uploads/codecombat/original/2X/8/891124a83ea56db050338da353b66abf5e1da8a1.png)

```python
loop:
# Find and attack the enemy inside a loop.
# When you're done, submit to the multiplayer ladder!
enemy = hero.findNearestEnemy()
hero.attack(enemy)

```

is different from

```python
loop:
    # Find and attack the enemy inside a loop.
    # When you're done, submit to the multiplayer ladder!
    enemy = hero.findNearestEnemy()
    hero.attack(enemy)

```

Also see this [guide](https://discourse.codecombat.com/t/guide-for-playing-multiplayer-ladders-or-how-to-gem-farm-read-if-you-need-multiplayer-help/8848) if you would to know more about multiplayer.
