python: create art with xturtle, random, and genetic_algorithm, part 4 (English) [ID:617] (4/4)

in series: Python: create art with xturtle, random and genetic_algorithm (English)

video tutorial by felix schaber and Horst Jens, added 04/08

(Showmedo is undergoing major changes. To report any problems viewing the videos please email us and include browser and OS specifics. Cheers - Kyran.)

Felix has now a working progotype of a program that makes xturtle patterns and improve those patterns based on hte patterns that get most votes from the user.

By using (simple) Genetic_algorithm code, each pattern can pass sequences of "DNA" (tuples with xturtle-commands) to the "Child" pattern of the next generation. If the population maximum is reached, old (and ugly) patterns "die" to make room for younger -hopefully more pretty- "child" patterns.

While the program runs, the user(s) should express their opinion about the pattern by pressing the function keys several times. (F1 for ugly pattern, F8 for fantastic pretty pattern, F2 until F7 for in-between).

The program is best suited for run in a public spot with lots of users.

The program will run until the key "q" is pressed.

This video is licensed under the creative commons BY NC SA license.

To try out what Felix show you, you need those programs:



You maybe also want to use the code editor Geany like Felix does at the end of this video tutorial.

The whole script can be found in the showmedo wiki.

Got any questions?

Get answers in the ShowMeDo Learners Google Group.

Video statistics:

  • Video's rank shown in the most popular listing
  • Video plays: 8 (since July 30th)
  • Plays in last week: 1
  • Published: 101 months ago

Thank-yous, questions and comments

If this video tutorial was helpful please take some time to say thank-you to the authors for their hard work. Feel free to ask questions. Let the author know why their video tutorial was useful - what are you learning about? Did the video tutorial save you time? Would you like to see more?

You may also want to see our ShowMeDo Google Group to speak to our active users and authors.

Your email address will not be published.

Show some quick comments >>

All comments excluding tick-boxed quick-comments

5. anonymous Mon, 23 Nov 2009 09:31

GA mentioned but not illustrated or explained.

This was unstatisfactory.

4. anonymous Wed, 30 Sep 2009 13:19

Wow, fantastic, in my country we have several educational deficiency, this help me to grow up, sorry, I have a bad english

3. anonymous Sat, 11 Jul 2009 07:12

Great work!!!

Your video has been edited. This is an automatic post by ShowMeDo.

Video published, thanks for contributing to ShowMeDo

Showmedo is a peer-produced video-tutorials and screencasts site for free and open-source software (FOSS)- with the exception of some club videos, the large majority are free to watch and download.

how to help » about » faq »

Educating the Open-source Community With Showmedo

Although as important as the software it supports, education and documentation are relatively neglected in the Open-source world. Coders love to code, and explaining how best to use or improve the software tends to be deferred or even sidelined.

At Showmedo we believe the community can play a vital role here and also say thanks for the tools and software that make our lives easier. If you have a piece of software you love or a programming langugage you are enthusiastic about, why not make a screencast showing others how to use it? All the stuff you wish you'd been told, the tips, tricks, insights that would have saved you time and frustration.

Screencasting is easier than you think, and we're happy to help you. You can emailus for advice or just use some of the how-to screencasts on the site. This screencasting learning-pathis a good place to start.



Showmedo's development is fairly rapid and bugs will inevitably creep in. If you have any problems please drop us a line using the contact address below. Likewise, any suggestions for improvements to the site are gratefully received.