O'Reilly logo

Genetic Algorithms and Machine Learning for Programmers by Frances Buontempo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 8Alive! Create Artificial Life

In the previous chapter, you made an abstract bee colony and used a fitness function to guide the bees’ movement. The bees remembered the best places they had visited, and they communicated these places with the other bees by performing a waggle dance. This encoded information-sharing between agents, encouraging them to learn. In the end, the bees swarmed out of the paper bag when they all found food outside.

Now, imagine cells on a grid, some of which are in a paper bag. If a cell gets crowded, it dies; however, when certain conditions are met, a cell remains alive or even comes to life. These live cells can form a stable shape, or cycle through states, making patterns. You’ll see this as you play with ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required