From 24c2fd2ffa582ea83172184b1da2816555340a01 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Fri, 25 Apr 2025 14:59:36 +0200 Subject: Fixed cpp adapter for 0-moves solutions --- cpp/nissy.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cpp/nissy.cpp b/cpp/nissy.cpp index 3c41733..118a072 100644 --- a/cpp/nissy.cpp +++ b/cpp/nissy.cpp @@ -179,7 +179,8 @@ namespace nissy { std::string_view strsols(csols.data()); for (auto r : strsols | std::views::split('\n')) - if (r.begin() != r.end()) + if (r.begin() != r.end() || + r.begin() == strsols.begin()) result.solutions.push_back( std::string{r.begin(), r.end()}); -- cgit v1.3