Skip to content

Simulates evolution of a population of virtual stick creatures. They learn to climb using a genetic algorithm. Uses pygame for graphics

License

Notifications You must be signed in to change notification settings

aboratino/stick-creatures-climbers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stick-creatures-climbers

Simulates evolution of a population of virtual stick creatures.
They learn to climb using a genetic algorithm / evolutionary algorithm.

Example video on Youtube: https://www.youtube.com/watch?v=XqUoxJUXihs

Uses pygame for graphics.

Each stick creature consists of the following:

  • A given number of segments that independently swing back and forth.
  • A head, represented by a larger green dot.
  • A tail end, represented by a smaller green dot.
  • A white halo that appears around the head of the 'winner'.

In this scheme, 'breeding' occurs at static intervals. Whichever creature has come closest to the top of the screen is the winner, or stud. The winner then breeds with the rest of the population.

Breeding consists of averaging out the rotation and rotation rates of each segment of each creature with the stud. In addition there is a chance to mutate the rotation rate by a small amount.

Anthony Boratino 2013-1019

About

Simulates evolution of a population of virtual stick creatures. They learn to climb using a genetic algorithm. Uses pygame for graphics

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages