This is a program I made with Python and Pygame that simulates evolution and the spread of different organisms in an environment. Each square on the grid has the capacity to hold a single organism. The program will at random make two adjacent squares fight each other, and the most capable organism will take the place of the other.
Each organism has an internal formula to grade it's capability. When two organisms fight, the formula that returns the highest value is victorious. Every now and then there will be a mutation that changes the formula in some way. If this mutation is beneficial, the new organism will spread throughout the environment and conquer it's predecessor.
This is a simulation of a 100 by 100 grid at 5fps, sped up 12x for your viewing pleasure. Here is the source code that should work in most versions of python with pygame installed:
http://pastie.org/2816410
Inspired by a talk by Christoph Adami, on making artificial life systems:
http://www.ted.com/talks/lang/eng/christophe_adami_finding_life_we_can_t_imag...
Thanks for watching!
bravo!
TremulousForever 3 months ago
this is amazing
Slapchop21 3 months ago
Cool! I actually have to do something somewhat similar to this for a class I'm taking.
billymcguffin 3 months ago
That's pretty damn cool.
thelolipopman93 3 months ago