summaryrefslogtreecommitdiff
path: root/include/brain/neural_link.h
diff options
context:
space:
mode:
authorJustin Worthe <justin.worthe@gmail.com>2015-10-17 17:02:24 +0200
committerJustin Worthe <justin.worthe@gmail.com>2015-10-17 17:02:24 +0200
commit550caeee11086bd56db69176b3149ddfa160ee30 (patch)
treec935b819a4ad165fbef567db67ad9ddcca62df04 /include/brain/neural_link.h
parent31a82b0359515ae579514024b22873fb708c3f53 (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_link.h')
-rw-r--r--include/brain/neural_link.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/brain/neural_link.h b/include/brain/neural_link.h
index b9cf4d1..14f58b9 100644
--- a/include/brain/neural_link.h
+++ b/include/brain/neural_link.h
@@ -7,6 +7,9 @@ class NeuralLink
public:
NeuralLink(NeuralNode* input, double weight);
double weightedActivation() const;
+
+ double weight() const { return _weight; }
+ std::string inputIdentifier() const { return _input->identifier(); }
private:
NeuralNode* _input;