Put the Mandelbrot sample in the README

This commit is contained in:
Eli Bendersky 2015-02-08 03:47:24 -08:00
commit b280d52fed

View file

@ -44,3 +44,48 @@ Testing
Some of the files have unit test classes in them. To run all unit tests::
$ python3.4 -m unittest discover -p "*.py"
The most interesting program written in Kaleidoscope is the Mandelbrot set generator in chapter 6:
.. sourcecode::
$ python3.4 chapter6.py
****************************************************************
****************************************************************
****************************************++++++******************
************************************+++++...++++++**************
*********************************++++++++.. ...+++++************
*******************************++++++++++.. ..+++++***********
******************************++++++++++. ..++++++**********
****************************+++++++++.... ..++++++*********
**************************++++++++....... .....++++********
*************************++++++++. . ... .++*******
***********************++++++++... ++*******
*********************+++++++++.... .+++******
******************+++..+++++.... ..+++*****
**************++++++. .......... +++*****
***********++++++++.. .. .++*****
*********++++++++++... .++++****
********++++++++++.. .++++****
*******++++++..... ..++++****
*******+........ ...++++****
*******+... .... ...++++****
*******+++++...... ..++++****
*******++++++++++... .++++****
*********++++++++++... ++++****
**********+++++++++.. .. ..++*****
*************++++++.. .......... +++*****
******************+++...+++..... ..+++*****
*********************+++++++++.... ..++******
***********************++++++++... +++******
*************************+++++++.. . ... .++*******
**************************++++++++....... ......+++********
****************************+++++++++.... ..++++++*********
*****************************++++++++++.. ..++++++**********
*******************************++++++++++.. ...+++++***********
*********************************++++++++.. ...+++++************
***********************************++++++....+++++**************
***************************************++++++++*****************
****************************************************************
****************************************************************