diff options
Diffstat (limited to 'src/main/solver.h')
| -rw-r--r-- | src/main/solver.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/main/solver.h b/src/main/solver.h new file mode 100644 index 0000000..0520cc7 --- /dev/null +++ b/src/main/solver.h @@ -0,0 +1,36 @@ +// +// 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" + +class solver { +public: + solver(const game_state); + 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; + bool been_run; + node solution; + bool solution_found; +}; + + +#endif //SOLVITAIRE_SOLVER_H |
