# Feature Request: Access previously written code without loading the level

**URL:** <https://discourse.codecombat.com/t/feature-request-access-previously-written-code-without-loading-the-level/2188>\
**Category:** Uncategorized\
**Created:** [January 3, 2015, 9:52pm UTC](https://discourse.codecombat.com/t/feature-request-access-previously-written-code-without-loading-the-level/2188 "2015-01-03T21:52:58Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![sotonin](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/sotonin/32/24089_2.png) [@sotonin](https://discourse.codecombat.com/u/sotonin)\
**Post date:** [January 3, 2015, 9:52pm UTC](https://discourse.codecombat.com/t/feature-request-access-previously-written-code-without-loading-the-level/2188/1 "2015-01-03T21:52:59Z")

</div>

It would be really useful to have a page that simply lists all of the levels you have played and lets you click one and see the currently active code for that level. (Without the actual game being there). Sometimes when people ask for help on the forums, etc i go back to my level and look at it to refresh my memory on how i did it.

Kind of sucks to have to go to the level wait for it to load then click play etc .

Just a nice to have!

_afterthought, a code repository would be nifty as well. built into the game where you can “save” some code there and reference it later… not tied directly to your active code… that way you can toy with it at will and then just reload it from your repo_

---

<div class="post-metadata">

**Author:** ![Feinty](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/feinty/32/1869_2.png) [@Feinty](https://discourse.codecombat.com/u/Feinty)\
**Post date:** [January 3, 2015, 10:54pm UTC](https://discourse.codecombat.com/t/feature-request-access-previously-written-code-without-loading-the-level/2188/2 "2015-01-03T22:54:22Z")

</div>

I like this idea as well

---

<div class="post-metadata">

**Author:** ![Rytrik](https://avatars.discourse-cdn.com/v4/letter/r/3e96dc/32.png) [@Rytrik](https://discourse.codecombat.com/u/Rytrik)\
**Post date:** [January 3, 2015, 11:58pm UTC](https://discourse.codecombat.com/t/feature-request-access-previously-written-code-without-loading-the-level/2188/3 "2015-01-03T23:58:33Z")

</div>

I also like this idea.

---

<div class="post-metadata">

**Author:** ![J\_F\_B\_M](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/j_f_b_m/32/2756_2.png) [@J\_F\_B\_M](https://discourse.codecombat.com/u/J_F_B_M)\
**Post date:** [January 4, 2015, 12:30pm UTC](https://discourse.codecombat.com/t/feature-request-access-previously-written-code-without-loading-the-level/2188/4 "2015-01-04T12:30:58Z")

</div>

> [@Feinty](#):
>
> I like this idea as well

> [@Rytrik](#):
>
> I also like this idea.

If you like the idea, then like the post (the little heart directly below the text).

---

<div class="post-metadata">

**Author:** ![Rytrik](https://avatars.discourse-cdn.com/v4/letter/r/3e96dc/32.png) [@Rytrik](https://discourse.codecombat.com/u/Rytrik)\
**Post date:** [January 4, 2015, 4:39pm UTC](https://discourse.codecombat.com/t/feature-request-access-previously-written-code-without-loading-the-level/2188/5 "2015-01-04T16:39:51Z")

</div>

I liked this post yesterday 😉

Done and done!

---

<div class="post-metadata">

**Author:** ![nick](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/nick/32/784_2.png) [@nick](https://discourse.codecombat.com/u/nick)\
**Post date:** [January 4, 2015, 6:01pm UTC](https://discourse.codecombat.com/t/feature-request-access-previously-written-code-without-loading-the-level/2188/6 "2015-01-04T18:01:20Z")

</div>

We could create a CodeModal and start attaching it to places like the world map and your user profile. Actually, it’s on our list to make it easy to browse other players’ solutions after the fact, and we could put yours in there, and you could see it that way. Yeah, that’ll go nicely with this feature.

---

<div class="post-metadata">

**Author:** ![Rytrik](https://avatars.discourse-cdn.com/v4/letter/r/3e96dc/32.png) [@Rytrik](https://discourse.codecombat.com/u/Rytrik)\
**Post date:** [February 24, 2015, 8:13pm UTC](https://discourse.codecombat.com/t/feature-request-access-previously-written-code-without-loading-the-level/2188/7 "2015-02-24T20:13:23Z")

</div>

Love it! 🙂 That sounds like a fantastic feature addition! Many benefits!

---

<div class="post-metadata">

**Author:** ![Vlevo](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/vlevo/32/2074_2.png) [@Vlevo](https://discourse.codecombat.com/u/Vlevo)\
**Post date:** [February 25, 2015, 5:17am UTC](https://discourse.codecombat.com/t/feature-request-access-previously-written-code-without-loading-the-level/2188/8 "2015-02-25T05:17:03Z")

</div>

I love the idea of being able to reference my own code (currently I cut and paste it into a file on my computer – not so great when I’m at a different computer)

I don’t like the idea of other people seeing my sucky code.

We can already look at peoples “competitive” code (the repeatables - I don’t like it) not all of that is “coding” some is creative thinking. I can understand the idea of code sharing as a form of learning, but as is said over and over on the forums. to paraphrase, “we don’t just give the solution, we ask people to tell the problem and what they expect and we explain…” (or something to that effect.)

So code for “regular” levels -after- solving it, that could be good. (unless they are looking at my code - it would need a don’t code like this warning)

Code for the “competitive” levels not the same . . . the feature where you can watch the other peoples solutions is awesome, makes you think – wow, how did they do that . . . oh! hmm, maybe like so – then you go try to do it. Then you are “thinking about solutions” (as the one quote says) and not just being a script kiddie.

---

<div class="post-metadata">

**Author:** ![kewlboy1212](https://avatars.discourse-cdn.com/v4/letter/k/3ec8ea/32.png) [@kewlboy1212](https://discourse.codecombat.com/u/kewlboy1212)\
**Post date:** [February 26, 2015, 2:30am UTC](https://discourse.codecombat.com/t/feature-request-access-previously-written-code-without-loading-the-level/2188/9 "2015-02-26T02:30:38Z")

</div>

doesn’t sound bad at all really, I think it’s a great idea in every way. 😆

---

<div class="post-metadata">

**Author:** ![Feinty](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/feinty/32/1869_2.png) [@Feinty](https://discourse.codecombat.com/u/Feinty)\
**Post date:** [February 26, 2015, 3:37am UTC](https://discourse.codecombat.com/t/feature-request-access-previously-written-code-without-loading-the-level/2188/10 "2015-02-26T03:37:35Z")

</div>

Maybe you have a code bank and you could choose the code other people could see

---

<div class="post-metadata">

**Author:** ![keeper0](https://avatars.discourse-cdn.com/v4/letter/k/b19c9b/32.png) [@keeper0](https://discourse.codecombat.com/u/keeper0)\
**Post date:** [August 3, 2015, 6:14pm UTC](https://discourse.codecombat.com/t/feature-request-access-previously-written-code-without-loading-the-level/2188/11 "2015-08-03T18:14:55Z")

</div>

I created a Forum account just to post this idea!

It is great to see that someone has already suggested it. As the levels have gotten more complex, I am reusing a lot of code from previous levels (such as “grab coins as fast as possible”). It would be fantastic to be able to read my previous code without having to load the graphics of the previous level.

Thank you!

P.S. Could we retitle this thread to “Feature Request: Access previously written code without loading the level” to get more participation?

---

<div class="post-metadata">

**Author:** ![Chirpizard](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/chirpizard/32/2952_2.png) [@Chirpizard](https://discourse.codecombat.com/u/Chirpizard)\
**Post date:** [August 20, 2015, 1:22am UTC](https://discourse.codecombat.com/t/feature-request-access-previously-written-code-without-loading-the-level/2188/12 "2015-08-20T01:22:09Z")

</div>

This is, indeed, a great idea! I had the same thought in the second world when needing to review some of the code snippets for placing and retrieving flags.

---

<div class="post-metadata">

**Author:** ![Gruntld](https://avatars.discourse-cdn.com/v4/letter/g/dbc845/32.png) [@Gruntld](https://discourse.codecombat.com/u/Gruntld)\
**Post date:** [October 1, 2015, 6:58pm UTC](https://discourse.codecombat.com/t/feature-request-access-previously-written-code-without-loading-the-level/2188/13 "2015-10-01T18:58:35Z")

</div>

I copy and paste my code to NotePad++  
and save it to text files in a folder I called Code Combat in my Documents folder  
I do versioning too for each level as I’m always trying different solutions for each level.  
I name each file by the level’s name and add the version number to the end.

But if you can bring all this into the platform then WooHoo!  
=)

---

<div class="post-metadata">

**Author:** ![Arunabha\_Sarkar](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/arunabha_sarkar/32/3019_2.png) [@Arunabha\_Sarkar](https://discourse.codecombat.com/u/Arunabha_Sarkar)\
**Post date:** [October 1, 2015, 9:27pm UTC](https://discourse.codecombat.com/t/feature-request-access-previously-written-code-without-loading-the-level/2188/14 "2015-10-01T21:27:04Z")

</div>

Hi,

I was thinking to start a post for starting a code repository. My suggested name: CODEBOOK.

This can be used by us to store functions. That way, we won’t have to write simple codes like finding best coin for every level every time or command archers to fight nearest enemy, etc. The CODEBOOK icon should appear when the gameplay is on so the that we can copy paste functions from it to our level code easily. An index for this CODEBOOK and pages (like in powerpoint/word style) will be helpful. @nick , @J_F_B_M - any hope?

Cheers

---

<div class="post-metadata">

**Author:** ![J\_F\_B\_M](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/j_f_b_m/32/2756_2.png) [@J\_F\_B\_M](https://discourse.codecombat.com/u/J_F_B_M)\
**Post date:** [October 2, 2015, 10:55am UTC](https://discourse.codecombat.com/t/feature-request-access-previously-written-code-without-loading-the-level/2188/15 "2015-10-02T10:55:09Z")

</div>

> [@nick](#):
>
> We could create a CodeModal and start attaching it to places like the world map and your user profile. Actually, it’s on our list to make it easy to browse other players’ solutions after the fact, and we could put yours in there, and you could see it that way. Yeah, that’ll go nicely with this feature.

Nothing more given than that. Don’t expect anything before the tournament (and its aftermath, the hiring) is over though. It’s still on the list, but not as simple to realize (the campaign-view has to tap in the level-view, the whole thing reversed, …)

---

<div class="post-metadata">

**Author:** ![lepidopteralady](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/lepidopteralady/32/9140_2.png) [@lepidopteralady](https://discourse.codecombat.com/u/lepidopteralady)\
**Post date:** [November 30, 2015, 3:18pm UTC](https://discourse.codecombat.com/t/feature-request-access-previously-written-code-without-loading-the-level/2188/16 "2015-11-30T15:18:34Z")

</div>

Roleplaying games sometimes have journals. Previously written and successful code snippets could be a person’s journal for this game.

---

<div class="post-metadata">

**Author:** ![dragon788](https://avatars.discourse-cdn.com/v4/letter/d/a88e57/32.png) [@dragon788](https://discourse.codecombat.com/u/dragon788)\
**Post date:** [April 9, 2016, 12:57am UTC](https://discourse.codecombat.com/t/feature-request-access-previously-written-code-without-loading-the-level/2188/17 "2016-04-09T00:57:42Z")

</div>

I would love to see this as well. Hackerrank does a really interesting thing with allowing you to “fork” your code within the text editor. It keeps a read only version of a point in time (you had a solution or were on one track, but you want to try something different) so you can see all your prior attempts where you forked, but they are read only and only the latest code is editable. This might tie in nicely as well.

---

<div class="post-metadata">

**Author:** ![CryogenicMiner](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/cryogenicminer/32/3985_2.png) [@CryogenicMiner](https://discourse.codecombat.com/u/CryogenicMiner)\
**Post date:** [April 20, 2016, 7:01pm UTC](https://discourse.codecombat.com/t/feature-request-access-previously-written-code-without-loading-the-level/2188/18 "2016-04-20T19:01:48Z")

</div>

Creating functions for my self is the best way to quickly and efficiently get through levels. There is (as I see it) no good reason to type the same attacking function when it is identical, and repetitive. I look forward to this feature addition. Thanks to the Dev Team.
