Create an artificial life environment.
You should have at least three types of agents:
Herbivore, Carnivore, Plant
Plants are not moving.
Herbivore eats plants and carnivore eats herbivore.
Each herbivore and carnivore reproduce on a neighbor cell if:
1. They have enough energy
2. They are in a certain age
3. They can find a free cell
Plants can reproduce like carnivore and herbivore or they may reproduce by random in different locations.
All creators have energy, maximum life and age.
Movement, reproduction and hunting will reduce the energy.
Energy consumption should be by a random distance from a mean.
Your program should be object oriented and it should have subclass and super class.
You may start using the code of artificial agent program.
Your program should run for certain numbers of iterations that is the input. Your program originally prints everything on the screen on different iterations, after sometimes you go to GUI on discrete system, then GUI on continues system.