# Cloudrip Brawl 4: Python | Ogres Too Strong

**URL:** <https://discourse.codecombat.com/t/cloudrip-brawl-4-python-ogres-too-strong/41201>\
**Category:** Level Help\
**Created:** [January 30, 2026, 7:58pm UTC](https://discourse.codecombat.com/t/cloudrip-brawl-4-python-ogres-too-strong/41201 "2026-01-30T19:58:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![milescombat](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/milescombat/32/34822_2.png) [@milescombat](https://discourse.codecombat.com/u/milescombat)\
**Post date:** [January 30, 2026, 7:58pm UTC](https://discourse.codecombat.com/t/cloudrip-brawl-4-python-ogres-too-strong/41201/1 "2026-01-30T19:58:38Z")

</div>

I think I’ve got the right code, but the ogres just seem to be too much. Is there anything I could do that might help? Here is code:

```python
def command():
    friends = hero.findFriends()
    for friend in friends:
        if friend.type == 'soldier':
            enemy = friend.findNearestEnemy()
            if enemy:
                hero.command(friend, "attack", enemy)
def summon():
    item = hero.findNearestItem()
    if hero.gold > 20:
        hero.summon("soldier")
    elif item:
        hero.move(item.pos)
def attack():
    enemy = hero.findNearestEnemy()
    if enemy and hero.distanceTo(enemy) < 10:
        hero.attack(enemy)
    if enemy and hero.canCast("chain-lightning", enemy):
        hero.cast("chain-lightning", enemy)
while True:
    attack()
    command()
    summon()

```

I’ve also got the strongest armour, sword, glasses, and my hero is Tharin. Thanks

---

<div class="post-metadata">

**Author:** ![k\_k\_javascript](https://avatars.discourse-cdn.com/v4/letter/k/b77776/32.png) [@k\_k\_javascript](https://discourse.codecombat.com/u/k_k_javascript)\
**Post date:** [February 9, 2026, 8:46am UTC](https://discourse.codecombat.com/t/cloudrip-brawl-4-python-ogres-too-strong/41201/2 "2026-02-09T08:46:36Z")

</div>

I think your code or accessory is not enough.  
It might be a good idea to conquer the deeper levels of the cloudrip mountain.

---

<div class="post-metadata">

**Author:** ![pjk](https://avatars.discourse-cdn.com/v4/letter/p/bc79bd/32.png) [@pjk](https://discourse.codecombat.com/u/pjk)\
**Post date:** [February 18, 2026, 1:35am UTC](https://discourse.codecombat.com/t/cloudrip-brawl-4-python-ogres-too-strong/41201/3 "2026-02-18T01:35:40Z")

</div>

You can enter the mountain on the lower right.

---

<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:** [February 18, 2026, 5:32pm UTC](https://discourse.codecombat.com/t/cloudrip-brawl-4-python-ogres-too-strong/41201/4 "2026-02-18T17:32:50Z")

</div>

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