# Frozen Fortress/Equinox tips, tricks, and chat

**URL:** <https://discourse.codecombat.com/t/frozen-fortress-equinox-tips-tricks-and-chat/34732>\
**Category:** AILeague\
**Created:** [January 13, 2023, 12:16am UTC](https://discourse.codecombat.com/t/frozen-fortress-equinox-tips-tricks-and-chat/34732 "2023-01-13T00:16:24Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jacob\_Thomas](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/jacob_thomas/32/32737_2.png) [@Jacob\_Thomas](https://discourse.codecombat.com/u/Jacob_Thomas)\
**Post date:** [January 13, 2023, 12:16am UTC](https://discourse.codecombat.com/t/frozen-fortress-equinox-tips-tricks-and-chat/34732/1 "2023-01-13T00:16:24Z")

</div>

If you have any tips, tricks or something cool to show about frozen fortress, put it here. 😄

---

<div class="post-metadata">

**Author:** ![Jacob\_Thomas](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/jacob_thomas/32/32737_2.png) [@Jacob\_Thomas](https://discourse.codecombat.com/u/Jacob_Thomas)\
**Post date:** [January 13, 2023, 12:20am UTC](https://discourse.codecombat.com/t/frozen-fortress-equinox-tips-tricks-and-chat/34732/2 "2023-01-13T00:20:57Z")

</div>

Make all your towers farms, use `hero.command("shock wave")` and `hero.command("summon", 100)` to attack. ( 100 is an example number, you can summon more 🙂 )

---

<div class="post-metadata">

**Author:** ![moonwatcher348](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/moonwatcher348/32/24126_2.png) [@moonwatcher348](https://discourse.codecombat.com/u/moonwatcher348)\
**Post date:** [January 13, 2023, 11:49pm UTC](https://discourse.codecombat.com/t/frozen-fortress-equinox-tips-tricks-and-chat/34732/3 "2023-01-13T23:49:50Z")

</div>

Use this for easy upgrading & managing towers (I haven’t gotten to summoning yet, so ima just post this for now)

```javascript
const allsquares = 'abcdefgh';
const tower = {
    a: {name: 'none', level: 0}, 
    b: {name: 'none', level: 0}, 
    c: {name: 'none', level: 0}, 
    d: {name: 'none', level: 0}, 
    e: {name: 'none', level: 0}, 
    f: {name: 'none', level: 0}, 
    g: {name: 'none', level: 0}, 
    h: {name: 'none', level: 0}
};
const build = (t, s) => {
    if (s.length > 1) {
        let letters = s.split('');
        for (let letter of letters) build(t, letter);
        return;
    }
    hero.build(t, s);
    tower[s].name = t;
    tower[s].level = tower[s].level + 1;
};
const towers = (start, end) => {
    start = (start + 0 === start + '0') ? allsquares.indexOf(start) : start;
    end = (end + 0 === end + '0') ? (allsquares.indexOf(end) + 2) : end;
    let returnVar = [];
    for (let i = start; i < end; i++) returnVar.push(tower[allsquares.charAt(i)]);
    return returnVar;
}
const squares = (start, end) => {
    start = (start + 0 === start + '0') ? allsquares.indexOf(start) : start;
    end = (end + 0 === end + '0') ? (allsquares.indexOf(end) + 2) : end;
    return allsquares.substring(start, end - start);
};
function upgrade (...args) {
    args = args.length > 1 ? args : args[0].split('');
    for (let s of args) build(tower[s].name, s);
}

```

information you need to use the code (because most of you probably don’t understand this code xD):

1. the squares function has 2 ways it can be used: `squares('a', 'd')`, `squares(0, 4)` (both return `'abcd'`)

2. the towers function also has 2 ways it can be used: `towers('a', 'd')`, `towers(0, 4)` (both, ofc, return the same thing: 4 objects with name and level in order)

3. upgrade ALSO has 2 ways it can be used: `upgrade('abcd')`, `upgrade('a', 'b', 'c', 'd')`

4. build **ALSO** has 2 ways it can be used (okay, pretty much all of them have 2 ways they can be used): `build('farm', 'a')`, `build('farm', 'abcd')` (they don’t do the same thing, but you probably already know what both do so ima just keeps my hands on my arms, thanks lol)

5. the `tower` array is accessed using `tower[squareLetter].name` or `tower[squareLetter].level`

Also btw, don’t use `hero.build` with these functions because it can’t read tower level and it needs the normal `build` to do that

Lol I wrote a literal essay in the points earlier but decided it would be too long so I shortened it (still pretty long), PM me about any issues or questions pls (oh and also tell me if you use it pls because it makes me happy :\>)

No it’s not cheating if you use it, it’s called “using functions that should be in-built” lol

---

<div class="post-metadata">

**Author:** ![moonwatcher348](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/moonwatcher348/32/24126_2.png) [@moonwatcher348](https://discourse.codecombat.com/u/moonwatcher348)\
**Post date:** [January 13, 2023, 11:50pm UTC](https://discourse.codecombat.com/t/frozen-fortress-equinox-tips-tricks-and-chat/34732/4 "2023-01-13T23:50:25Z")

</div>

Now that I look at it, it looks like an essay lol

---

<div class="post-metadata">

**Author:** ![TheCodingCrusader22](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/thecodingcrusader22/32/46084_2.png) [@TheCodingCrusader22](https://discourse.codecombat.com/u/TheCodingCrusader22)\
**Post date:** [January 14, 2023, 12:29am UTC](https://discourse.codecombat.com/t/frozen-fortress-equinox-tips-tricks-and-chat/34732/5 "2023-01-14T00:29:54Z")

</div>

can you make a python versian

---

<div class="post-metadata">

**Author:** ![moonwatcher348](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/moonwatcher348/32/24126_2.png) [@moonwatcher348](https://discourse.codecombat.com/u/moonwatcher348)\
**Post date:** [January 14, 2023, 12:32am UTC](https://discourse.codecombat.com/t/frozen-fortress-equinox-tips-tricks-and-chat/34732/6 "2023-01-14T00:32:31Z")

</div>

Lol I completely forgot about Python, maybe later

---

<div class="post-metadata">

**Author:** ![TheCodingCrusader22](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/thecodingcrusader22/32/46084_2.png) [@TheCodingCrusader22](https://discourse.codecombat.com/u/TheCodingCrusader22)\
**Post date:** [January 14, 2023, 12:34am UTC](https://discourse.codecombat.com/t/frozen-fortress-equinox-tips-tricks-and-chat/34732/7 "2023-01-14T00:34:14Z")

</div>

ok i don’t need it i was just wondering since i do not use javascript exept when i was on khan acadamy

---

<div class="post-metadata">

**Author:** ![Jacob\_Thomas](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/jacob_thomas/32/32737_2.png) [@Jacob\_Thomas](https://discourse.codecombat.com/u/Jacob_Thomas)\
**Post date:** [January 14, 2023, 9:57pm UTC](https://discourse.codecombat.com/t/frozen-fortress-equinox-tips-tricks-and-chat/34732/8 "2023-01-14T21:57:20Z")

</div>

`"shockwave"` is useful because it blows back and kills enemies.  
Use : `hero.ability("shockwave")` to make a shockwave.

---

<div class="post-metadata">

**Author:** ![Jacob\_Thomas](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/jacob_thomas/32/32737_2.png) [@Jacob\_Thomas](https://discourse.codecombat.com/u/Jacob_Thomas)\
**Post date:** [January 28, 2023, 3:29pm UTC](https://discourse.codecombat.com/t/frozen-fortress-equinox-tips-tricks-and-chat/34732/9 "2023-01-28T15:29:50Z")

</div>

I have a question: Can I regain health that I lost in frozen fortress, and if so- how can I do it?

---

<div class="post-metadata">

**Author:** ![JustALuke](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/justaluke/32/43608_2.png) [@JustALuke](https://discourse.codecombat.com/u/JustALuke)\
**Post date:** [February 1, 2023, 8:37pm UTC](https://discourse.codecombat.com/t/frozen-fortress-equinox-tips-tricks-and-chat/34732/10 "2023-02-01T20:37:12Z")

</div>

Rip #1 spot I needa update my code lol

 ![ladder](https://us1.discourse-cdn.com/flex016/uploads/codecombat/original/3X/4/d/4d1ec9bcf51d7a8510b00a853fcced097cc46f1e.jpeg)

---

<div class="post-metadata">

**Author:** ![Jacob\_Thomas](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/jacob_thomas/32/32737_2.png) [@Jacob\_Thomas](https://discourse.codecombat.com/u/Jacob_Thomas)\
**Post date:** [February 2, 2023, 2:52am UTC](https://discourse.codecombat.com/t/frozen-fortress-equinox-tips-tricks-and-chat/34732/11 "2023-02-02T02:52:36Z")

</div>

You’re lucky bro i’m in like 190th place 🤣

---

<div class="post-metadata">

**Author:** ![Terrell\_Williams](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/terrell_williams/32/24761_2.png) [@Terrell\_Williams](https://discourse.codecombat.com/u/Terrell_Williams)\
**Post date:** [February 23, 2023, 3:51pm UTC](https://discourse.codecombat.com/t/frozen-fortress-equinox-tips-tricks-and-chat/34732/12 "2023-02-23T15:51:40Z")

</div>

i need help i need code

---

<div class="post-metadata">

**Author:** ![Terrell\_Williams](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/terrell_williams/32/24761_2.png) [@Terrell\_Williams](https://discourse.codecombat.com/u/Terrell_Williams)\
**Post date:** [February 23, 2023, 3:54pm UTC](https://discourse.codecombat.com/t/frozen-fortress-equinox-tips-tricks-and-chat/34732/13 "2023-02-23T15:54:32Z")

</div>

I neeed python​:pleading\_face:🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺

---

<div class="post-metadata">

**Author:** ![MarmiteOnToast](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/marmiteontoast/32/46649_2.png) [@MarmiteOnToast](https://discourse.codecombat.com/u/MarmiteOnToast)\
**Post date:** [February 23, 2023, 7:40pm UTC](https://discourse.codecombat.com/t/frozen-fortress-equinox-tips-tricks-and-chat/34732/14 "2023-02-23T19:40:09Z")

</div>

Hi, @Terrell_Williams, welcome to the Discourse.  
What exactly do you need help with?

---

<div class="post-metadata">

**Author:** ![Jacob\_Thomas](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/jacob_thomas/32/32737_2.png) [@Jacob\_Thomas](https://discourse.codecombat.com/u/Jacob_Thomas)\
**Post date:** [February 23, 2023, 8:03pm UTC](https://discourse.codecombat.com/t/frozen-fortress-equinox-tips-tricks-and-chat/34732/15 "2023-02-23T20:03:05Z")

</div>

I think Terrel\_Williams needs the python version of the code that moonwatcher348 posted.

---

<div class="post-metadata">

**Author:** ![MarmiteOnToast](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/marmiteontoast/32/46649_2.png) [@MarmiteOnToast](https://discourse.codecombat.com/u/MarmiteOnToast)\
**Post date:** [February 23, 2023, 8:05pm UTC](https://discourse.codecombat.com/t/frozen-fortress-equinox-tips-tricks-and-chat/34732/16 "2023-02-23T20:05:00Z")

</div>

Ah, ok, I’ll work on it.  
Should be ready by… Wednesday next week at the latest (I won’t be available this weekend.)

---

<div class="post-metadata">

**Author:** ![Jacob\_Thomas](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/jacob_thomas/32/32737_2.png) [@Jacob\_Thomas](https://discourse.codecombat.com/u/Jacob_Thomas)\
**Post date:** [February 23, 2023, 8:30pm UTC](https://discourse.codecombat.com/t/frozen-fortress-equinox-tips-tricks-and-chat/34732/17 "2023-02-23T20:30:10Z")

</div>

I have been using tower.level for so long and now it says it is an error

 ![Screenshot 2023-02-23 3.28.32 PM](https://us1.discourse-cdn.com/flex016/uploads/codecombat/original/3X/7/1/71599b075ea9194b816fc3f9cbbe2cf7571ceaf9.png)

![Screenshot 2023-02-23 3.29.53 PM](https://us1.discourse-cdn.com/flex016/uploads/codecombat/original/3X/5/e/5e694140902f3836335825cee205a03520c7eb5c.png)

---

<div class="post-metadata">

**Author:** ![Jacob\_Thomas](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/jacob_thomas/32/32737_2.png) [@Jacob\_Thomas](https://discourse.codecombat.com/u/Jacob_Thomas)\
**Post date:** [February 23, 2023, 9:18pm UTC](https://discourse.codecombat.com/t/frozen-fortress-equinox-tips-tricks-and-chat/34732/18 "2023-02-23T21:18:15Z")

</div>

I figured it out, but when I made my new code and used hero.sell to sell e and f it didn’t sell.

---

<div class="post-metadata">

**Author:** ![Evgeny\_Yashin](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/evgeny_yashin/32/13523_2.png) [@Evgeny\_Yashin](https://discourse.codecombat.com/u/Evgeny_Yashin)\
**Post date:** [February 24, 2023, 6:23am UTC](https://discourse.codecombat.com/t/frozen-fortress-equinox-tips-tricks-and-chat/34732/19 "2023-02-24T06:23:30Z")

</div>

@Jacob_Thomas, better hide the code, People might copy it,

And I have a question for you guys

Do you guys know when the Codecombat Frozen Fortress Ends?

---

<div class="post-metadata">

**Author:** ![Aya](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/aya/32/42680_2.png) [@Aya](https://discourse.codecombat.com/u/Aya)\
**Post date:** [February 24, 2023, 8:57am UTC](https://discourse.codecombat.com/t/frozen-fortress-equinox-tips-tricks-and-chat/34732/20 "2023-02-24T08:57:35Z")

</div>

> **[CodeCombat - Coding games to learn Python and JavaScript](https://codecombat.com/league)**
>
> Learn typed code through a programming game. Learn Python, JavaScript, and HTML as you solve puzzles and learn to make your own coding games and websites.

this link has all the dates

the final competition for this season is April

[Next page](https://discourse.codecombat.com/t/frozen-fortress-equinox-tips-tricks-and-chat/34732.md?page=2)
