public static void NextGen() { Genome c1 = new Genome(false); Genome c2 = new Genome(false); RouletteWheelSelection select = new RouletteWheelSelection(); CrossOver cross = new CrossOver(); cross.SinglePointCrossOver(select.RouletteWheelSelect(), select.RouletteWheelSelect(), ref c1, ref c2); Mutate(ref c1); Mutate(ref c2); genome.Add(c1); genome.Add(c2); if (genome.Count == DNAattributes.PopulationSize) { DNAattributes.pop = genome; } }