From 60bc5dcb19a983e8ae335ba89f860c59473303fb Mon Sep 17 00:00:00 2001 From: tom Date: Sun, 12 Feb 2017 08:42:55 -0600 Subject: -added DNA combining, currently it just takes the average of the mother and father -there maybe a random segfault, further investigation is needed --- inc/dna.hpp | 1 + 1 file changed, 1 insertion(+) (limited to 'inc/dna.hpp') 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; -- cgit v1.2.3