From 36be1ed32ac9a554f0b11fcc13b5699e717b81f2 Mon Sep 17 00:00:00 2001 From: jbzdarkid Date: Sat, 9 Nov 2019 13:39:10 -0800 Subject: Functioning solver/validator (at least for mazes) --- Source/Solver.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Source/Solver.h (limited to 'Source/Solver.h') 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 @@ +#pragma once +#include + +#ifndef MAX_SOLUTIONS +#define MAX_SOLUTIONS 10000 +#endif + +struct Puzzle; +class Solver { +public: + static std::vector Solve(Puzzle& p); + +private: + static void SolveLoop(Puzzle& p, int x, int y, std::vector& solutions); +}; + -- cgit 1.4.1