From 5355de2921126e2b75e24abd57e17556e22a6ed0 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Thu, 7 Aug 2025 15:09:46 +0200 Subject: Added API function for solution variations --- cpp/nissy.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'cpp/nissy.h') diff --git a/cpp/nissy.h b/cpp/nissy.h index 199af10..74bbd32 100644 --- a/cpp/nissy.h +++ b/cpp/nissy.h @@ -39,6 +39,7 @@ namespace nissy { static const error INVALID_MOVES; static const error INVALID_TRANS; static const error INVALID_SOLVER; + static const error INVALID_VARIATION; static const error NULL_POINTER; static const error BUFFER_SIZE; static const error DATA; @@ -63,6 +64,21 @@ namespace nissy { static const compare_result DIFFERENT; }; + class variation { + public: + struct variations_result { + error err; + std::string solutions; + }; + + const std::string name; + + variations_result find_variations(const std::string&); + static std::variant get(const std::string&); + private: + variation(const std::string&); + }; + class cube { public: cube(); -- cgit v1.3