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/Validator.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Source/Validator.h (limited to 'Source/Validator.h') diff --git a/Source/Validator.h b/Source/Validator.h new file mode 100644 index 0000000..cddc293 --- /dev/null +++ b/Source/Validator.h @@ -0,0 +1,27 @@ +#pragma once +#include +#include + +#ifndef NEGATIONS_CANCEL_NEGATIONS +#define NEGATIONS_CANCEL_NEGATIONS true +#endif + +#ifndef SIMPLE_POLYOMINOS +#define SIMPLE_POLYOMINOS true +#endif + +#ifndef DISABLE_CACHE +#define DISABLE_CACHE false +#endif + +struct Region{}; +struct Puzzle; +struct Pos; +class Validator { +public: + static void Validate(Puzzle& p); + +private: + static void RegionCheckNegations(Puzzle& p, const Region& r); + static std::vector RegionCheck(Puzzle& p, const Region& r); +}; -- cgit 1.4.1