Structsยง
- Char
Codec - A
Codecfor aGenotypeofCharGenes. Theencodefunction creates aGenotypewithnum_chromosomeschromosomes andnum_genesgenes per chromosome. Thedecodefunction creates aStringfrom theGenotypewhere theStringcontains the alleles of theCharGenesin the chromosome.