- Latest topics https://discourse.codecombat.com/latest Latest topics Wed, 22 Apr 2026 09:49:42 +0000 Free account for the game Uncategorized I installed and ran it on docker. How do I play the next 4 levels? Do I need to purchase premium even for developers?

1 post - 1 participant

Read full topic

]]>
https://discourse.codecombat.com/t/free-account-for-the-game/41360 Wed, 22 Apr 2026 09:49:42 +0000 No No No discourse.codecombat.com-topic-41360 Free account for the game
Dont post here chars Level Help This is just to post things that are funny when you edited in html and post it lol!

7 posts - 3 participants

Read full topic

]]>
https://discourse.codecombat.com/t/dont-post-here-chars/41353 Sun, 19 Apr 2026 13:33:01 +0000 No Yes No discourse.codecombat.com-topic-41353 Dont post here chars
The 2026 drawing competition Off-Topic How this works is you submit your drawing computer or paper next when I think its time i will put up the polI will check if you took the picture from somebody else.

4 posts - 3 participants

Read full topic

]]>
https://discourse.codecombat.com/t/the-2026-drawing-competition/41348 Sat, 18 Apr 2026 19:26:53 +0000 No No No discourse.codecombat.com-topic-41348 The 2026 drawing competition
Anyone want to join my pm? Off-Topic just say yes 20 charssssssssss

6 posts - 4 participants

Read full topic

]]>
https://discourse.codecombat.com/t/anyone-want-to-join-my-pm/41347 Sat, 18 Apr 2026 15:05:55 +0000 No No No discourse.codecombat.com-topic-41347 Anyone want to join my pm?
Topic for Boddle Off-Topic This is the topic for the game Boddle!

3 posts - 2 participants

Read full topic

]]>
https://discourse.codecombat.com/t/topic-for-boddle/41343 Thu, 09 Apr 2026 11:47:49 +0000 No No No discourse.codecombat.com-topic-41343 Topic for Boddle
Sowing Fire Python: Hero not building traps Level Help I did what the instructions asked my to, my friends are fighting, but my hero is not building traps. Can someone please help me on this?

# Goal: build three rows of nine fire-traps.
# Returns "retreat", "attack", "start-next-trap-column", or "build-next-trap-in-column"
def chooseStrategy():
    enemies = hero.findEnemies()
    # If there are overwhelming ogre forces, return the "retreat" strategy.
    if len(enemies) > 20:
        return "retreat"
    # If there are some ogres, return the "attack" strategy.
    if len(enemies) < 20:
        return "attack"
    # Use x % 9 is 0 to see if x is divisible by 9.
    # Use len(self.built) to see how many traps you have built.
    # If you have finished a column of 9 traps, return "start-next-trap-column"
    if len(self.built) %9 == 0:
        return "start-next-trap-column"
    # Otherwise, return "build-next-trap-in-column"
    else:
        return "build-next-trap-in-column"
trapsInColumn = 9
startX = 40
columnX = startX
# Build the next trap in a column in the correct place.
def buildNextTrapInColumn(columnX,numTraps):
    # Change newY to use % to wrap around and only build trapsInColumn (9) traps per column
    newY = (7 * numTraps) % 9 # ∆ Change this to use % 9!
    if hero.pos.y < newY:
        hero.move({"x": columnX - 5, "y": newY})
    else:
        buildTrap(columnX,newY)
# Start a new column of traps.
def startNextTrapColumn(columnX, numTraps):
    newX = startX - (Math.floor(numTraps / trapsInColumn) * 6)
    if hero.pos.y > 10:
        hero.move({"x": newX - 5, "y": 10})
        return columnX
    else:
        buildTrap(newX,10)
        return newX
def buildTrap(x, y):
    hero.buildXY("fire-trap", x, y)
def commandAttack():
    # Have your griffin riders fend off the attackers.
    friends = hero.findFriends()
    enemy = hero.findNearestEnemy()
    for friend in friends:
        if friend and enemy:
            hero.command(friend, "attack", enemy)
    pass
