The source code of some of these programs are open-sourced to help young programmers learn.
The source code can all be found here