aboutsummaryrefslogtreecommitdiff
path: root/cpp/nissy.h
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2025-07-31 09:47:57 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2025-07-31 09:47:57 +0200
commit992de12cc081e7dde16c3c231f83bfa77c67825a (patch)
treeaf0b2d51b1a6cd92ae2cd6a32d581d752ddce8ea /cpp/nissy.h
parente2b154c40acaac4e7a7b3e379ada0404519c3750 (diff)
downloadnissy-core-992de12cc081e7dde16c3c231f83bfa77c67825a.tar.gz
nissy-core-992de12cc081e7dde16c3c231f83bfa77c67825a.zip
Added move sequence comparison function
Diffstat (limited to '')
-rw-r--r--cpp/nissy.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/cpp/nissy.h b/cpp/nissy.h
index 817307c..199af10 100644
--- a/cpp/nissy.h
+++ b/cpp/nissy.h
@@ -55,6 +55,14 @@ namespace nissy {
55 static const status PAUSE; 55 static const status PAUSE;
56 }; 56 };
57 57
58 class compare_result {
59 public:
60 long long value;
61
62 static const compare_result EQUAL;
63 static const compare_result DIFFERENT;
64 };
65
58 class cube { 66 class cube {
59 public: 67 public:
60 cube(); 68 cube();
@@ -103,6 +111,8 @@ namespace nissy {
103 }; 111 };
104 112
105 error count_moves(const std::string&); 113 error count_moves(const std::string&);
114 std::variant<error, compare_result> compare_moves(
115 const std::string&, const std::string&);
106 void set_logger(void (*)(const char *, void *), void *); 116 void set_logger(void (*)(const char *, void *), void *);
107} 117}
108 118

Generated with cgit - Back to sebastiano.tronto.net