def commandRetreat():
    hero.say("Retreat!")
    # You and your griffin riders retreat to safety behind the traps.
    hero.command(friend, "move", {"x": 4, "y": 42})
while True:
    strategy = chooseStrategy()
    if strategy == "attack":
        commandAttack()
    elif strategy == "build-next-trap-in-column":
        buildNextTrapInColumn(columnX, len(hero.built))
    elif strategy == "start-next-trap-column":
        columnX = startNextTrapColumn(columnX, len(hero.built))
    elif strategy == "retreat":
        commandRetreat()

Help appreciated!

4 posts - 2 participants

Read full topic

]]>
https://discourse.codecombat.com/t/sowing-fire-python-hero-not-building-traps/41330 Wed, 01 Apr 2026 17:48:29 +0000 No Yes No discourse.codecombat.com-topic-41330 Sowing Fire Python: Hero not building traps
Code Combat Junior Lvl 128 IF MASTER Level Help Hi. I am very stuck at the Code Combat Junior IF MASTER Level. I cannot get to the raft on time. Desperate for some inspiration :blush: THANK YOU

My code is attached :face_with_peeking_eye:

2 posts - 1 participant

Read full topic

]]>
https://discourse.codecombat.com/t/code-combat-junior-lvl-128-if-master/41329 Wed, 01 Apr 2026 16:43:16 +0000 No No No discourse.codecombat.com-topic-41329 Code Combat Junior Lvl 128 IF MASTER
Traitor burl kills me in "vital help" level Level Help I’m trying to 100% complete the level “vital help“, but my own burl keeps killing me for some reason. Videofiles are not supported so here is a link to a google drive folder: burl-kills-me-vid - Google Drive

also here is my entire code (removed commented code given by level for better reading):

def pickUpNearestCoin():
    items = hero.findItems()
    nearestCoin = hero.findNearest(items)
    if nearestCoin:
        hero.move(nearestCoin.pos)

def summonSoldier():
    if hero.gold >= hero.costOf("soldier"):
        hero.summon("soldier")
    pass


def commandSoldiers():
    for soldier in hero.findByType("soldier"):
        enemy = soldier.findNearestEnemy()
        if enemy:
            hero.command(soldier, "attack", enemy)

while True:
    enemy = hero.findNearestEnemy()
    if enemy and hero.distanceTo(enemy) <= 5:
        hero.cast("drain-life", enemy)
    if hero.isReady("summon-burl"):
        hero.cast("summon-burl")
    if hero.isReady("summon-undead"):
        hero.cast("summon-undead")
        if hero.isReady("reset-cooldown"):
            hero.resetCooldown("summon-undead")
            hero.cast("summon-undead")
    if hero.time > 20:
        if hero.isReady("raise-dead"):
            hero.cast("raise-dead")
    if hero.time > 40:
        hero.move({"x":42,"y":38})
        if hero.isReady("throw-charge"):
            hero.throwCharge(10)
        else:
            if enemy and hero.distanceTo(enemy) >= 15:
                hero.cast("drain-life", enemy)
    if hero.time < 40:
        pickUpNearestCoin()
    summonSoldier()
    commandSoldiers()

i think my burl might have some anger issues and should go to a psychologist, but i posted this to check for any alternative causes and solutions

1 post - 1 participant

Read full topic

]]>
https://discourse.codecombat.com/t/traitor-burl-kills-me-in-vital-help-level/41319 Wed, 25 Mar 2026 07:41:58 +0000 No No No discourse.codecombat.com-topic-41319 Traitor burl kills me in "vital help" level
Devour Dash - Bugs, Feedback AILeague Hi, there!

Sorry, but just could not work on AILeague first months so the last arena was a little “dizzy”.
Next months I can time to time jump in and fix bugs and improve it.
So please share bugs and feedback here.

26 posts - 5 participants

Read full topic

]]>
https://discourse.codecombat.com/t/devour-dash-bugs-feedback/41311 Mon, 23 Mar 2026 09:54:53 +0000 Yes No No discourse.codecombat.com-topic-41311 Devour Dash - Bugs, Feedback
Stuck on middle point Level Help Patrol up and down, stopping at each X mark, in a loop.

