From 72b40aec2addc7b28170ba9364bc0429149b3299 Mon Sep 17 00:00:00 2001 From: majortom6 Date: Sun, 26 Feb 2017 07:07:11 -0600 Subject: -added more detailed mutation function, eventually a normal distrobution will be implemented -added roll function, which takes a float ie (.15) and returns a true that percent of the time --- inc/dna.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'inc/dna.hpp') diff --git a/inc/dna.hpp b/inc/dna.hpp index d7312f6..b549c27 100644 --- a/inc/dna.hpp +++ b/inc/dna.hpp @@ -2,6 +2,7 @@ #define dna_h #include "constants.hpp" +#include "functions.hpp" class DNA { @@ -20,6 +21,8 @@ class DNA int sizeMax; float speed; + float mutationPercent; + float mutationChance; }; #endif -- cgit v1.2.3