From 550caeee11086bd56db69176b3149ddfa160ee30 Mon Sep 17 00:00:00 2001 From: Justin Worthe Date: Sat, 17 Oct 2015 17:02:24 +0200 Subject: Reverted to a simple decision tree Turns out it's much easier to write a bot by hand with if statements. --- include/brain/neuron.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/brain/neuron.h') diff --git a/include/brain/neuron.h b/include/brain/neuron.h index 204b303..ca26c73 100644 --- a/include/brain/neuron.h +++ b/include/brain/neuron.h @@ -12,6 +12,10 @@ public: void addInput(NeuralLink&& link); bool calculateActivation(); +Neuron(int index) : NeuralNode('n'+std::to_string(index)){}; + + bool hasInputWithWeight(std::string srcIdentifier, double weight) const; + private: std::vector _inputLinks; double sigmoid(double input) const; -- cgit v1.2.3