From 1da1c8d213ce710a9cafdd560d0d3d3c7fb74d70 Mon Sep 17 00:00:00 2001 From: Justin Worthe Date: Wed, 12 Aug 2015 23:18:56 +0200 Subject: Changing how gamestate is interpreted into network --- src/spacebot.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/spacebot.cpp') 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 +#include 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, -- cgit v1.2.3