Build "fire-trap"s to stop the ogres from invading.

It’s best if you only build when you see an ogre.

while True:
hero.moveXY(32, 52)
enemy = hero.findNearestEnemy()

if enemy:
    
    enemy = hero.findNearestEnemy()
    if enemy:
        hero.buildXY("fire-trap", 32, 52)
        
    hero.moveXY(32, 34)
    enemy = hero.findNearestEnemy()
    
    if enemy:
        hero.buildXY("fire-trap", 32, 34)
    hero.moveXY(32, 34)
    enemy = hero.findNearestEnemy()
    if enemy:
        hero.buildXY("fire-trap", 31, 16)

4 posts - 2 participants

Read full topic

]]>
https://discourse.codecombat.com/t/stuck-on-middle-point/41305 Fri, 20 Mar 2026 12:57:15 +0000 No Yes No discourse.codecombat.com-topic-41305 Stuck on middle point
Does anayone know any of the songs on code combat? Uncategorized anyone know 20 cccccccccccccchhhhhhhhhhhhhhhaaaaaaaaaaaaarrrrrrrrrrrrrrrss

2 posts - 2 participants

Read full topic

]]>
https://discourse.codecombat.com/t/does-anayone-know-any-of-the-songs-on-code-combat/41304 Tue, 17 Mar 2026 11:55:27 +0000 No No No discourse.codecombat.com-topic-41304 Does anayone know any of the songs on code combat?
Hey... (15 chars) Off-Topic I know im not supposed to ban evade but i just wanted to at the very least be banned on better terms . im very sorry for what happened repeatedly across when i was on the discourse i was a very unstable person . ive since matured as a person and am a way more stable person .so yeah just wanted to give and update on me and my person life . it’d be great if i could be unbanned but idk if thats an option

2 posts - 2 participants

Read full topic

]]>
https://discourse.codecombat.com/t/hey-15-chars/41281 Mon, 09 Mar 2026 16:56:59 +0000 No No No discourse.codecombat.com-topic-41281 Hey... (15 chars)
serpentSavingsSlam() Uncategorized Before, my peasant wasn’t moving, in serpent savings, but I was able to fix it. However, I keep running into the walls. Do you know how to avoid it? Here’s my code:

function findBestItem(friend, coins) {
    var richestvalue = 0;
    var closestitem = 9999;
    var best = null;
    for (var i = 0; i < coins.length; i++) {
        var coin = coins[i];
        if (coin.value > richestvalue && friend.distanceTo(coin) < closestitem) {
            best = coin;
            closestitem = friend.distanceTo(coin);
            richestvalue = coin.value;
        }
    }
    return best;
}
while (true){
    var friend = hero.findFriends()[0];
    var tails = hero.findEnemies();
    var coins = hero.findItems();
    // Command the peasant to collect a coin, while avoiding the tails.
    // It may help to create a value/distance coin selector function for the peasant.
    // Create a findBestItem function that matches the below parameters
    var coin = findBestItem(friend, coins);
    var goal = coin.pos;
    // Enemy avoidance concepts from levels like "Skating Away" may help.
    // Try writing a code that moves away from the friend.snakeBackward
    for (var j = 0; j < tails.length; j++) {
        var yak = friend.snakeBackward;
        if (yak) {
            // First, make a Vector from the yak to you
            var safePos = Vector.subtract(friend.pos, yak.pos);
            safePos = Vector.normalize(safePos);
            safePos = Vector.multiply(safePos, 4);
            // Once you have the 10m vector away from the yak, use Vector.add to add it to your goal vector!
            goal = Vector.add(goal, safePos);
        }
    }
    hero.command(friend, "move", goal);
}

1 post - 1 participant

Read full topic

]]>
https://discourse.codecombat.com/t/serpentsavingsslam/41268 Tue, 03 Mar 2026 15:26:52 +0000 No No No discourse.codecombat.com-topic-41268 serpentSavingsSlam()
Talk about what is happening with AI Off-Topic I have my own local AI. It’s programed to tell me to go to school every morning.

