# Solved

**URL:** https://discourse.codecombat.com/c/solved/8.md

[Latest](https://discourse.codecombat.com/latest.md) · [Categories](https://discourse.codecombat.com/categories.md) · [Tags](https://discourse.codecombat.com/tags.md)

---

## [Category definition for Solved](https://discourse.codecombat.com/t/category-definition-for-solved/227)

<div class="topic-metadata">

**Author:** [@GlenDC](https://discourse.codecombat.com/u/GlenDC)\
**Replies:** 2\
**Last updated:** [August 14, 2020, 3:21pm UTC](https://discourse.codecombat.com/t/category-definition-for-solved/227 "2020-08-14T15:21:29Z")

</div>

Had a question or did you report a bug? Awesome! We are here to help you with whatever problem you encounter. This category can be used to mark the topics of these problems once they are resolved. This way other people k…

---

## [\[SOLVED\] Bank Raid Help?](https://discourse.codecombat.com/t/solved-bank-raid-help/16009)

<div class="topic-metadata">

**Author:** [@Sharknado](https://discourse.codecombat.com/u/Sharknado)\
**Replies:** 28\
**Last updated:** [August 17, 2025, 9:02pm UTC](https://discourse.codecombat.com/t/solved-bank-raid-help/16009 "2025-08-17T21:02:17Z")

</div>

I’ve been stuck on this level for a day and I don’t know how to solve it. Here is my code. while True: enemies = hero.findEnemies() # enemyIndex is used to iterate the enemies array. enemyIndex = 0 # Whi…

---

## [\[Solved\] Keeping Time](https://discourse.codecombat.com/t/solved-keeping-time/15572)

<div class="topic-metadata">

**Author:** [@ducky](https://discourse.codecombat.com/u/ducky)\
**Replies:** 40\
**Last updated:** [December 7, 2022, 12:38am UTC](https://discourse.codecombat.com/t/solved-keeping-time/15572 "2022-12-07T00:38:05Z")

</div>

help!!! ive been working on “keeping time” for over an hour and till cant get it plz help me Use your new skill to choose what to do: hero.time enemy = hero.findNearestEnemy() coin = hero.findNearestItem() while True…

---

## [\[Solved\] Mad Maxer Strikes Back - Always dying](https://discourse.codecombat.com/t/solved-mad-maxer-strikes-back-always-dying/15809)

<div class="topic-metadata">

**Author:** [@Peter\_Alfons\_Loch](https://discourse.codecombat.com/u/Peter_Alfons_Loch)\
**Replies:** 23\
**Last updated:** [November 30, 2022, 2:41pm UTC](https://discourse.codecombat.com/t/solved-mad-maxer-strikes-back-always-dying/15809 "2022-11-30T14:41:14Z")

</div>

My charachter always gets killed in Mad Maxer Strikes Back … seems to be a bug // The smaller ogres here do more damage! // Attack the ogres with the least health first. while (true) { var weakest = null; var l…

---

## [By Any Other Name Problem](https://discourse.codecombat.com/t/by-any-other-name-problem/7836)

<div class="topic-metadata">

**Author:** [@FuzzyCheese](https://discourse.codecombat.com/u/FuzzyCheese)\
**Replies:** 36\
**Last updated:** [November 3, 2022, 5:15am UTC](https://discourse.codecombat.com/t/by-any-other-name-problem/7836 "2022-11-03T05:15:15Z")

</div>

The new level: By Any Other Name, has no gems. Making it impossible to complete. Other than that, it is a good level.

---

## [Level: Leave it to Cleaver](https://discourse.codecombat.com/t/level-leave-it-to-cleaver/7479)

<div class="topic-metadata">

**Author:** [@Daniel\_Cheung](https://discourse.codecombat.com/u/Daniel_Cheung)\
**Replies:** 94\
**Last updated:** [September 1, 2022, 3:34am UTC](https://discourse.codecombat.com/t/level-leave-it-to-cleaver/7479 "2022-09-01T03:34:02Z")

</div>

Hi, don’t know how to do Leave it to Cleaver Backwoods Forest level. Plz help. PS, how to display code in this form? I can’t seem to do it with copying and pasting, espcially it does not work with indents.

---

## [\[Solved\] Lost Viking need Help!](https://discourse.codecombat.com/t/solved-lost-viking-need-help/12683)

<div class="topic-metadata">

**Author:** [@Ender\_Dragon23](https://discourse.codecombat.com/u/Ender_Dragon23)\
**Replies:** 11\
**Last updated:** [August 30, 2022, 11:10pm UTC](https://discourse.codecombat.com/t/solved-lost-viking-need-help/12683 "2022-08-30T23:10:23Z")

</div>

I’m confused how Lost Viking works here is my code: SLIDE = 2 SWITCH = 6 SKIP = 11 # How many sideSteps north of the Red X you've taken. sideSteps = 1 # How many steps east of the Red X you've taken. steps = 1 # Mult…

---

## [Level 6 subscription bug?](https://discourse.codecombat.com/t/level-6-subscription-bug/5453)

<div class="topic-metadata">

**Author:** [@joshlayton1](https://discourse.codecombat.com/u/joshlayton1)\
**Replies:** 50\
**Last updated:** [July 13, 2022, 12:06pm UTC](https://discourse.codecombat.com/t/level-6-subscription-bug/5453 "2022-07-13T12:06:50Z")

</div>

can someone help me? i can't enter level 6. when i click the level the subscription page pops up and if i exit out and try again, same thing. if i try the advanced level on the left of the screen the same thing happens s…

---

## [Is it still possible to do Alpine Rally without Pender?](https://discourse.codecombat.com/t/is-it-still-possible-to-do-alpine-rally-without-pender/15863)

<div class="topic-metadata">

**Author:** [@ducky](https://discourse.codecombat.com/u/ducky)\
**Replies:** 7\
**Last updated:** [June 16, 2022, 11:12am UTC](https://discourse.codecombat.com/t/is-it-still-possible-to-do-alpine-rally-without-pender/15863 "2022-06-16T11:12:14Z")

</div>

I accidently started Alpine Rally with Hattori Hanzo but i didn’t know I was supposed to start it with Pender Spellbane and now I can’t switch. What do I do?

---

## [Vital powers (Confused)](https://discourse.codecombat.com/t/vital-powers-confused/19506)

<div class="topic-metadata">

**Author:** [@guy\_oy](https://discourse.codecombat.com/u/guy_oy)\
**Replies:** 16\
**Last updated:** [October 29, 2021, 9:05pm UTC](https://discourse.codecombat.com/t/vital-powers-confused/19506 "2021-10-29T21:05:39Z")

</div>

here is my code. def summonSoldier(): # Fill in code here to summon a soldier if you have enough gold if self.gold \>= self.costOf("soldier"): self.summon("soldier") else: break # This functi…

---

## [\[Solved\] Clash of clones python](https://discourse.codecombat.com/t/solved-clash-of-clones-python/15505)

<div class="topic-metadata">

**Author:** [@starwars72015](https://discourse.codecombat.com/u/starwars72015)\
**Replies:** 70\
**Last updated:** [October 21, 2021, 2:13am UTC](https://discourse.codecombat.com/t/solved-clash-of-clones-python/15505 "2021-10-21T02:13:52Z")

</div>

to help people who are stuck on clash of clones code combat like me

---

## [\[SOLVED\] Destroying Angel Bugged?](https://discourse.codecombat.com/t/solved-destroying-angel-bugged/29470)

<div class="topic-metadata">

**Author:** [@Lydia\_Song](https://discourse.codecombat.com/u/Lydia_Song)\
**Replies:** 5\
**Last updated:** [September 21, 2021, 3:55am UTC](https://discourse.codecombat.com/t/solved-destroying-angel-bugged/29470 "2021-09-21T03:55:11Z")

</div>

I won't show code cause it actually succeeds but still there is bugs So, my code is correct, but after I collect the mushroom, and I go out, no matter if I try 1 hero.moveDown() or two, or three, my hero always get…

---

## [\[Solved\] Copper Meadows Issue](https://discourse.codecombat.com/t/solved-copper-meadows-issue/16185)

<div class="topic-metadata">

**Author:** [@Vadim\_Krasnikov](https://discourse.codecombat.com/u/Vadim_Krasnikov)\
**Replies:** 8\
**Last updated:** [September 6, 2021, 7:20am UTC](https://discourse.codecombat.com/t/solved-copper-meadows-issue/16185 "2021-09-06T07:20:19Z")

</div>

Greetings! I doubt if the case enclosed is a bug, yet I can’t find solution even when all requirements are fulfilled. Please, check attached screenshot.

---

## [\[SOLVED\] I think there's a bug in "Geometry of Flowers"](https://discourse.codecombat.com/t/solved-i-think-theres-a-bug-in-geometry-of-flowers/15864)

<div class="topic-metadata">

**Author:** [@BookFanatic](https://discourse.codecombat.com/u/BookFanatic)\
**Replies:** 14\
**Last updated:** [July 14, 2021, 9:03pm UTC](https://discourse.codecombat.com/t/solved-i-think-theres-a-bug-in-geometry-of-flowers/15864 "2021-07-14T21:03:03Z")

</div>

I was trying Geometry of Flowers and I did everything it told me to The problem the game is having is with the code that was originally there def drawCircle(x, y, size): angle = 0 hero.toggleFlowers(False) …

---

## [I have a bug in Ace of Coders](https://discourse.codecombat.com/t/i-have-a-bug-in-ace-of-coders/23366)

<div class="topic-metadata">

**Author:** [@PeterPalov](https://discourse.codecombat.com/u/PeterPalov)\
**Replies:** 11\
**Last updated:** [June 20, 2021, 1:47pm UTC](https://discourse.codecombat.com/t/i-have-a-bug-in-ace-of-coders/23366 "2021-06-20T13:47:40Z")

</div>

Look: And this bug is with other people (not only with Simple CPU): Where are buttons “Run”, “Submit my game” or “Ladder”? Also I can’t watch “My matches” or simulate my games. Please help me with this bug!

---

## [Think I cheesed Hunters and Prey level](https://discourse.codecombat.com/t/think-i-cheesed-hunters-and-prey-level/29374)

<div class="topic-metadata">

**Author:** [@ScienceBoi](https://discourse.codecombat.com/u/ScienceBoi)\
**Replies:** 3\
**Last updated:** [June 19, 2021, 3:26am UTC](https://discourse.codecombat.com/t/think-i-cheesed-hunters-and-prey-level/29374 "2021-06-19T03:26:47Z")

</div>

I think what happened was 1 archer stayed behind and the rest just went up so the part of the code that made the ogres kill the reindeers never ran…

---

## [\[Solved\] Magic Exam, please help](https://discourse.codecombat.com/t/solved-magic-exam-please-help/16561)

<div class="topic-metadata">

**Author:** [@Kaija\_Solod](https://discourse.codecombat.com/u/Kaija_Solod)\
**Replies:** 22\
**Last updated:** [June 4, 2021, 5:25pm UTC](https://discourse.codecombat.com/t/solved-magic-exam-please-help/16561 "2021-06-04T17:25:39Z")

</div>

Hi guys. I know I have a problem in my code, but can’t locate it. I don’t know why the “while” loop stops executing, because the condition is always “true” and the if else statement that i need, the –else if (heroY === 2…

---

## [Clash of clones i cant defeat it \[SOLVED\]](https://discourse.codecombat.com/t/clash-of-clones-i-cant-defeat-it-solved/16336)

<div class="topic-metadata">

**Author:** [@FrostedGamingX](https://discourse.codecombat.com/u/FrostedGamingX)\
**Replies:** 26\
**Last updated:** [May 13, 2021, 1:41pm UTC](https://discourse.codecombat.com/t/clash-of-clones-i-cant-defeat-it-solved/16336 "2021-05-13T13:41:10Z")

</div>

hello evryone can someone pls give me tips how to beat clash of clones this is code i use i use this code in sige of stonehold too while True: flag = hero.findFlag() enemy = hero.findNearestEnemy() if …

---

## [\[SOLVED\] Help with "logical path"](https://discourse.codecombat.com/t/solved-help-with-logical-path/14098)

<div class="topic-metadata">

**Author:** [@ZackAttack04](https://discourse.codecombat.com/u/ZackAttack04)\
**Replies:** 19\
**Last updated:** [March 19, 2021, 11:09am UTC](https://discourse.codecombat.com/t/solved-help-with-logical-path/14098 "2021-03-19T11:09:19Z")

</div>

I need some help with "logical path" here is a picture of the error: \[19%20PM\]

---

## [\[SOLVED\] Usual day](https://discourse.codecombat.com/t/solved-usual-day/15609)

<div class="topic-metadata">

**Author:** [@SwordandShield](https://discourse.codecombat.com/u/SwordandShield)\
**Replies:** 13\
**Last updated:** [February 19, 2021, 3:33pm UTC](https://discourse.codecombat.com/t/solved-usual-day/15609 "2021-02-19T15:33:42Z")

</div>

Help please…in Usual Day, they said: #Find the nearest item. So I typed: item = hero.findNearestItem And then they said: # Collect item if it exists and its type is “coin”. I put \_ if item:\_ #Move to the posit…

---

## [\[Solved\] Teleport Lasso Help](https://discourse.codecombat.com/t/solved-teleport-lasso-help/14293)

<div class="topic-metadata">

**Author:** [@harmony](https://discourse.codecombat.com/u/harmony)\
**Replies:** 27\
**Last updated:** [February 16, 2021, 11:18pm UTC](https://discourse.codecombat.com/t/solved-teleport-lasso-help/14293 "2021-02-16T23:18:53Z")

</div>

Can’t defeat 4 ogres…

---

## [\[SOLVED\] Could someone help me on Noble Sacrifice? (Python)](https://discourse.codecombat.com/t/solved-could-someone-help-me-on-noble-sacrifice-python/15761)

<div class="topic-metadata">

**Author:** [@BookFanatic](https://discourse.codecombat.com/u/BookFanatic)\
**Replies:** 10\
**Last updated:** [August 28, 2020, 3:28am UTC](https://discourse.codecombat.com/t/solved-could-someone-help-me-on-noble-sacrifice-python/15761 "2020-08-28T03:28:58Z")

</div>

I tried to loop so the soldiers would lure Mr. Yeti but it won’t work. # Collect 80 gold while hero.gold \<= 80: coin = hero.findNearestItem() if coin: hero.move(coin.pos) soldiers = 0 while soldiers \< 4:…

---

## [Problem in Level: return to thorn bush farm (Backwoods Forest)](https://discourse.codecombat.com/t/problem-in-level-return-to-thorn-bush-farm-backwoods-forest/8169)

<div class="topic-metadata">

**Author:** [@Lancelot\_Gao](https://discourse.codecombat.com/u/Lancelot_Gao)\
**Replies:** 15\
**Last updated:** [August 21, 2020, 5:40pm UTC](https://discourse.codecombat.com/t/problem-in-level-return-to-thorn-bush-farm-backwoods-forest/8169 "2020-08-21T17:40:00Z")

</div>

After I built a fence at the top entrance to block the master outside, another villager come from the road and was killed by the monster... If I don't block the road, villager inside will die, if I block it, villager out…

---

## [\[SOLVED\] Can't solve Sarven Shepherd](https://discourse.codecombat.com/t/solved-cant-solve-sarven-shepherd/14966)

<div class="topic-metadata">

**Author:** [@Tyreak\_Chapman](https://discourse.codecombat.com/u/Tyreak_Chapman)\
**Replies:** 58\
**Last updated:** [August 6, 2020, 8:38pm UTC](https://discourse.codecombat.com/t/solved-cant-solve-sarven-shepherd/14966 "2020-08-06T20:38:34Z")

</div>

I’ve been trying to solve this for weeks with no luck, and I’ve almost every single thing possible but it yielded the same results. If there’s something I’m doing wrong, please tell me. # Use while loops to pick out the…

---

## [\[SOLVED\] I am stuck on "Shine getter"](https://discourse.codecombat.com/t/solved-i-am-stuck-on-shine-getter/15768)

<div class="topic-metadata">

**Author:** [@Carbonalligator](https://discourse.codecombat.com/u/Carbonalligator)\
**Replies:** 8\
**Last updated:** [August 6, 2020, 1:09am UTC](https://discourse.codecombat.com/t/solved-i-am-stuck-on-shine-getter/15768 "2020-08-06T01:09:14Z")

</div>

Whenever I run my code it returns that it cannot read property ‘0’ of undefined for line coins = hero.findItems() while True: coins = hero.findItems() coinIndex = 0 while coinIndex \< len(coins): …

---

## [\[SOLVED\] The two flowers stuck](https://discourse.codecombat.com/t/solved-the-two-flowers-stuck/16061)

<div class="topic-metadata">

**Author:** [@mratranslate](https://discourse.codecombat.com/u/mratranslate)\
**Replies:** 22\
**Last updated:** [July 22, 2020, 11:17am UTC](https://discourse.codecombat.com/t/solved-the-two-flowers-stuck/16061 "2020-07-22T11:17:20Z")

</div>

\# If the peasant is damaged, the flowers will shrink! def summonSoldiers(): if hero.gold \>= hero.costOf("soldier"): hero.summon("soldier") # Define the function: commandSoldiers def commandSoldiers(): f…

---

## [Hunters and prey python help \[SOLVED\]](https://discourse.codecombat.com/t/hunters-and-prey-python-help-solved/16864)

<div class="topic-metadata">

**Author:** [@Sebaston260](https://discourse.codecombat.com/u/Sebaston260)\
**Replies:** 10\
**Last updated:** [July 16, 2020, 9:09am UTC](https://discourse.codecombat.com/t/hunters-and-prey-python-help-solved/16864 "2020-07-16T09:09:23Z")

</div>

Why does the line 32 don’t work ? # Ogres are trying to take out your reindeer! # Keep your archers back while summoning soldiers to attack. def pickUpCoin(): # Collect coins. item = hero.findNearestItem() …

---

## [Hunters and Prey serious bug](https://discourse.codecombat.com/t/hunters-and-prey-serious-bug/6635)

<div class="topic-metadata">

**Author:** [@Thelightside](https://discourse.codecombat.com/u/Thelightside)\
**Replies:** 82\
**Last updated:** [July 15, 2020, 6:47am UTC](https://discourse.codecombat.com/t/hunters-and-prey-serious-bug/6635 "2020-07-15T06:47:35Z")

</div>

For the level Hunters and Prey in Cloudrip Mountain the sample code is in Javascript while I use Python. When I put a python code my whole code ends up being wrong. Does anyone have any solutions????

---

## [\[CLOSED\] Everyone dies in safety blanket (Bugs)](https://discourse.codecombat.com/t/closed-everyone-dies-in-safety-blanket-bugs/22148)

<div class="topic-metadata">

**Author:** [@Monsty](https://discourse.codecombat.com/u/Monsty)\
**Replies:** 14\
**Last updated:** [June 15, 2020, 1:24pm UTC](https://discourse.codecombat.com/t/closed-everyone-dies-in-safety-blanket-bugs/22148 "2020-06-15T13:24:19Z")

</div>

Hey guys im just gonna post my code here cause I have alot of homeworks. I killed the peasants and it still works. The hero attacks peasants and I win. heres my code. // This is an array of nearby names! // Enemies are …

---

## [\[SOLVED\] Zoo Keeper Stuck! Help](https://discourse.codecombat.com/t/solved-zoo-keeper-stuck-help/16043)

<div class="topic-metadata">

**Author:** [@Sharknado](https://discourse.codecombat.com/u/Sharknado)\
**Replies:** 6\
**Last updated:** [June 9, 2020, 4:02am UTC](https://discourse.codecombat.com/t/solved-zoo-keeper-stuck-help/16043 "2020-06-09T04:02:03Z")

</div>

Can someone help me my hero collects the 80 coins but doesn’t make any soldiers to protect the cage? Here is my code. # Protect the cage. # Put a soldier at each X. points = \[\] points\[0\] = {"x": 33, "y": 42} points\[1\] …

[Next page](https://discourse.codecombat.com/c/solved/8.md?page=1)
