Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 695 Bytes

README.md

File metadata and controls

13 lines (9 loc) · 695 Bytes

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