Example #1
0
 def gender(self, gender_string):
     self.set('gender', gender_string)
     #TODO: Set DNA before gender
     new_dna = dna_helpers.set_dna_gender(self.dna, gender=gender_string)
     self.set('dna', new_dna)
Example #2
0
 def generate_dna(self, force_generation_if_exists=False):
     if force_generation_if_exists or self.dna is '' or self.dna and len(self.dna) < 3:
         self.dna, temp = dna_helpers.combine_dna(self.mother.dna, self.father.dna, self.rand_seed_counter)
         self.dna = dna_helpers.set_dna_gender(self.dna, self.gender)