Recently finished a side project where I simulated a stable 3-tier ‘ecosystem’ of plants, herbivores and carnivores in pygame. Herbivores eat plants and carnivores eat herbivores in stable phases, in line with Lotka Voterra equations, but with added spatiality. You can read about it on my GitHub