diff options
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 | |||