Changeset 667 for cpp/frams/genetics/fF/oper_fF.cpp
- Timestamp:
- 06/07/17 12:01:16 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/genetics/fF/oper_fF.cpp
r513 r667 1 1 // This file is a part of Framsticks SDK. http://www.framsticks.com/ 2 // Copyright (C) 1999-201 5Maciej Komosinski and Szymon Ulatowski.2 // Copyright (C) 1999-2017 Maciej Komosinski and Szymon Ulatowski. 3 3 // See LICENSE.txt for details. 4 4 … … 48 48 fF_growth_params par; 49 49 par.load(gene); 50 int which = randomN(par.param.getPropCount()); 51 bool mutated_ok = GenoOperators::mutatePropertyNaive(par.param, which); 50 static const int propsToMutate[] = fF_PROPS_TO_MUTATE; 51 int which = randomN(ARRAY_LENGTH(propsToMutate)); 52 bool mutated_ok = GenoOperators::mutatePropertyNaive(par.param, propsToMutate[which]); 52 53 if (mutated_ok) 53 54 {
Note: See TracChangeset
for help on using the changeset viewer.