Who wants to play clash royale?

I made a clash royale style game and would appreciate it if you would try it out.:smiley: CodeCombat - Coding games to learn Python and JavaScript
The link to the ladder is here. CodeCombat - Coding games to learn Python and JavaScript

1 Like

Got ranger grant 9307 to try it and he luvs it. Hahahaha

1 Like

@I_Luv_Clash_Royale Welcome! I have a question. Do you like chess? There is a chess topic!

Yeah I like Chess… Do you play clash royale? Try out my multiplayer game if you did!

1 Like

No sorry. But here is the Chess topic!

Ok… I will try that out… thanks…

1 Like

If you are on Chess.com, my username is Fierybishop, you can friend me…

1 Like

Ok I am but we should talk about it in chess topic instead of here. My username is Ninjaboy1122.

1 Like

Ok. Please try out my clash royale game tho!

1 Like

I would… except I don’t do CoCo anymore. :frowning:

1 Like

Oh… but you can still play against simple cpu! And it’s like zero sun. You automatically have pender spell-bane and some decent gear to play.

1 Like

I really like it!


tried it without login in my account. I think the princesses and the kings can be a bit smaller and the top enemies completely visible. The level is great!
missing : default code for javascript based on your python code

while (true){
    rich();
    summon();
    command();
}    
        
function rich(){
    let item = hero.findNearestItem();
    if (item){
        hero.say("I should get coins!")
    }    
}        
function command(){
    let friends = hero.findFriends();
    for (let i = 0, len = friends.length; i < len; ++i  ){
        let friend = friends[i];
        if (friend.type =="soldier"){
            hero.say("I should command soldiers!")
        }    
    }        
}            
function summon(){
    if (hero.gold > hero.costOf("soldier")){
        hero.say("I should summon soldiers!");
    }          
}

изображение
button doesn’t work and no real representation of the Ladder


Spectate button works!
:+1: :+1: :+1: for the job done :clap:

2 Likes

Thank you so much for your kind words! I will do that.Thank you so much fro javascript sampke code!

1 Like

Oh and YOU were anomynoudss!Plaes play again, i have made the game so much better.

1 Like

hmm nice level but the only code I needed was my modified zero-sum code
code:

# You can summon witches with hero.summon("witch"), headhunters with hero.summon("barbarian"), brawlers with hero.summon("tank"), shamans, with hero.summon("buffer"), and you can summon soldiers, archers, griffin-riders, paladins, and artillery normally. Example for summoning archer: hero.summon("archer")
hero.moveXY(30, 88)
hero.cast("haste", self)
while True:
    enemies = hero.findEnemies()
    nearestEnemy = hero.findNearest(enemies)
    
    # Your hero can collect coins and summon troops.
    if hero.gold > hero.costOf("soldier"):
        hero.summon("soldier")
    # She also commands your allies in battle.
    friends = hero.findFriends()
    enemies = hero.findEnemies()
    for friend in friends:
        friends = hero.findFriends()
        if friend.type == "soldier":
            hero.command(friend, "attack", friend.findNearest(enemies))
    
    # Use your hero's abilities to turn the tide.
    item = hero.findNearestItem()
    if item:
        item = hero.findNearestItem()
        hero.move(item.pos)

It’s multiplayer. Any code is accepted. Try to beat other players!

1 Like

Hello and welcome to codecombat discourse! This is a cozy forum where you can share ideas, share fan art, get assistance for code, etc! Before you proceed, we hope that you review this topic, which shows all essentials of this board! Thanks!

I’m thinking that was a little unnecessary @RangerGrant9307.

1 Like