summaryrefslogtreecommitdiff
path: root/src/spacebot.cpp
diff options
context:
space:
mode:
authorJustin Worthe <justin.worthe@gmail.com>2015-08-12 23:18:56 +0200
committerJustin Worthe <justin.worthe@gmail.com>2015-08-12 23:18:56 +0200
commit1da1c8d213ce710a9cafdd560d0d3d3c7fb74d70 (patch)
tree3ec371e909af1bda730b6325a40fbb74ac844806 /src/spacebot.cpp
parent1049b6acb37c244ef7470b2e7fe4145a616d3df3 (diff)
Changing how gamestate is interpreted into network
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,