Genetic Algorithms - Nature’s Trick
A Genetic Algorithm is like how animals evolve in nature, but for our game birds! Here’s how it works:
- Start with a Team: We begin with 50 birds, each with random flying skills.
- Test Them: They try to fly through the pipes. Most crash, but a few do better.
- Pick the Best: The top birds (like the top 10) are the "winners" because they flew farther.
- Make New Birds: We mix the winners’ skills (like parents and kids) and add small random changes (mutations).
- Repeat: This makes a new "generation." Over time, they get better!
Game Connection: When "Birds Alive" hits 0, a new generation starts. The "Generation" number goes up, and the birds crash less!