1 post - 1 participant

Read full topic

]]>
https://discourse.codecombat.com/t/talk-about-what-is-happening-with-ai/41258 Sun, 01 Mar 2026 14:41:09 +0000 No No No discourse.codecombat.com-topic-41258 Talk about what is happening with AI
precisionKickingPanic (javaScript) Level Help I’ve been trying this level for a while, and I’m not sure how to do it. I’ve tried checking other posts, but most of them are in Python, so I can barely understand it. (Yes, I’m aware the two languages are really similar) Here’s my code:

while(true) {
    var blueskelly = hero.findEnemies();
    var ball = hero.findByType("ball")[0];
    var peasant = hero.findByType("peasant")[0];
    for (var i = 0; i < blueskelly.length; i++) {
        if (ball.velocity.magnitude() == 0) {
            var blue = blueskelly[i];
            var goal = Vector.subtract(blue.pos, ball.pos);
            goal = Vector.normalize(goal);
            goal = Vector.multiply(goal, -7.51);
            goal = Vector.add(goal, ball.pos);
            hero.command(peasant, "move", goal);
            hero.wait(1.5);
            hero.command(peasant, "move", ball.pos);
            hero.wait(0.8);
            hero.command(peasant, "move", goal);
            hero.wait(2);
        }
    }
}

Any idea what’s going wrong?

4 posts - 3 participants

Read full topic

]]>
https://discourse.codecombat.com/t/precisionkickingpanic-javascript/41251 Thu, 26 Feb 2026 13:50:02 +0000 No Yes No discourse.codecombat.com-topic-41251 precisionKickingPanic (javaScript)
The pet topic, dogs, cats, any pet! Off-Topic What do you like about your pet?

6 posts - 2 participants

Read full topic

]]>
https://discourse.codecombat.com/t/the-pet-topic-dogs-cats-any-pet/41247 Tue, 24 Feb 2026 22:38:53 +0000 No No No discourse.codecombat.com-topic-41247 The pet topic, dogs, cats, any pet!
Twins Power: Brawler Not Moving Bugs I think I’ve got the right code, but I don’t know why the Brawler at the end isn’t moving. Am I doing something wrong?

# Define the function before using it.
def areTwins(unit1, unit2):
    name1 = unit1.id
    name2 = unit2.id
    if len(name1) != len(name2):  # Use len(), not name1.length
        return False
    for i in range(len(name1) - 1):
        if name1[i] != name2[i]:
            return False
    return True

# Get all friends nearby
pals = hero.findFriends()

# Example: loop through friends with proper range
friends = hero.findFriends()
for f1 in range(len(friends)):
    for f2 in range(len(friends)):
        if f1 != f2 and areTwins(friends[f1], friends[f2]):
            hero.say(friends[f1].id + " " + friends[f2].id)


2 posts - 1 participant

Read full topic

]]>
https://discourse.codecombat.com/t/twins-power-brawler-not-moving/41239 Wed, 18 Feb 2026 17:34:41 +0000 No No No discourse.codecombat.com-topic-41239 Twins Power: Brawler Not Moving
Happy Chinese New Year! (2026) Uncategorized CHINESE NEW YEAR YAYYA?
lol

2 posts - 2 participants

Read full topic

]]>
https://discourse.codecombat.com/t/happy-chinese-new-year-2026/41238 Tue, 17 Feb 2026 12:42:20 +0000 No No No discourse.codecombat.com-topic-41238 Happy Chinese New Year! (2026)
Issue with level submission [Star Coder Level] Bugs Hello there,

my submission for the Star Coder level is stuck. After clicking “Submit,” the button just says “Evaluating the result” but never finishes. Is there a server issue or a way to refresh this?

-Lama

3 posts - 2 participants

Read full topic

]]>
https://discourse.codecombat.com/t/issue-with-level-submission-star-coder-level/41232 Tue, 10 Feb 2026 14:26:47 +0000 No No No discourse.codecombat.com-topic-41232 Issue with level submission [Star Coder Level]
Wall of Darkness doesn´t work. [LVL: Behind the Darkness] Bugs Hello Helpers,

