aboutsummaryrefslogtreecommitdiff
path: root/src/main/solver.h
diff options
context:
space:
mode:
authorthecharlesblake2017-11-11 11:36:27 +0000
committerthecharlesblake2017-11-11 11:37:10 +0000
commitbba8775ce7c63783303240470d4a4b8404c9498b (patch)
treea3f6e5dc405ecb4637eca6c54e1261b5630a058c /src/main/solver.h
parentMerge pull request #19 from thecharlesblake/canfield (diff)
downloadmetasol-bba8775ce7c63783303240470d4a4b8404c9498b.tar.gz
metasol-bba8775ce7c63783303240470d4a4b8404c9498b.zip

Add src file directory structure

Diffstat (limited to 'src/main/solver.h')
-rw-r--r--src/main/solver.h39
1 files changed, 0 insertions, 39 deletions
diff --git a/src/main/solver.h b/src/main/solver.h
deleted file mode 100644
index 4215989..0000000
--- a/src/main/solver.h
+++ /dev/null
@@ -1,39 +0,0 @@
-//
-// Created by thecharlesblake on 10/24/17.
-//
-
-#ifndef SOLVITAIRE_SOLVER_H
-#define SOLVITAIRE_SOLVER_H
-
-#include <string>
-#include <vector>
-
-#include <boost/optional.hpp>
-
-#include "game_state.h"
-#include "sol_rules.h"
-
-class solver {
-public:
- solver(const game_state, const sol_rules&);
- bool run();
-
- friend std::ostream& operator<< (std::ostream&, const solver&);
-
-private:
- struct node {
- node(const game_state);
- std::vector<game_state> history;
- game_state state;
- };
-
- const node root;
- const sol_rules rules;
- bool been_run;
- node solution;
- bool solution_found;
- int states_searched;
-};
-
-
-#endif //SOLVITAIRE_SOLVER_H