So I threw together a super simple ai prototype. It’s really really basic but I think it has some nice results.
The redder a cell is the stronger it is (strength could be calculated as 3 x number of pilli + 5 x number of toxin glands, for example). When it senses a cell if that cell is less than half its strength and it is not scared then it will try and follow it and eat it. If that cell is greater than half it’s strength then it will get scared and turn away.
I am super happy if anyone wants to make a different / better system. The reason I made this is it’s super easy to implement and I think it looks really nice. You can follow the very red cells as they chase the green ones around and you can follow the greens as they try to flee from everything they see. It’s adaptive to changes in the cells too, so any cell can have it’s strength computed and fit into this system.
All feedback welcome Code in the repo.