@Override
public double calculateScore(final MLMethod algo) {
DoubleArrayGenome genome = (DoubleArrayGenome) algo;
PlantUniverse universe = new PlantUniverse();
universe.reset();
PlantPhysics physics = new PlantPhysics();
PlantGrowth growth = new PlantGrowth();
// Run the generations.
for (int i = 0; i < PlantUniverse.EVALUATION_CYCLES; i++) {
physics.runPhysics(universe);
growth.runGrowth(universe, genome.getData());
}
// Count the amount of green.
int count = 0;