summaryrefslogtreecommitdiff
path: root/src/spacebot.cpp
diff options
context:
space:
mode:
authorJustin Worthe <justin.worthe@gmail.com>2015-08-14 22:12:56 +0200
committerJustin Worthe <justin.worthe@gmail.com>2015-08-14 22:12:56 +0200
commit70ec00285128f8f9f5fa0e848950212e6a235d43 (patch)
tree74fa32322ba07ad7e0387f55c1dd18b06aa8cd8f /src/spacebot.cpp
parent1da1c8d213ce710a9cafdd560d0d3d3c7fb74d70 (diff)
Added missing sensors
Diffstat (limited to 'src/spacebot.cpp')
-rw-r--r--src/spacebot.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/spacebot.cpp b/src/spacebot.cpp
index 23cce0c..15f2221 100644
--- a/src/spacebot.cpp
+++ b/src/spacebot.cpp
@@ -20,14 +20,12 @@ void Spacebot::writeNextMove()
Move Spacebot::chooseMove()
{
auto sensorInputs = _gameState.toBitArray();
- std::cout << sensorInputs.size() << std::endl;
NeuralNetwork network(std::ifstream(_brainFilename),
sensorInputs,
- static_cast<int>(Move::BUILD_SHIELD));
+ 7);
- int moveInt = network.findMaxOutputIndex();
- return static_cast<Move>(moveInt);
+ return static_cast<Move>(network.findMaxOutputIndex());
}
void Spacebot::writeMove(const Move& move)