summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJustin Worthe <justin.worthe@gmail.com>2015-09-06 13:45:56 +0200
committerJustin Worthe <justin.worthe@gmail.com>2015-09-06 13:45:56 +0200
commita515cb497c109a533d73475be8ea6df6bdeafd96 (patch)
treed719baffaf6dc697a9bc35a31a882c1fb67f6467 /include
parent84d9333a4ac4b9d60dc9b525b8006456d6f614dc (diff)
Removed some buildings made network more efficient
Also decreased number of sensors.
Diffstat (limited to 'include')
-rw-r--r--include/brain/neural_link.h6
-rw-r--r--include/move.h3
2 files changed, 3 insertions, 6 deletions
diff --git a/include/brain/neural_link.h b/include/brain/neural_link.h
index f3d12a6..b9cf4d1 100644
--- a/include/brain/neural_link.h
+++ b/include/brain/neural_link.h
@@ -1,16 +1,14 @@
#pragma once
-#include <memory>
-
#include "neural_node.h"
class NeuralLink
{
public:
- NeuralLink(std::weak_ptr<NeuralNode> input, double weight);
+ NeuralLink(NeuralNode* input, double weight);
double weightedActivation() const;
private:
- std::weak_ptr<NeuralNode> _input;
+ NeuralNode* _input;
double _weight;
};
diff --git a/include/move.h b/include/move.h
index 7ec63d9..df95761 100644
--- a/include/move.h
+++ b/include/move.h
@@ -6,6 +6,5 @@ enum class Move: int
MOVE_LEFT = 1,
MOVE_RIGHT = 2,
SHOOT = 3,
- BUILD_ALIEN_FACTORY = 4,
- BUILD_MISSILE_CONTROLLER = 5
+ BUILD_MISSILE_CONTROLLER = 4
};