diff options
author | jbzdarkid <jbzdarkid@gmail.com> | 2019-11-09 13:39:10 -0800 |
---|---|---|
committer | jbzdarkid <jbzdarkid@gmail.com> | 2019-11-09 13:39:10 -0800 |
commit | 36be1ed32ac9a554f0b11fcc13b5699e717b81f2 (patch) | |
tree | 383618d781bc5b4701b31555f90b8a629fe6d205 /Source/Solver.h | |
parent | 413e1f0aaae961660781675158e38520126c11b6 (diff) | |
download | witness-tutorializer-36be1ed32ac9a554f0b11fcc13b5699e717b81f2.tar.gz witness-tutorializer-36be1ed32ac9a554f0b11fcc13b5699e717b81f2.tar.bz2 witness-tutorializer-36be1ed32ac9a554f0b11fcc13b5699e717b81f2.zip |
Functioning solver/validator (at least for mazes)
Diffstat (limited to 'Source/Solver.h')
-rw-r--r-- | Source/Solver.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Source/Solver.h b/Source/Solver.h new file mode 100644 index 0000000..8a021ac --- /dev/null +++ b/Source/Solver.h | |||
@@ -0,0 +1,16 @@ | |||
1 | #pragma once | ||
2 | #include <vector> | ||
3 | |||
4 | #ifndef MAX_SOLUTIONS | ||
5 | #define MAX_SOLUTIONS 10000 | ||
6 | #endif | ||
7 | |||
8 | struct Puzzle; | ||
9 | class Solver { | ||
10 | public: | ||
11 | static std::vector<Puzzle> Solve(Puzzle& p); | ||
12 | |||
13 | private: | ||
14 | static void SolveLoop(Puzzle& p, int x, int y, std::vector<Puzzle>& solutions); | ||
15 | }; | ||
16 | |||