diff options
| author | majortom6 <tombarrett@siu.edu> | 2017-02-26 07:07:11 -0600 | 
|---|---|---|
| committer | Tom Barrett <tombarrett@siu.edu> | 2017-03-07 13:23:42 -0600 | 
| commit | 72b40aec2addc7b28170ba9364bc0429149b3299 (patch) | |
| tree | c84358c619784a418adb4d0d71c6e91ccddc7f89 /inc/dna.hpp | |
| parent | c6d10c3d73e99043a29897eecf59656a18db989d (diff) | |
-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
Diffstat (limited to 'inc/dna.hpp')
| -rw-r--r-- | inc/dna.hpp | 3 | 
1 files changed, 3 insertions, 0 deletions
| 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 | 
