heyo, here’s the latest AI code.
Got a few new things in this one:
* memory (click on an animal and look for the little blue/green dots to see the memorised points).
* new graphs for testing. Also, a generations counter up the top, which shows what generation the animals are at (averaged).
* 2 new AI personality traits for hunt sneakiness, & hunt cautiousness. They don’t really show up that much just yet because they’re random.
* evolution of AI traits. Not entirely what we want just yet.. but it’s something. Now, a new born child will recieve AI traits based on its parents.
* changed the way animals are created. They are now created at conception, rather than birth. Giving us time to evolve their walking while they’re in the tumtum.
* added Igor’s mouse wheel code.
* Nick, added the hunting vs attacking sound that we talked about. Double check it though.
* Also.. there’s no such thing as animal.exists or animal.alive anymore. They’ve been replaced with int lifeState, where lifeState:
-1 = nonexistant.
0 = in the tummay.
1 = alive.
2 = just killed
3 = carcass.
Think that’s all.. Keep it up 😀
Ben