Devtober Day 7


Today I improved my genetic simulation and fixed some bugs. No, not that kind of genetic code! I mean the data-based inheritance and color/morphology/trait determination system for fauna in my game.

Turns out, when I was doing my implementation of gene linking and crossing over, I got a little bit lazy and just appended haploid genomes to make a diploid genome. Well, that worked in the unit test where the number of genes was a multiple of eight. In my actual project? I needed more math to properly unite the genomes, so I wrote that today.

Oh, and that patterning system I mentioned at the beginning of the month as something I had finished? Turns out that testing it exposed a bunch of bugs. I fixed those, as well (most of which were boring off-by-one errors).

Get War for the Fauna Wilds

Leave a comment

Log in with itch.io to leave a comment.