package aiproject1; import java.util.Random; /** * * @author Layan */ public class Gene { int fitness = 0; int geneLength = GeneticAlgorithm.length; char [] genes = new char [geneLength]; //[X,Y,X,X,Y...] public Gene(){ Random rn = new Random(); //constructor > random > X Y for(int i=0;i