package eco.neural;
/**
 * A class that controls gene breeding
 *
 * @author will
 *
 */

public class GeneticMaster{

    public static void genemaster(){


    }


    public static void attributebreeder(int network1, int network2){


    }

    public static void connectionbreeder(int network1, int network2){


    }

    public static void selectparents(){
        for(int x =0; x < Main.workingnetworks.length;  x++){
            //pull score for specific network

        }
        // use some way to determine bestway to choose for
    }
}

@@ -17,69 +17,255 @@
 al;%0A
-/**%0A * A class that controls gene breeding%0A *%0A * @author will
+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
@@ -290,19 +290,18 @@
 GeneticM
-ast
+ix
 er%7B%0A%0A   
@@ -319,36 +319,43 @@
 tic 
-void genemaster()%7B%0A
+Random random = new Random();
 %0A%0A    
-%7D%0A%0A
 %0A   
@@ -373,186 +373,373 @@
 tic 
-void attributebreeder(int network1, int network2)%7B%0A%0A%0A    %7D%0A%0A    public static void connectionbreeder(int network1, int network2)%7B%0A%0A
+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    
-%7D%0A%0A
     
-public static void selectparents()%7B
+int result = 0;%0A        System.out.println(max);%0A        
 %0A   
@@ -750,58 +750,168 @@
  for
+ 
 (int 
-x =0; x %3C Main.workingnetworks.length;  x++)%7B
+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   
@@ -919,55 +919,255 @@
     
+%7D%0A
     
-//pull score for specific network%0A%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  
@@ -1154,33 +1154,37 @@
  1000;%0A         
-%7D
+   %7D%0A
 %0A        // use 
@@ -1180,58 +1180,30 @@
     
-// use some way to determine bestway to choose for
+%7D%0A        return base;
 %0A   

Update GeneticMaster.java