Frozen Fortress/Equinox tips, tricks, and chat

difficulties = true I’ll continue tomorrow

1 Like

Let’s go i’m 67th in frozen fortress thanks for your help guys really appreciate it also it is my 4th day of codecombat

1 Like

Good Job @Eitherspace! :tada: :tada: :tada:

Your’e the one person I can relate to, I’m the codecombat nerd in my school too:


Ye ive moved up to 58th

1 Like

Which world are you in? (CS1, CS2, CS3, CS4, CS5, CS6.)

any improvements needed:
def bigSelling():
hero.sell(“g”)
for i in range(13):
hero.build(“ice”, “g”)
hero.sell(“c”)
for i in range(26):
hero.build(“cannon”, “c”)
hero.sell(“e”)
for i in range(26):
hero.build(“cannon”, “e”)
hero.sell(“f”)
for i in range(26):
hero.build(“cannon”, “f”)
hero.sell(“b”)
for i in range(26):
hero.build(“cannon”, “b”)
hero.sell(“h”)
for i in range(26):
hero.build(“cannon”, “h”)

while True:

for i in range(13):
    hero.build("cannon", "a")
    hero.build("farm", "b")
    hero.build("farm", "c")
    hero.build("ice", "d")
    hero.build("farm", "e")
    hero.build("farm", "f")
    hero.build("farm", "g")
    hero.build("farm", "h") 
    
bigSelling()
for i in range(7):
    hero.build("cannon", "a")
    hero.build("farm", "b")
    hero.build("farm", "c")
    hero.build("ice", "d")
    hero.build("farm", "e")
    hero.build("farm", "f")
    hero.build("ice", "g")
    hero.build("farm", "h")
    
for i in range(7):
    hero.build("cannon", "a")

for i in range(100):
    hero.build("cannon", "a")
    hero.build("farm", "b")
    hero.build("cannon", "c")
    hero.build("ice", "d")
    hero.build("farm", "e")
    hero.build("farm", "f")
    hero.build("farm", "g")
    hero.build("farm", "h")
1 Like

Welcome to discourse @Sebasthecoder! :tada:
plz format all your code

like this
1 Like

ok i will format my code

1 Like
def bigSelling():
    hero.sell("g")
    for i in range(13):
        hero.build("ice", "g")
    hero.sell("c")
    for i in range(26):
        hero.build("cannon", "c")
    hero.sell("e")
    for i in range(26):
        hero.build("cannon", "e")
    hero.sell("f")
    for i in range(26):
        hero.build("cannon", "f")
    hero.sell("b")
    for i in range(26):
        hero.build("cannon", "b")
    hero.sell("h")
    for i in range(26):
        hero.build("cannon", "h")

while True:
    
    for i in range(13):
        hero.build("cannon", "a")
        hero.build("farm", "b")
        hero.build("farm", "c")
        hero.build("ice", "d")
        hero.build("farm", "e")
        hero.build("farm", "f")
        hero.build("farm", "g")
        hero.build("farm", "h") 
        
    bigSelling()
    for i in range(7):
        hero.build("cannon", "a")
        hero.build("farm", "b")
        hero.build("farm", "c")
        hero.build("ice", "d")
        hero.build("farm", "e")
        hero.build("farm", "f")
        hero.build("ice", "g")
        hero.build("farm", "h")
        
    for i in range(7):
        hero.build("cannon", "a")
    
    for i in range(100):
        hero.build("cannon", "a")
        hero.build("farm", "b")
        hero.build("cannon", "c")
        hero.build("ice", "d")
        hero.build("farm", "e")
        hero.build("farm", "f")
        hero.build("farm", "g")
        hero.build("farm", "h")
1 Like

Use shockwave, since people using rage and haste will get through your defenses quickly. You can also try using rage and haste yourself, to get through opponent defenses.

1 Like

ok how do i implement rage and haste into my code

1 Like
enemies = hero.findOpponentEnemies()

if len(enemies) > 0:
    hero.ability("rage",enemies[0])

You can use haste by just swtiching “rage” with “haste”

should i put in in my while true loop

1 Like

I usually put rage and haste into a while True loop, so yes.

I’m gonna get going now, I might be back in 3 hours.

seabas i go to ur school stemx 22-23 right

1 Like

im also in cs1 and sebas what rank are you in frozen fortress I’m 57th

1 Like

does anyone know how to use the freeze/haste/rage commands? if so please put some code in

1 Like

Yay!
#6 now! :partying_face: :partying_face: :partying_face: :partying_face: :partying_face: :partying_face:

1 Like
 while True:
        enemies = hero.findOpponentEnemies()
        
        if len (enemies) > 0:
            hero.ability("haste",enemies[0])
            hero.ability("rage",enemies[0])
1 Like