diff options
| author | Charlie Blake | 2017-10-28 13:28:49 +0100 |
|---|---|---|
| committer | GitHub | 2017-10-28 13:28:49 +0100 |
| commit | 7b05ae6f24856a207f9d9ab3218f1b5e75343d74 (patch) | |
| tree | 4c7b3d779f29f5cef8a5eb1803441f1aa20ac0bd /src/main/solver.h | |
| parent | Merge pull request #13 from thecharlesblake/docs (diff) | |
| parent | Add RapidJSON to travis (diff) | |
| download | metasol-7b05ae6f24856a207f9d9ab3218f1b5e75343d74.tar.gz metasol-7b05ae6f24856a207f9d9ab3218f1b5e75343d74.zip | |
Merge pull request #14 from thecharlesblake/simple-black-hole
Simple black hole
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 |
