I added genetics and reproduction! You can see in the output that each new organism has 2 genotypes, one for Q/q (short for quickness, didn’t want to use S because it’s a common letter and I might need it later idk I forgot), and one for V/v (short for vision) alleles (probably using all the wrong vocabulary). These genes directly affect speed and vision (with some slight randomness) and speed and vision also affects hunger and thirst depletion, meaning that being fast and seeing well has a tradeoff. I really need to code limited resources and I really need to code juvenile creatures (they’re mating at birth 😭😭😭). Maybe I could even make something like eggs?
The output got cut off in the image. Here’s what it’s supposed to say:
Genetics: [“Qq”,“vv”] Speed: 92.3979906001719 Sight: 150
Genetics: [“qQ”,vv”] Speed: 83.9082190561058 Sight: 150
Genetics: [“QQ”,“vV”] Speed: 142.633334008872 Sight: 171.81141852858
Genetics: [“QQ”,“vv”] Speed: 110.227173121233 Sight: 150
…
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.