aboutsummaryrefslogtreecommitdiff
path: root/src/Genome.cpp
diff options
context:
space:
mode:
authorPaul Oliver <contact@pauloliver.dev>2024-02-29 19:04:34 +0100
committerPaul Oliver <contact@pauloliver.dev>2024-02-29 19:16:14 +0100
commite6ab4a8ed100d5d5b7611c74cf3ccd556f1f1d71 (patch)
tree129cf13c2f9b3eae54402300db4570815789a02a /src/Genome.cpp
Initial commitHEADmaster
Diffstat (limited to 'src/Genome.cpp')
-rw-r--r--src/Genome.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/Genome.cpp b/src/Genome.cpp
new file mode 100644
index 0000000..ce5fc11
--- /dev/null
+++ b/src/Genome.cpp
@@ -0,0 +1,15 @@
+#include <HyperNeat/Genome.hpp>
+
+using namespace hyperneat;
+
+Genome::Genome(size_t inputs)
+ : _inputs(inputs)
+{}
+
+Genome::NodeGene::NodeGene(double depth, NodeType nodeType)
+ : _depth(depth), _nodeType(nodeType)
+{}
+
+Genome::NodeGene::LinkGene::LinkGene(double weight, bool isEnabled)
+ : _weight(weight), _isEnabled(isEnabled)
+{}