Giter Site home page Giter Site logo

aboratino / stick-creatures-climbers Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 71 KB

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

Home Page: https://www.youtube.com/watch?v=XqUoxJUXihs

License: MIT License

Python 100.00%
evolution genetic-algorithm evolution-simulation pygame python evolutionary-algorithm artificial-intelligence

stick-creatures-climbers's Introduction

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

stick-creatures-climbers's People

Contributors

aboratino avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.