Little Checklist:

  1. My Hero is (the only possible): Ritic, my equipment is in the picture to see.

  2. The Problem: So I am pretty sure that it is a bug, but who am I to tell that. In the Level you need to build a wall out of magic against projectiles and yetis but for some reason no matter which equipment I use or what code I am writing they just go through the “WaLl oF DaRkNeSs.” The Goal is to survive 70 secs. Here are two pictures where I tried to capture the bug:

  3. My Code: It is nothing fancy, just like the level and hints wanted it to look like. I added flags to get the 70 sec survival counter, but I am dying to fast because of the yetis.

function waitForAndAttack(abilityName) {
    while (true) {
        var greenFlag = hero.findFlag("green");
        if (greenFlag) {
            hero.pickUpFlag(greenFlag);
        }
        
        if (hero.isReady(abilityName)) {
            break;
        }
        var enemy = hero.findNearestEnemy();
        if (enemy && enemy.type !== "yeti" && hero.distanceTo(enemy) < 15) {
            hero.attack(enemy);
        }
    }
}

var SE = {"x": 52, "y": 20};
var NE = {"x": 52, "y": 48};
var NW = {"x": 28, "y": 48};
var SW = {"x": 28, "y": 20};

while (true) {
    var greenFlag = hero.findFlag("green");
    if (greenFlag) {
        hero.pickUpFlag(greenFlag);
    }
    
    hero.wallOfDarkness([SW, NW, NE, SE]);
    waitForAndAttack("wall-of-darkness");
    
    greenFlag = hero.findFlag("green");
    if (greenFlag) {
        hero.pickUpFlag(greenFlag);
    }
    
    hero.wallOfDarkness([NE, SE, SW]);
    waitForAndAttack("wall-of-darkness");
    
    greenFlag = hero.findFlag("green");
    if (greenFlag) {
        hero.pickUpFlag(greenFlag);
    }

    hero.wallOfDarkness([NE, NW, SW]);
    waitForAndAttack("wall-of-darkness");
}

-Lama

1 post - 1 participant

Read full topic

]]>
https://discourse.codecombat.com/t/wall-of-darkness-doesn-t-work-lvl-behind-the-darkness/41230 Tue, 10 Feb 2026 13:41:11 +0000 No No No discourse.codecombat.com-topic-41230 Wall of Darkness doesn´t work. [LVL: Behind the Darkness]
Lego innovations you can try Uncategorized show and give away new ways to do stuff with lego

2 posts - 2 participants

Read full topic

]]>
https://discourse.codecombat.com/t/lego-innovations-you-can-try/41214 Mon, 02 Feb 2026 22:28:04 +0000 No No No discourse.codecombat.com-topic-41214 Lego innovations you can try
Mountain Merceneys code combat help java script Level Help This is my code

while(true) {
    // Move to the nearest coin.
    // Use move instead of moveXY so you can command constantly.
    hero.say("I need coins!");
    var coin = hero.findNearestItem();
    if (coin) {
        hero.move(coin.pos);
    }
    // If you have funds for a soldier, summon one.
    if (hero.gold > hero.costOf("soldier")) {
        //hero.say("I should summon something here!");
        hero.summon("soldier");
    }
    var enemy = hero.findNearestEnemy();
    if (enemy) {
        
        var soldiers = hero.findFriends();
        var soldierIndex = 0;
        // Loop over all your soldiers and order them to attack.
        while(soldierIndex < soldiers.length) {
            
        
            var soldier = soldiers[soldierIndex];
            // Use the 'attack' command to make your soldiers attack.
            hero.command(soldier, "attack", enemy);
            soldierIndex += 1;
            
        }  
    }
}

10 posts - 4 participants

Read full topic

]]>
https://discourse.codecombat.com/t/mountain-merceneys-code-combat-help-java-script/41208 Sun, 01 Feb 2026 14:23:17 +0000 No Yes No discourse.codecombat.com-topic-41208 Mountain Merceneys code combat help java script
Cloudrip Brawl 4: Python | Ogres Too Strong Level Help 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:

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

4 posts - 4 participants

Read full topic

]]>
https://discourse.codecombat.com/t/cloudrip-brawl-4-python-ogres-too-strong/41201 Fri, 30 Jan 2026 19:58:38 +0000 No Yes No discourse.codecombat.com-topic-41201 Cloudrip Brawl 4: Python | Ogres Too Strong
Is discourse revived now? Uncategorized probably I guess thanks to @tacocat24

7 posts - 4 participants

Read full topic

]]>
https://discourse.codecombat.com/t/is-discourse-revived-now/41198 Thu, 29 Jan 2026 12:09:02 +0000 No No No discourse.codecombat.com-topic-41198 Is discourse revived now?
Free nitro type acc I have an alt account that added to it Level Help the account is accprofile, still figuring out how to get it to change the name and password, but its

accprofile

the password is:

cars123

give me sometime tho

7 posts - 3 participants

Read full topic

]]>
https://discourse.codecombat.com/t/free-nitro-type-acc-i-have-an-alt-account-that-added-to-it/41194 Wed, 28 Jan 2026 19:06:56 +0000 No Yes No discourse.codecombat.com-topic-41194 Free nitro type acc I have an alt account that added to it
How do i detect keypresses in codecombat? Level Help ive been trying to make a lot of different projects, but most of them need keypress detection! the dumb codecombat ai doesnt want to even bat one eye at that and chatgpt gives ten different answers that never work. How do i detect keypresses in codecombat (python) gamedev levels???

for the record, this works fine:

def heroJump():
jump = game.spawnXY(“fire-trap”, 36, 30)
jump.attackDamage = 0
jump.attackRange = 1

game.on(“keydown”, heroJump)

BUT i just can’t detect a SPECIFIC key (for example, Q) so the player spawns a jump fire trap whenever they press down ANY key on the keyboard.

13 posts - 2 participants

Read full topic

]]>
https://discourse.codecombat.com/t/how-do-i-detect-keypresses-in-codecombat/41191 Sun, 25 Jan 2026 13:30:15 +0000 No No No discourse.codecombat.com-topic-41191 How do i detect keypresses in codecombat?
Need help on solar Skirmish Level Help Hi I saw somebody following me and shooting but how to like if opponent moves up,I move up too

2 posts - 2 participants

Read full topic

]]>
https://discourse.codecombat.com/t/need-help-on-solar-skirmish/41188 Wed, 21 Jan 2026 09:01:43 +0000 No No No discourse.codecombat.com-topic-41188 Need help on solar Skirmish
Why does the King's Ring even exist? Uncategorized Hey everyone,

I was looking at the stats and noticed something interesting. If you summon a Soldier for 20 gold, they can soak up 200 damage.

When I compared this to the King’s Ring, the gold-to-HP efficiency for Soldiers seems to be exactly the same. This got me thinking—if the efficiency doesn’t change, why is the King’s Ring even in the game?

1 post - 1 participant

Read full topic

]]>
https://discourse.codecombat.com/t/why-does-the-kings-ring-even-exist/41186 Mon, 19 Jan 2026 14:52:03 +0000 No No No discourse.codecombat.com-topic-41186 Why does the King's Ring even exist?
Just a chat XD idk Uncategorized hello :slight_smile:

just a chat

cause…I’m bored and friendless

4 posts - 3 participants

Read full topic

]]>
https://discourse.codecombat.com/t/just-a-chat-xd-idk/41184 Sun, 18 Jan 2026 13:20:53 +0000 No No No discourse.codecombat.com-topic-41184 Just a chat XD idk
[help!] Is there anyone who knows how to change the country? Level Help I’m from China,but it says my country is BR(Brazil)
could anyone here help me how to change it into CH(China)?

4 posts - 2 participants

Read full topic

]]>
https://discourse.codecombat.com/t/help-is-there-anyone-who-knows-how-to-change-the-country/41183 Sat, 17 Jan 2026 14:15:24 +0000 No No No discourse.codecombat.com-topic-41183 [help!] Is there anyone who knows how to change the country?