Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles

Evolution

Create creatures and let them evolve to see how they master various tasks. · By Keiwan

Fitness drops between generations

A topic by notaguest created Sep 18, 2017 Views: 419 Replies: 4
Viewing posts 1 to 5

I made a nice little thing, called it doggo and let it run. It didn't do amazing, in generation 5 it has a fitness of 20.28%. But then in generation 6 the fitness dropped to  19.43%. In the options I have selected to keep the best creatures for the next generation. As the input stays the same it should do at least as good as the generation before or improve in performence, right?

Am I missing something here?

Developer

As long as the fitness change isn't too big I'd say things are going as to be expected. 

The "Keep the best creatures" options means that the next generation will always contain the chromosome of the best performing creature of the previous generation without any crossover or mutation. Because the creature movements are based on many different factors, it is very hard (if not impossible) to guarantee that the same creature with the same brain will behave identically to its last run. 

Even very small changes in one of the inputs or outputs can sometimes cause a fairly big difference in the behaviour you see. The difference between landing a jump in a recoverable and smooth way and tipping over can sometimes be the difference between extending one of the muscles to 53% or 54%. This is also why you can watch a creature that has a seemingly perfect strategy of moving its limbs in a steady and repeating pattern trip up after some time before then recovering and going back to its routine. Sometimes they also can't recover a little fall like this because their brains are only optimized to work with that one steady pattern. If anything slightly changes, the brain might not be able to react to it properly and instead only cause everything to get worse. 

Your creature might have gotten lucky in the previous run or it might have simply gotten unlucky in the following run. Either way, as long as the performance doesn't just rapidly decrease by a lot, things don't seem to be broken.

By the way, a fitness of 20% in generation 5 is pretty great if you ask me. A running fitness of 100% is ridiculously difficult to reach, as long as you don't use the glitch of connecting multiple body sections only through muscles instead of bones (And reaching 100% with a glitch really shouldn't be anything to get excited about)

(+1)

Thank you for the detailed and quick answer, very interesting stuff. I'm really enjoying the game and hope you keep working on it.

Here is my Doggo1.0 in said generation 5: https://screenpresso.com/=XPqZe 

He is a happy little fellow, but peaked at 24% effiency after 40 generations. With a few small improvements, Doggo1.4 is currently at a 32% effiency and not too bad at jumping either. What I love most about him though, is how lifelike he moves now (apart from the fact, that his hind leg is a spring ;) It's really fun to work on a creature, let it run a few generations and come back to see, how well the improvements worked.

i hav a running creature that got 100% fitness by generation 22 i am so proud

(1 edit)

my design must be really good because if 20% efficiency by gen 5 is good, 49% must be amazing

and it passed 20% fitness in generation 2