diff options
author | tom <tombarrett@siu.edu> | 2017-02-12 08:42:55 -0600 |
---|---|---|
committer | tom <tombarrett@siu.edu> | 2017-02-12 08:42:55 -0600 |
commit | 60bc5dcb19a983e8ae335ba89f860c59473303fb (patch) | |
tree | 6f232f9db0d71678ce593a765b88f4934976ed83 /inc/dna.hpp | |
parent | 1da46794f74ebd8f445fcd70cbe0420eadb648e4 (diff) |
-added DNA combining, currently it just takes the average of the mother and father
-there maybe a random segfault, further investigation is needed
Diffstat (limited to 'inc/dna.hpp')
-rw-r--r-- | inc/dna.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/inc/dna.hpp b/inc/dna.hpp index 4924e15..cd76731 100644 --- a/inc/dna.hpp +++ b/inc/dna.hpp @@ -7,6 +7,7 @@ class Dna { public: Dna(); + Dna combine(Dna D); int maxHealth; int speed; int reach; |