public Population(int numInPopZ, Random r) { numInPop = numInPopZ; maps = new Phenotype[numInPop]; for (int i = 0; i < numInPop; i++) { Genotype g = new Genotype(r); Phenotype p = new Phenotype(g, 0); p.createPheno(); p.setScore(); maps[i] = p; } }