summaryrefslogtreecommitdiff
path: root/src/spacebot.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/spacebot.cpp')
-rw-r--r--src/spacebot.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/spacebot.cpp b/src/spacebot.cpp
index 418756c..23cce0c 100644
--- a/src/spacebot.cpp
+++ b/src/spacebot.cpp
@@ -2,6 +2,7 @@
#include "move_string_mapper.h"
#include "brain/neural_network.h"
#include <fstream>
+#include <iostream>
Spacebot::Spacebot(std::string outputPath, std::string brainFilename)
: _outputFilename(outputPath+"/move.txt"),
@@ -19,6 +20,7 @@ void Spacebot::writeNextMove()
Move Spacebot::chooseMove()
{
auto sensorInputs = _gameState.toBitArray();
+ std::cout << sensorInputs.size() << std::endl;
NeuralNetwork network(std::ifstream(_brainFilename),
sensorInputs,