package eco.neural;
import java.util.Random;

/**
 * A class that handles the genetic mixing
 *
 * @author will
 * @param parentOne the chromosome of the first parent
 * @param parentTwo the chromosome of the second parent
 * @return a new semirandom child chromosome
 *
 */

public class GeneticMixer{

    public static Random random = new Random();

    
    public static int spawnChildChromosome(int parentOne, int parentTwo) {
        
        int base = parentOne & parentTwo;
        Random rand = new Random();
        int powers2[] = {0x2, 0xC, 0xF0, 0xFF00, 0xFFFF0000};
        int exponents[] = {1, 2, 4, 8, 16};
        int max = Math.max(parentOne, parentTwo);
        int result = 0;
        System.out.println(max);
        
        for (int m = 4; m >= 0; m--) {
            if ((max & powers2[m])!=0) {
                max >>= exponents[m];
                result |= exponents[m];
            }
        }
        
        result+=1;
        System.out.println(result);
        
        for (int n = 0; n < result; n ++){
            if (((parentOne^parentTwo)&n) == 0){
                base |= rand.nextInt(2)<<n; // 0001; 0010; 0100; 1000;
            }

        }
        return base;
    }
}

@@ -17,264 +17,8 @@
 al;%0A
-import java.util.Random;%0A%0A/**%0A * A class that handles the genetic mixing%0A *%0A * @author will%0A * @param parentOne the chromosome of the first parent%0A * @param parentTwo the chromosome of the second parent%0A * @return a new semirandom child chromosome%0A *%0A */%0A%0A
 publ
@@ -38,15 +38,18 @@
 ticM
-ix
+ast
 er%7B%0A
-%0A
+-%0A-
     
@@ -66,428 +66,251 @@
 tic 
-Random random = new Random();%0A%0A    %0A    public static int spawnChildChromosome(int parentOne, int parentTwo) %7B%0A        %0A        int base = parentOne & parentTwo;%0A        Random rand = new Random();%0A        int powers2%5B%5D = %7B0x2, 0xC, 0xF0, 0xFF00, 0xFFFF0000%7D;%0A        int exponents%5B%5D = %7B1, 2, 4, 8, 16%7D;%0A        int max = Math.max(parentOne, parentTwo);%0A        int result = 0;%0A        System.out.println(max);%0A        %0A
+void genemaster()%7B%0A-%0A-%0A-    %7D%0A-%0A-%0A-    public static void attributebreeder(int network1, int network2)%7B%0A-%0A-%0A-    %7D%0A-%0A-    public static void connectionbreeder(int network1, int network2)%7B%0A-%0A-%0A-    %7D%0A-%0A-    public static void selectparents()%7B%0A-
     
@@ -320,465 +320,114 @@
  for
- 
 (int 
-m = 4; m %3E= 0; m--) %7B%0A            if ((max & powers2%5Bm%5D)!=0) %7B%0A                max %3E%3E= exponents%5Bm%5D;%0A                result %7C= exponents%5Bm%5D;%0A            %7D%0A        %7D%0A  
+x =0; x %3C Main.workingnetworks.length;  x++)%7B%0A-
       
-%0A
       
-  result+=1;%0A        System.out.println(result);%0A        %0A        for (int n = 0; n %3C result; n ++)%7B%0A            if (((parentOne%5EparentTwo)&n) == 0)%7B%0A                base %7C= rand.nextInt(2)%3C%3Cn; // 0001; 0010; 0100; 1000;%0A            %7D%0A%0A        %7D%0A        return base;%0A    
+//pull score for specific network%7D%7D%0A    %7D%0A
 %7D%0A%7D%0A

Update GeneticMaster.java