diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-04-22 09:00:15 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-04-22 09:00:15 +0200 |
| commit | 8b72e391c7185e3da0dfbf0ab60068ac37e4d5cc (patch) | |
| tree | b79d8154f16a0dadd8d8265d32b8bd95e96263aa /cpp/nissy.h | |
| parent | 510a7471348788fccba6b7c4b9f7b7cc9aee6ba9 (diff) | |
| download | nissy-core-8b72e391c7185e3da0dfbf0ab60068ac37e4d5cc.tar.gz nissy-core-8b72e391c7185e3da0dfbf0ab60068ac37e4d5cc.zip | |
Removed old scripts and updated public API
Diffstat (limited to 'cpp/nissy.h')
| -rw-r--r-- | cpp/nissy.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/cpp/nissy.h b/cpp/nissy.h index 4b9c1c9..2eb0f42 100644 --- a/cpp/nissy.h +++ b/cpp/nissy.h | |||
| @@ -38,7 +38,6 @@ namespace nissy { | |||
| 38 | static const error UNSOLVABLE_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_FORMAT; | ||
| 42 | static const error INVALID_SOLVER; | 41 | static const error INVALID_SOLVER; |
| 43 | static const error NULL_POINTER; | 42 | static const error NULL_POINTER; |
| 44 | static const error BUFFER_SIZE; | 43 | static const error BUFFER_SIZE; |
| @@ -55,13 +54,9 @@ namespace nissy { | |||
| 55 | void invert(); | 54 | void invert(); |
| 56 | void compose(const cube&); | 55 | void compose(const cube&); |
| 57 | std::string to_string() const; | 56 | std::string to_string() const; |
| 58 | std::variant<std::string, error> to_string( | ||
| 59 | const std::string& format) const; | ||
| 60 | 57 | ||
| 61 | static std::variant<cube, error> from_string( | 58 | static std::variant<cube, error> from_string( |
| 62 | const std::string&); | 59 | const std::string&); |
| 63 | static std::variant<cube, error> from_string( | ||
| 64 | const std::string& str, const std::string& format); | ||
| 65 | static std::variant<cube, error> get( | 60 | static std::variant<cube, error> get( |
| 66 | long long ep, long long eo, long long cp, long long co); | 61 | long long ep, long long eo, long long cp, long long co); |
| 67 | static std::variant<cube, error> get( | 62 | static std::variant<cube, error> get( |
| @@ -69,7 +64,7 @@ namespace nissy { | |||
| 69 | const std::string& options); | 64 | const std::string& options); |
| 70 | 65 | ||
| 71 | private: | 66 | private: |
| 72 | std::string m_b32{"ABCDEFGH=ABCDEFGHIJKL"}; | 67 | std::string m_str{"ABCDEFGH=ABCDEFGHIJKL=A"}; |
| 73 | }; | 68 | }; |
| 74 | 69 | ||
| 75 | class solver { | 70 | class solver { |
