difficulties = true
I’ll continue tomorrow
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
Good Job @Eitherspace!
Your’e the one person I can relate to, I’m the codecombat nerd in my school too:
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")
Welcome to discourse @Sebasthecoder!
plz format all your code
like this
ok i will format my code
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")
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.
ok how do i implement rage and haste into my code
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
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
im also in cs1 and sebas what rank are you in frozen fortress I’m 57th
does anyone know how to use the freeze/haste/rage commands? if so please put some code in
Yay!
#6 now!
while True:
enemies = hero.findOpponentEnemies()
if len (enemies) > 0:
hero.ability("haste",enemies[0])
hero.ability("rage",enemies[0])