public Genome Clone()
    {
        Genome genome = new Genome();

        genome.left  = left.Clone();
        genome.right = right.Clone();
        return(genome);
    }
Beispiel #2
0
    public Genome Clone()
    {
        Genome genome = new Genome();

        genome.genes = (float[])genes.Clone();
        genome.left  = left.Clone();
        genome.right = right.Clone();
        return(genome);
    }
Beispiel #3
0
    //public GenomeLeg leftLeg1;
    //public GenomeLeg rightLeg1;

    public Genome Clone()
    {
        Genome genome = new Genome();

        genome.leftLeg   = leftLeg.Clone();
        genome.rightLeg  = rightLeg.Clone();
        genome.leftLeg1  = leftLeg1.Clone();
        genome.rightLeg1 = rightLeg1.Clone();

        genome.leftFoot   = leftFoot.Clone();
        genome.rightFoot  = rightFoot.Clone();
        genome.leftFoot1  = leftFoot1.Clone();
        genome.rightFoot1 = rightFoot1.Clone();

        return(genome);
    }