diff options
author | Justin Worthe <justin.worthe@gmail.com> | 2015-10-17 17:02:24 +0200 |
---|---|---|
committer | Justin Worthe <justin.worthe@gmail.com> | 2015-10-17 17:02:24 +0200 |
commit | 550caeee11086bd56db69176b3149ddfa160ee30 (patch) | |
tree | c935b819a4ad165fbef567db67ad9ddcca62df04 /include/brain/neural_node.h | |
parent | 31a82b0359515ae579514024b22873fb708c3f53 (diff) |
Reverted to a simple decision tree
Turns out it's much easier to write a bot by hand with if statements.
Diffstat (limited to 'include/brain/neural_node.h')
-rw-r--r-- | include/brain/neural_node.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/brain/neural_node.h b/include/brain/neural_node.h index 62b7b15..2684146 100644 --- a/include/brain/neural_node.h +++ b/include/brain/neural_node.h @@ -1,9 +1,18 @@ #pragma once +#include <string> + class NeuralNode { public: double activation() const { return _activation; } + std::string identifier() const { return _identifier; } + +NeuralNode(std::string identifier): _identifier(identifier) {} + protected: double _activation; + +private: + std::string _identifier; }; |