Bluedogs Artificial Life Simulation

Home

Bluedogs is a graphical program that simulates artificial life forms. It is a rectangular world with green food that grows and spreads. The little creatures are like bacteria. They wander around eating food, splitting off children, and dying when their energy runs out.

Each bacterium has a sequence of bytes that serve as instructions for a virtual machine. These instructions determine the behavior of the bacterium. I call the bytes the genotype. When a bacterium reproduces, its child gets a copy of its genotype with a few random mutations.

Screenshots

The simulation maintains at least 50 live creatures. If the population falls below 50, it creates new creatures with random genotypes and places them at random positions. Initially, you will see creatures that are unable to turn. They and their offspring eat rows through the food:
Bluedogs 1.2.0 screenshot 1

Suddenly, a creature is born that has the ability to turn! Its offspring explode all over the world:
Bluedogs 1.2.0 screenshot 2

They fill the planet and begin consuming every resource:
Bluedogs 1.2.0 screenshot 3

When the food is consumed, they die off:
Bluedogs 1.2.0 screenshot 4

After several such boom-and-bust cycles, the creatures that survived are those that eat slowly and reproduce less often. The simulation usually reaches a stable state, with populations fluctuating between 200 and 1000 animals, and a moderate level of food:
Bluedogs 1.2.0 screenshot 5

Usage

Run bluedogs.exe or ./bluedogs.

Each update of the simulation is called a day. Each bacterium has a chance to eat, move, and reproduce every day. Normally, the screen is drawn each day of the simulation, so you can follow the bacteria in detail. Clear the check-box to make the program redraw the screen once a second. This provides only snapshot views of the activity but allows the simulation to run much faster.

The circular graph is a view into the color chooser. Every bacterium is assigned a point in the circle. That point is translated into polar coordinates, (θ, r). The polar coordinates are then taken to be the Hue and Saturation values: H=θ, S=r. Thus, each bacterium's color is determined by its position in the circle. When a bacterium reproduces, its child is assigned a position very nearby. The result is that families of bacteria tend to have the same shade of color.

A bacterium's energy level is shown by its brightness. This is the V component of the bacterium's color. See HSV Color Space on WikiPedia.

Download

Change Log

2007-07-20 Version 1.2.0:

2007-07-14 Version 1.1.0:

2007-07-06 Version 1.0.0:

Older Versions 2003-2005:

License

Copyright © 2007 Michael Leonhard

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

(This is known as the MIT License.)

Home


Copyright © 1999-2012 Michael Leonhard