Carol is right; genetics is pretty easy to turn into a program. I've seen one named GnP that was programmed by a high school kid for a science fair project.
Genes come in pairs, so the simplest set up is one pair of genes in the male and one pair of genes in the female. IOW, two arrays with two elements each. Array #1 contains male gene #1 and male gene #2. Array #2 contains female gene #1 and female gene #2.
The object is to match each gene in array #1 with every gene in array #2. Two for loops with the second nested inside the first will do it.
Final result is four pairs of genes:
1) male gene #1, female gene #1
2) male gene #1, female gene #2
3) male gene #2, female gene #1
4) male gene #2, female gene #2
As Carol wrote, to work with snow you must deal with two pairs of genes in each snake. That is a bit more complicated than working with one pair of genes, but it can still be done using arrays and nested for loops.
Paul Hollander