aboutsummaryrefslogtreecommitdiff
path: root/cpp/nissy.h
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2025-05-15 19:14:29 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2025-05-15 19:14:29 +0200
commitc2f3b1c9c534cadc81ebab3e718832d121cdf9cf (patch)
tree458552dfe2e114e4d6dd9aae766855dc6351efbb /cpp/nissy.h
parent97ae34da2a51d9bbc13905598ebc80633c3f80c2 (diff)
downloadnissy-core-c2f3b1c9c534cadc81ebab3e718832d121cdf9cf.tar.gz
nissy-core-c2f3b1c9c534cadc81ebab3e718832d121cdf9cf.zip
WASM and JS port - work in progress
Diffstat (limited to '')
-rw-r--r--cpp/nissy.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/cpp/nissy.h b/cpp/nissy.h
index 41d3876..884043d 100644
--- a/cpp/nissy.h
+++ b/cpp/nissy.h
@@ -33,9 +33,9 @@ namespace nissy {
33 bool ok() const; 33 bool ok() const;
34 34
35 static const error OK; 35 static const error OK;
36 static const error UNSOLVABLE; 36 static const error UNSOLVABLE_WARNING;
37 static const error UNSOLVABLE_ERROR;
37 static const error INVALID_CUBE; 38 static const error INVALID_CUBE;
38 static const error UNSOLVABLE_CUBE;
39 static const error INVALID_MOVES; 39 static const error INVALID_MOVES;
40 static const error INVALID_TRANS; 40 static const error INVALID_TRANS;
41 static const error INVALID_SOLVER; 41 static const error INVALID_SOLVER;
@@ -50,9 +50,9 @@ namespace nissy {
50 public: 50 public:
51 int value; 51 int value;
52 52
53 static const status run; 53 static const status RUN;
54 static const status stop; 54 static const status STOP;
55 static const status pause; 55 static const status PAUSE;
56 }; 56 };
57 57
58 class cube { 58 class cube {
@@ -96,7 +96,7 @@ namespace nissy {
96 solve_result solve(const cube&, nissflag, unsigned minmoves, 96 solve_result solve(const cube&, nissflag, unsigned minmoves,
97 unsigned maxmoves, unsigned maxsols, unsigned optimal, 97 unsigned maxmoves, unsigned maxsols, unsigned optimal,
98 unsigned threads, int (*poll_status)(void *), 98 unsigned threads, int (*poll_status)(void *),
99 void *poll_status_data); 99 void *poll_status_data) const;
100 100
101 static std::variant<solver, error> get(const std::string&); 101 static std::variant<solver, error> get(const std::string&);
102 private: 102 private:

Generated with cgit - Back to sebastiano.tronto.net