Candy Box 2 source code is released under the free software GPLv3 license (free as in "freedom"). This means that you are free to:

You can get more information about this license here.

Where do I get the source code?

Candy Box 2 is written in TypeScript, a language which compiles to javascript using tsc, the TypeScript compiler. This language is published under the Apache License, which is GPL compatible.

Therefore, there are three ways to get the source code :

How do I work on the code?

The first thing to do is to download the .zip file containing everything you need : the game itself, the TypeScript files, the ascii art, the compilation scripts, and even this page!

Then, there are three steps :