// use first weapon target as primary, not smart but good enough...
AttackOption a = attack.get(0).get(0);
(chromosomes[0]).genes[chromosomeDim - 1] = a.target.enemy_num;
for (int i = 1; i < populationDim; i++) {
Chromosome cv = chromosomes[i];
for (int iGene = 0; iGene < chromosomeDim - 1; iGene++) {
cv.genes[iGene] = Compute.randomInt(attack.get(iGene).size());
if (i <= attack.size()) {
if (iGene + 1 == i) {
cv.genes[iGene] = 0; // fire