Changeset 1274 for cpp/frams/genetics/f9/f9_oper.cpp
- Timestamp:
- 09/09/23 15:12:57 (14 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/genetics/f9/f9_oper.cpp
r1216 r1274 124 124 { 125 125 int len1 = (int)strlen(g1), len2 = (int)strlen(g2); 126 int p1 = rndUint(len1); //random cut point for first genotype127 int p2 = rndUint(len2); //random cut point for second genotype126 int p1 = rndUint(len1); //random cut point for the first genotype 127 int p2 = rndUint(len2); //random cut point for the second genotype 128 128 char *child1 = (char*)malloc(p1 + len2 - p2 + 1); 129 129 char *child2 = (char*)malloc(p2 + len1 - p1 + 1); … … 147 147 int pos = ptr - turtle_commands_f9; 148 148 int axis = pos / 2; 149 style = GENSTYLE_RGBS(axis == 0 ? 200 : 0, axis == 1 ? 200 : 0, axis == 2? 200 : 0, GENSTYLE_NONE);149 style = GENSTYLE_RGBS(axis == 0 ? 200 : 0, axis == 2 ? 200 : 0, axis == 1 ? 200 : 0, GENSTYLE_NONE); 150 150 } 151 151 return style;
Note: See TracChangeset
for help on using the changeset viewer.