Create class Carnivore,Herbivore and Plant.
Carnivore and Herbivore need energy to survive.
Carnivore eats Herbivore and Herbivore eats Plant to get energy.
Moving and reproduction consumes energy.
Carnivores and Herbivores will reproduce a newborn if they are on a certain age and certain level of energy. The child will be placed next to the parent.
The simulation environment is a 2D grid (nxn cells).
Plants grow at random time, random locations.
Herbivores and Carnivores can move to North, South, East, West.
Setup a 16 x 16 grid, initialize it by random numbers of Carnivore, Herbivore and Plants. Run it for a specific numbers of iterations (32 is the min).
Print the result for each iteration on the console.
Carnivore char: @
Herbivore char: &
Plant char: #
Free space char: -
You should be completely object oriented.
13 pekerja bebas membida secara purata $25 untuk pekerjaan ini
I am here the java developer about more than 7 year [login to view URL] me for any kind of java task but i have few questions before going to make final deal .
I can create this program in 3 days for $10 only. Relevant Skills and Experience Java Proposed Milestones $10 USD - Complete Java Program I want to ask nothing.