Skip to content

A demonstration of a genetic algorithm teaching python turtles how to walk

Notifications You must be signed in to change notification settings

ericrosenbrown/GeneticAlgorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GeneticAlgorithm

This is a project I made to demonstrate a genetic algorithm in python. This project simulates different generation of turtles, whose goal is to get away from the center as quickly as possible. At first the turtles have random genes, causing them to move around the center mostly. Here is an example picture of the turtles after the first generationi

Alt text

They don't really move too far. After some breeding and dropping out of the worst turtles, after several generations, we get turtles that are moving away from the middle.

Alt text

In order to run this program, simply run

python evolve.py

About

A demonstration of a genetic algorithm teaching python turtles how to walk

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages